Lines Matching refs:bd
237 BIO *bd, *bm; in main() local
362 bd = BIO_new_file(dest_name, "wb"); in main()
363 ERR(!bd, "%s", dest_name); in main()
369 ERR(BIO_write(bd, buf, n) < 0, "%s", dest_name); in main()
373 module_size = BIO_number_written(bd); in main()
377 ERR(i2d_CMS_bio_stream(bd, cms, NULL, 0) != 1, "%s", dest_name); in main()
379 ERR(i2d_PKCS7_bio(bd, pkcs7) != 1, "%s", dest_name); in main()
390 ERR(BIO_write(bd, buf, n) < 0, "%s", dest_name); in main()
394 sig_size = BIO_number_written(bd) - module_size; in main()
396 ERR(BIO_write(bd, &sig_info, sizeof(sig_info)) < 0, "%s", dest_name); in main()
397 ERR(BIO_write(bd, magic_number, sizeof(magic_number) - 1) < 0, "%s", dest_name); in main()
399 ERR(BIO_free(bd) != 1, "%s", dest_name); in main()