/openssl/doc/man3/ |
H A D | X509_get_serialNumber.pod | 8 - get or set certificate serial number 16 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); 20 X509_get_serialNumber() returns the serial number of certificate B<x> as an 27 X509_set_serialNumber() sets the serial number of certificate B<x> to 28 B<serial>. A copy of the serial number is used internally so B<serial> should
|
H A D | X509_CRL_get0_by_serial.pod | 16 X509_REVOKED **ret, const ASN1_INTEGER *serial); 24 int X509_REVOKED_set_serialNumber(X509_REVOKED *r, ASN1_INTEGER *serial); 34 serial number I<serial>. If it is successful, it sets I<*ret> to the internal 39 looks for a revoked entry using the serial number of certificate I<x>. 45 serial number of I<r>. 50 X509_REVOKED_set_serialNumber() sets the serial number of I<r> to I<serial>. 51 The supplied I<serial> pointer is not used internally so it should be 62 X509_CRL_sort() sorts the revoked entries of I<crl> into ascending serial
|
H A D | OSSL_STORE_SEARCH.pod | 28 *serial); 71 and serial number pair, a key fingerprint, and an alias (for example a friendly 106 This criterion supports a search by exact match of both issuer name and serial 108 The issuer name itself is a B<X509_NAME> pointer, and the serial number is 111 and the actual issuer name and serial number are retrieved with
|
/openssl/crypto/x509/ |
H A D | v3_akid.c | 52 if (!X509V3_add_value((akeyid->issuer || akeyid->serial) ? "keyid" : NULL, in STACK_OF() 68 if (akeyid->serial) { in STACK_OF() 69 tmp = i2s_ASN1_OCTET_STRING(NULL, akeyid->serial); in STACK_OF() 107 ASN1_INTEGER *serial = NULL; in v2i_AUTHORITY_KEYID() local 198 serial = ASN1_INTEGER_dup(X509_get0_serialNumber(issuer_cert)); in v2i_AUTHORITY_KEYID() 199 if (isname == NULL || serial == NULL) { in v2i_AUTHORITY_KEYID() 219 akeyid->serial = serial; in v2i_AUTHORITY_KEYID() 228 ASN1_INTEGER_free(serial); in v2i_AUTHORITY_KEYID()
|
H A D | x509cset.c | 162 int X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) in X509_REVOKED_set_serialNumber() argument 169 if (in != serial) in X509_REVOKED_set_serialNumber() 170 return ASN1_STRING_copy(in, serial); in X509_REVOKED_set_serialNumber()
|
H A D | x_crl.c | 30 X509_REVOKED **ret, const ASN1_INTEGER *serial, 384 X509_REVOKED **ret, const ASN1_INTEGER *serial) in X509_CRL_get0_by_serial() argument 387 return crl->meth->crl_lookup(crl, ret, serial, NULL); in X509_CRL_get0_by_serial() 435 X509_REVOKED **ret, const ASN1_INTEGER *serial, in def_crl_lookup() argument 454 rtmp.serialNumber = *serial; in def_crl_lookup() 461 if (ASN1_INTEGER_cmp(&rev->serialNumber, serial)) in def_crl_lookup()
|
H A D | x509_set.c | 38 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial) in X509_set_serialNumber() argument 45 if (in != serial) in X509_set_serialNumber() 46 return ASN1_STRING_copy(in, serial); in X509_set_serialNumber()
|
/openssl/crypto/ocsp/ |
H A D | ocsp_lib.c | 26 const ASN1_INTEGER *serial; in OCSP_cert_to_id() local 33 serial = X509_get0_serialNumber(subject); in OCSP_cert_to_id() 36 serial = NULL; in OCSP_cert_to_id() 39 return OCSP_cert_id_new(dgst, iname, ikey, serial); in OCSP_cert_to_id()
|
/openssl/fuzz/ |
H A D | cmp.c | 54 ASN1_INTEGER *serial = ASN1_INTEGER_new(); in cmp_client_process_response() local 64 || serial == NULL || !X509_set_serialNumber(ctx->oldCert, serial)) in cmp_client_process_response() 99 ASN1_INTEGER_free(serial); in cmp_client_process_response() 118 const ASN1_INTEGER *serial) in process_rr() argument
|
/openssl/apps/ |
H A D | ts.c | 769 if (serial == NULL) { in serial_cb() 775 save_ts_serial(serial_file, serial); in serial_cb() 778 return serial; in serial_cb() 785 ASN1_INTEGER *serial = NULL; in next_serial() local 795 if (!ASN1_INTEGER_set(serial, 1)) in next_serial() 806 ASN1_INTEGER_free(serial); in next_serial() 807 serial = NULL; in next_serial() 817 ASN1_INTEGER_free(serial); in next_serial() 818 serial = NULL; in next_serial() 822 return serial; in next_serial() [all …]
|
H A D | ca.c | 264 BIGNUM *crlnumber = NULL, *serial = NULL; in ca_main() local 923 if ((serial = BN_new()) == NULL || !rand_serial(serial, NULL)) { in ca_main() 929 if (serial == NULL) { in ca_main() 934 if (BN_is_zero(serial)) { in ca_main() 966 if (!BN_add_word(serial, 1)) in ca_main() 1224 BN_free(serial); in ca_main() 1225 serial = NULL; in ca_main() 1338 BN_free(serial); in ca_main() 1809 if (BN_is_zero(serial)) in do_body() 1812 row[DB_serial] = BN_bn2hex(serial); in do_body() [all …]
|
H A D | storeutl.c | 82 ASN1_INTEGER *serial = NULL; in storeutl_main() local 187 && serial != NULL)) { in storeutl_main() 193 if (serial != NULL) { in storeutl_main() 198 if ((serial = s2i_ASN1_INTEGER(NULL, opt_arg())) == NULL) { in storeutl_main() 279 if (issuer == NULL || serial == NULL) { in storeutl_main() 285 if ((search = OSSL_STORE_SEARCH_by_issuer_serial(issuer, serial)) in storeutl_main() 328 ASN1_INTEGER_free(serial); in storeutl_main()
|
/openssl/crypto/ts/ |
H A D | ts_rsp_utils.c | 110 int TS_TST_INFO_set_serial(TS_TST_INFO *a, const ASN1_INTEGER *serial) in TS_TST_INFO_set_serial() argument 114 if (a->serial == serial) in TS_TST_INFO_set_serial() 116 new_serial = ASN1_INTEGER_dup(serial); in TS_TST_INFO_set_serial() 121 ASN1_INTEGER_free(a->serial); in TS_TST_INFO_set_serial() 122 a->serial = new_serial; in TS_TST_INFO_set_serial() 128 return a->serial; in TS_TST_INFO_get_serial()
|
H A D | ts_rsp_sign.c | 45 ASN1_INTEGER *serial = ASN1_INTEGER_new(); in def_serial_cb() local 47 if (serial == NULL) in def_serial_cb() 49 if (!ASN1_INTEGER_set(serial, 1)) in def_serial_cb() 51 return serial; in def_serial_cb() 57 ASN1_INTEGER_free(serial); in def_serial_cb() 532 ASN1_INTEGER *serial = NULL; in ts_RESP_create_tst_info() local 547 if ((serial = ctx->serial_cb(ctx, ctx->serial_cb_data)) == NULL in ts_RESP_create_tst_info() 548 || !TS_TST_INFO_set_serial(tst_info, serial)) in ts_RESP_create_tst_info() 602 ASN1_INTEGER_free(serial); in ts_RESP_create_tst_info()
|
/openssl/test/ |
H A D | CAtsa.cnf | 34 serial = $dir/serial # The current serial number 128 serial = $dir/tsa_serial # The current serial number (mandatory) 154 serial = $dir/tsa_serial # The current serial number (mandatory)
|
H A D | ocspapitest.c | 79 ASN1_INTEGER *serial = ASN1_INTEGER_new(); in make_dummy_resp() local 83 || !TEST_ptr(serial) in make_dummy_resp() 88 || !TEST_true(ASN1_INTEGER_set_uint64(serial, (uint64_t)1))) in make_dummy_resp() 90 cid = OCSP_cert_id_new(EVP_sha256(), name, key, serial); in make_dummy_resp() 105 ASN1_INTEGER_free(serial); in make_dummy_resp()
|
H A D | test.cnf | 16 serial = $dir/serial # The current serial number
|
H A D | ca-and-certs.cnf | 63 serial = $dir/serial
|
/openssl/test/recipes/90-test_includes_data/conf-includes/ |
H A D | includes1.cnf | 21 serial = $dir/serial # The current serial number
|
/openssl/crypto/ess/ |
H A D | ess_lib.c | 86 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_new_init() 87 if ((cid->issuer_serial->serial = in ESS_CERT_ID_new_init() 183 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_V2_new_init() 184 cid->issuer_serial->serial = ASN1_INTEGER_dup(X509_get0_serialNumber(cert)); in ESS_CERT_ID_V2_new_init() 185 if (cid->issuer_serial->serial == NULL) in ESS_CERT_ID_V2_new_init() 209 return ASN1_INTEGER_cmp(is->serial, X509_get0_serialNumber(cert)); in ess_issuer_serial_cmp()
|
/openssl/crypto/ec/curve448/ |
H A D | f_generic.c | 21 void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit) in gf_serialize() 39 serial[i] = (uint8_t)buffer; in gf_serialize() 66 mask_t gf_deserialize(gf x, const uint8_t serial[SER_BYTES], int with_hibit, in gf_deserialize() 80 sj = serial[j]; in gf_deserialize()
|
/openssl/doc/man1/ |
H A D | openssl-storeutl.pod.in | 26 [B<-serial> I<arg>] 98 =item B<-serial> I<arg> 100 Search for an object having the given issuer name and serial number. 104 The serial arg may be specified as a decimal value or a hex value if preceded
|
H A D | openssl-ca.pod.in | 20 [B<-status> I<serial>] 212 serial number counter as all other certificates sign with the 327 serial number. 333 Generate a large random number to use as the serial number. 391 =item B<-status> I<serial> 394 serial number and exits. 545 =item B<serial> 548 This file must be present and contain a valid serial number. 704 serial = $dir/serial # serial no file 737 ./demoCA/serial - CA serial number file [all …]
|
/openssl/apps/lib/ |
H A D | cmp_mock_srv.c | 193 const X509_NAME *issuer, const ASN1_INTEGER *serial) in refcert_cmp() argument 203 && (ref_serial == NULL || ASN1_INTEGER_cmp(serial, ref_serial) == 0); in refcert_cmp() 292 const ASN1_INTEGER *serial) in process_rr() argument 306 if ((issuer != NULL || serial != NULL) in process_rr() 308 && !refcert_cmp(ctx->refCert, issuer, serial)) { in process_rr()
|
/openssl/crypto/crmf/ |
H A D | crmf_lib.c | 179 const ASN1_INTEGER *serial) in IMPLEMENT_CRMF_CTRL_FUNC() 183 if (issuer == NULL || serial == NULL) { in IMPLEMENT_CRMF_CTRL_FUNC() 196 if ((cid->serialNumber = ASN1_INTEGER_dup(serial)) == NULL) in IMPLEMENT_CRMF_CTRL_FUNC() 592 const ASN1_INTEGER *serial) in OSSL_CRMF_CERTTEMPLATE_fill() argument 602 if (serial != NULL) { in OSSL_CRMF_CERTTEMPLATE_fill() 604 if ((tmpl->serialNumber = ASN1_INTEGER_dup(serial)) == NULL) in OSSL_CRMF_CERTTEMPLATE_fill()
|