• Home
  • Raw
  • Download

Lines Matching refs:ERR

112 #define ERR(cond, fmt, ...)				\  macro
152 ERR(!e, "Load PKCS#11 ENGINE"); in read_private_key()
156 ERR(1, "ENGINE_init"); in read_private_key()
158 ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), in read_private_key()
162 ERR(!private_key, "%s", private_key_name); in read_private_key()
167 ERR(!b, "%s", private_key_name); in read_private_key()
170 ERR(!private_key, "%s", private_key_name); in read_private_key()
185 ERR(!b, "%s", x509_name); in read_x509()
198 ERR(1, "%s", x509_name); in read_x509()
201 ERR(BIO_reset(b) != 0, "%s", x509_name); in read_x509()
211 ERR(!x509, "%s", x509_name); in read_x509()
283 ERR(asprintf(&dest_name, "%s.~signed~", module_name) < 0, in main()
298 ERR(!bm, "%s", module_name); in main()
311 ERR(!digest_algo, "EVP_get_digestbyname"); in main()
318 ERR(!cms, "CMS_sign"); in main()
320 ERR(!CMS_add1_signer(cms, x509, private_key, digest_algo, in main()
325 ERR(CMS_final(cms, bm, NULL, CMS_NOCERTS | CMS_BINARY) != 1, in main()
332 ERR(!pkcs7, "PKCS7_sign"); in main()
339 ERR(asprintf(&sig_file_name, "%s.p7s", module_name) < 0, in main()
342 ERR(!b, "%s", sig_file_name); in main()
344 ERR(i2d_CMS_bio_stream(b, cms, NULL, 0) != 1, in main()
347 ERR(i2d_PKCS7_bio(b, pkcs7) != 1, in main()
363 ERR(!bd, "%s", dest_name); in main()
366 ERR(BIO_reset(bm) < 0, "%s", module_name); in main()
369 ERR(BIO_write(bd, buf, n) < 0, "%s", dest_name); in main()
372 ERR(n < 0, "%s", module_name); 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()
388 ERR(!b, "%s", raw_sig_name); in main()
390 ERR(BIO_write(bd, buf, n) < 0, "%s", dest_name); 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()
403 ERR(rename(dest_name, module_name) < 0, "%s", dest_name); in main()