Lines Matching +full:serial +full:- +full:out

2  * Copyright 2016-2025 The OpenSSL Project Authors. All Rights Reserved.
24 static BIO *out = NULL; variable
37 {OPT_HELP_STR, 1, '-', "Usage: %s [options] uri\n"},
40 {"help", OPT_HELP, '-', "Display this summary"},
41 {"", OPT_MD, '-', "Any supported digest"},
47 {"certs", OPT_SEARCHFOR_CERTS, '-', "Search for certificates only"},
48 {"keys", OPT_SEARCHFOR_KEYS, '-', "Search for keys only"},
49 {"crls", OPT_SEARCHFOR_CRLS, '-', "Search for CRLs only"},
51 {"issuer", OPT_CRITERION_ISSUER, 's', "Search by issuer and serial, issuer name"},
52 {"serial", OPT_CRITERION_SERIAL, 's', "Search by issuer and serial, serial number"},
55 {"r", OPT_RECURSIVE, '-', "Recurse through names"},
61 {"out", OPT_OUT, '>', "Output file - default stdout"},
62 {"text", OPT_TEXT, '-', "Print a text form of the objects"},
63 {"noout", OPT_NOOUT, '-', "No PEM output, just status"},
83 ASN1_INTEGER *serial = NULL; in storeutl_main() local
98 BIO_printf(bio_err, "%s: Use -help for summary.\n", prog); in storeutl_main()
192 if (serial != NULL) { in storeutl_main()
193 BIO_printf(bio_err, "%s: serial number already given.\n", in storeutl_main()
197 if ((serial = s2i_ASN1_INTEGER(NULL, opt_arg())) == NULL) { in storeutl_main()
198 BIO_printf(bio_err, "%s: can't parse serial number argument.\n", in storeutl_main()
276 if (issuer == NULL || serial == NULL) { in storeutl_main()
278 "%s: both -issuer and -serial must be given.\n", in storeutl_main()
282 if ((search = OSSL_STORE_SEARCH_by_issuer_serial(issuer, serial)) in storeutl_main()
321 ASN1_INTEGER_free(serial); in storeutl_main()
325 BIO_free_all(out); in storeutl_main()
346 if (vret > INT_MAX - ret) in indent_printf()
433 if (out == NULL) { in process()
434 if ((out = bio_open_default(outfile, 'w', FORMAT_TEXT)) == NULL) { in process()
442 * functionality, so we must figure out how exactly to write things in process()
457 EVP_PKEY_print_params(out, OSSL_STORE_INFO_get0_PARAMS(info), in process()
460 PEM_write_bio_Parameters(out, in process()
465 EVP_PKEY_print_public(out, OSSL_STORE_INFO_get0_PUBKEY(info), in process()
468 PEM_write_bio_PUBKEY(out, OSSL_STORE_INFO_get0_PUBKEY(info)); in process()
472 EVP_PKEY_print_private(out, OSSL_STORE_INFO_get0_PKEY(info), in process()
475 PEM_write_bio_PrivateKey(out, OSSL_STORE_INFO_get0_PKEY(info), in process()
480 X509_print(out, OSSL_STORE_INFO_get0_CERT(info)); in process()
482 PEM_write_bio_X509(out, OSSL_STORE_INFO_get0_CERT(info)); in process()
486 X509_CRL_print(out, OSSL_STORE_INFO_get0_CRL(info)); in process()
488 PEM_write_bio_X509_CRL(out, OSSL_STORE_INFO_get0_CRL(info)); in process()
498 indent_printf(indent, out, "Total found: %d\n", items); in process()