Lines Matching refs:b
148 BIO *b, *bd = NULL, *bm; in main() local
221 b = BIO_new_file(private_key_name, "rb"); in main()
222 ERR(!b, "%s", private_key_name); in main()
223 private_key = PEM_read_bio_PrivateKey(b, NULL, pem_pw_cb, NULL); in main()
225 BIO_free(b); in main()
228 b = BIO_new_file(x509_name, "rb"); in main()
229 ERR(!b, "%s", x509_name); in main()
230 x509 = d2i_X509_bio(b, NULL); /* Binary encoded X.509 */ in main()
232 ERR(BIO_reset(b) != 1, "%s", x509_name); in main()
233 x509 = PEM_read_bio_X509(b, NULL, NULL, NULL); /* PEM encoded X.509 */ in main()
237 BIO_free(b); in main()
282 b = BIO_new_file(sig_file_name, "wb"); in main()
283 ERR(!b, "%s", sig_file_name); in main()
285 ERR(i2d_CMS_bio_stream(b, cms, NULL, 0) < 0, in main()
288 ERR(i2d_PKCS7_bio(b, pkcs7) < 0, in main()
291 BIO_free(b); in main()