Home
last modified time | relevance | path

Searched refs:serial (Results 1 – 25 of 106) sorted by relevance

12345

/openssl/doc/man3/
H A DX509_get_serialNumber.pod10 - 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 DX509_CRL_get0_by_serial.pod16 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 DOSSL_STORE_SEARCH.pod28 *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 Dossl_serial_number_print.pod16 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 Dv3_akid.c52 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 Dx509aset.c102 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 Dx509cset.c159 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 Dx_crl.c30 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 Dt_acert.c112 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 Docsp_lib.c26 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 Dts.c771 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 Dca.c270 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 Dstoreutl.c83 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 Dts_rsp_utils.c110 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 Dts_rsp_sign.c46 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 Dcmp.c54 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 DCAtsa.cnf34 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 Docspapitest.c79 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 Dtest.cnf16 serial = $dir/serial # The current serial number
H A Dca-and-certs.cnf65 serial = $dir/serial
/openssl/test/recipes/90-test_includes_data/conf-includes/
H A Dincludes1.cnf21 serial = $dir/serial # The current serial number
/openssl/crypto/ess/
H A Dess_lib.c110 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 Df_generic.c21 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 Dtest_commands.csv48serial 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
54serial for revocation, -section,, -cmd,rr,,BLANK,,,BLANK,,,BLANK,, -revreason,-1,BLANK,,, -expect_…
55serial 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 Dopenssl-ca.pod.in20 [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 …]

Completed in 48 milliseconds

12345