/openssl/doc/man3/ |
H A D | X509_get_serialNumber.pod | 10 - get or set certificate serial number 18 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); 23 int X509_ACERT_set1_serialNumber(X509_ACERT *x, ASN1_INTEGER *serial); 27 X509_get_serialNumber() returns the serial number of certificate B<x> as an 34 X509_set_serialNumber() sets the serial number of certificate B<x> to 35 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 107 This criterion supports a search by exact match of both issuer name and serial 109 The issuer name itself is a B<X509_NAME> pointer, and the serial number is 112 and the actual issuer name and serial number are retrieved with
|
/openssl/doc/internal/man3/ |
H A D | ossl_serial_number_print.pod | 16 This function writes a certificate serial number I<bs> to BIO I<out> in decimal if the serial 18 user of negative serial numbers, and handles wrapping of huge serial numbers. 20 serial number cannot be read into a long int. 22 If the serial number fits into a long int, it is printed on the same line as
|
/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() 222 akeyid->serial = serial; in v2i_AUTHORITY_KEYID() 231 ASN1_INTEGER_free(serial); in v2i_AUTHORITY_KEYID()
|
H A D | x509aset.c | 102 const ASN1_INTEGER *serial) in OSSL_ISSUER_SERIAL_set1_serial() argument 104 return ASN1_STRING_copy(&isss->serial, serial); in OSSL_ISSUER_SERIAL_set1_serial() 164 int X509_ACERT_set1_serialNumber(X509_ACERT *x, const ASN1_INTEGER *serial) in X509_ACERT_set1_serialNumber() argument 166 return ASN1_STRING_copy(&x->acinfo->serialNumber, serial); in X509_ACERT_set1_serialNumber()
|
H A D | x509cset.c | 159 int X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) in X509_REVOKED_set_serialNumber() argument 166 if (in != serial) in X509_REVOKED_set_serialNumber() 167 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 | t_acert.c | 112 const ASN1_INTEGER *serial; in X509_ACERT_print_ex() local 114 serial = X509_ACERT_get0_serialNumber(x); in X509_ACERT_print_ex() 119 if (i2a_ASN1_INTEGER(bp, serial) <= 0) in X509_ACERT_print_ex()
|
/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/apps/ |
H A D | ts.c | 771 if (serial == NULL) { in serial_cb() 777 save_ts_serial(serial_file, serial); in serial_cb() 780 return serial; in serial_cb() 787 ASN1_INTEGER *serial = NULL; in next_serial() local 797 if (!ASN1_INTEGER_set(serial, 1)) in next_serial() 808 ASN1_INTEGER_free(serial); in next_serial() 809 serial = NULL; in next_serial() 819 ASN1_INTEGER_free(serial); in next_serial() 820 serial = NULL; in next_serial() 824 return serial; in next_serial() [all …]
|
H A D | ca.c | 270 BIGNUM *crlnumber = NULL, *serial = NULL; in ca_main() local 899 if ((serial = BN_new()) == NULL || !rand_serial(serial, NULL)) { in ca_main() 905 if (serial == NULL) { in ca_main() 910 if (BN_is_zero(serial)) { in ca_main() 942 if (!BN_add_word(serial, 1)) in ca_main() 1198 BN_free(serial); in ca_main() 1199 serial = NULL; in ca_main() 1312 BN_free(serial); in ca_main() 1783 if (BN_is_zero(serial)) in do_body() 1786 row[DB_serial] = BN_bn2hex(serial); in do_body() [all …]
|
H A D | storeutl.c | 83 ASN1_INTEGER *serial = NULL; in storeutl_main() local 192 if (serial != NULL) { in storeutl_main() 197 if ((serial = s2i_ASN1_INTEGER(NULL, opt_arg())) == NULL) { in storeutl_main() 278 if (issuer == NULL || serial == NULL) { in storeutl_main() 284 if ((search = OSSL_STORE_SEARCH_by_issuer_serial(issuer, serial)) in storeutl_main() 323 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 | 46 ASN1_INTEGER *serial = ASN1_INTEGER_new(); in def_serial_cb() local 48 if (serial == NULL) in def_serial_cb() 50 if (!ASN1_INTEGER_set(serial, 1)) in def_serial_cb() 52 return serial; in def_serial_cb() 58 ASN1_INTEGER_free(serial); in def_serial_cb() 530 ASN1_INTEGER *serial = NULL; in ts_RESP_create_tst_info() local 545 if ((serial = ctx->serial_cb(ctx, ctx->serial_cb_data)) == NULL in ts_RESP_create_tst_info() 546 || !TS_TST_INFO_set_serial(tst_info, serial)) in ts_RESP_create_tst_info() 600 ASN1_INTEGER_free(serial); in ts_RESP_create_tst_info()
|
/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/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 | 65 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 | 110 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_new_init() 111 if ((cid->issuer_serial->serial in ESS_CERT_ID_new_init() 235 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_V2_new_init() 236 cid->issuer_serial->serial = ASN1_INTEGER_dup(X509_get0_serialNumber(cert)); in ESS_CERT_ID_V2_new_init() 237 if (cid->issuer_serial->serial == NULL) { in ESS_CERT_ID_V2_new_init() 262 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/test/recipes/80-test_cmp_http_data/ |
H A D | test_commands.csv | 48 …serial for revocation, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,, -revreason,-1,BLANK,,, -expect_… 50 0,use issuer but no serial for revocation, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,, -revreason,-… 51 …se serial but no issuer for revocation, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,, -revreason,-1,… 52 …"", -issuer, /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=wrongCA, -serial, 0xA44DB0329A714A8D 53 …,,BLANK,, -revreason,-1,BLANK,,, -expect_sender,"""", -issuer, "'XYZ'", -serial, 0xA44DB0329A714A8D 54 …serial for revocation, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,, -revreason,-1,BLANK,,, -expect_… 55 …serial for revocation, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,, -revreason,-1,BLANK,,, -expect_… 56 0,rr without oldcert/csr/issuer/serial, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,,BLANK,
|
/openssl/doc/man1/ |
H A D | openssl-ca.pod.in | 20 [B<-status> I<serial>] 220 serial number counter as all other certificates sign with the 343 serial number. 349 Generate a large random number to use as the serial number. 407 =item B<-status> I<serial> 410 serial number and exits. 561 =item B<serial> 564 This file must be present and contain a valid serial number. 720 serial = $dir/serial # serial no file 753 ./demoCA/serial - CA serial number file [all …]
|