Lines Matching defs:bio
16 #include <openssl/bio.h>
55 BIO *bio;
60 bio = BIO_new_file(keyfile, "r");
61 if (!bio) {
66 pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
77 BIO_free(bio);
84 BIO *bio;
94 bio = BIO_new_file(certfile, "r");
95 if (!bio) {
99 cert = PEM_read_bio_X509(bio, NULL, NULL, NULL);
110 BIO_free(bio);
237 BIO *bio;
244 * despite still marking the resulting bio as read-only. So cast away
247 bio = BIO_new_mem_buf((void *)buf, size);
248 if (!bio)
250 return bio;
279 BIO *bio = NULL;
283 bio = new_mem_buf(data_to_sign, data_size);
284 if (!bio) {
289 p7 = PKCS7_sign(NULL, NULL, NULL, bio, pkcs7_flags);
302 if (PKCS7_final(p7, bio, pkcs7_flags) != 1) {
308 BIO_free(bio);
309 bio = BIO_new(BIO_s_mem());
310 if (!bio) {
316 if (i2d_PKCS7_bio(bio, p7) != 1) {
322 sig_size = BIO_get_mem_data(bio, &sig);
332 BIO_free(bio);