Home
last modified time | relevance | path

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

1234

/openssl-master/crypto/x509/
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 = OPENSSL_buf2hexstr(akeyid->serial->data, akeyid->serial->length); in STACK_OF()
107 ASN1_INTEGER *serial = NULL; in v2i_AUTHORITY_KEYID() local
187 serial = ASN1_INTEGER_dup(X509_get0_serialNumber(issuer_cert)); in v2i_AUTHORITY_KEYID()
188 if (isname == NULL || serial == NULL) { in v2i_AUTHORITY_KEYID()
208 akeyid->serial = serial; in v2i_AUTHORITY_KEYID()
217 ASN1_INTEGER_free(serial); in v2i_AUTHORITY_KEYID()
A Dx509cset.c162 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()
A Dx_crl.c30 X509_REVOKED **ret, const ASN1_INTEGER *serial,
378 X509_REVOKED **ret, const ASN1_INTEGER *serial) in X509_CRL_get0_by_serial() argument
381 return crl->meth->crl_lookup(crl, ret, serial, NULL); in X509_CRL_get0_by_serial()
429 X509_REVOKED **ret, const ASN1_INTEGER *serial, in def_crl_lookup() argument
448 rtmp.serialNumber = *serial; in def_crl_lookup()
455 if (ASN1_INTEGER_cmp(&rev->serialNumber, serial)) in def_crl_lookup()
A Dx509_set.c38 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-master/doc/man3/
A DX509_get_serialNumber.pod8 - 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
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 B<serial>. If it is successful it sets B<*ret> to the internal
39 looks for a revoked entry using the serial number of certificate B<x>.
45 serial number of B<r>.
50 X509_REVOKED_set_serialNumber() sets the serial number of B<r> to B<serial>.
51 The supplied B<serial> pointer is not used internally so it should be
62 X509_CRL_sort() sorts the revoked entries of B<crl> into ascending serial
A DOSSL_STORE_SEARCH.pod28 *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-master/crypto/ocsp/
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-master/fuzz/
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-master/apps/
A Dts.c765 if (serial == NULL) { in serial_cb()
771 save_ts_serial(serial_file, serial); in serial_cb()
774 return serial; in serial_cb()
781 ASN1_INTEGER *serial = NULL; in next_serial() local
791 if (!ASN1_INTEGER_set(serial, 1)) in next_serial()
802 ASN1_INTEGER_free(serial); in next_serial()
803 serial = NULL; in next_serial()
813 ASN1_INTEGER_free(serial); in next_serial()
814 serial = NULL; in next_serial()
818 return serial; in next_serial()
[all …]
A Dca.c264 BIGNUM *crlnumber = NULL, *serial = NULL; in ca_main() local
920 if ((serial = BN_new()) == NULL || !rand_serial(serial, NULL)) { in ca_main()
930 if (BN_is_zero(serial)) { in ca_main()
962 if (!BN_add_word(serial, 1)) in ca_main()
983 if (!BN_add_word(serial, 1)) in ca_main()
1219 BN_free(serial); in ca_main()
1220 serial = NULL; in ca_main()
1333 BN_free(serial); in ca_main()
1804 if (BN_is_zero(serial)) in do_body()
1807 row[DB_serial] = BN_bn2hex(serial); in do_body()
[all …]
A Dstoreutl.c82 ASN1_INTEGER *serial = NULL; in storeutl_main() local
185 && serial != NULL)) { in storeutl_main()
191 if (serial != NULL) { in storeutl_main()
196 if ((serial = s2i_ASN1_INTEGER(NULL, opt_arg())) == NULL) { in storeutl_main()
280 if (issuer == NULL || serial == NULL) { in storeutl_main()
286 if ((search = OSSL_STORE_SEARCH_by_issuer_serial(issuer, serial)) in storeutl_main()
329 ASN1_INTEGER_free(serial); in storeutl_main()
/openssl-master/crypto/ts/
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()
A Dts_rsp_sign.c45 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-master/test/
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)
A Docspapitest.c79 ASN1_INTEGER *serial = ASN1_INTEGER_new(); in make_dummy_resp() local
84 || !ASN1_INTEGER_set_uint64(serial, (uint64_t)1)) in make_dummy_resp()
86 cid = OCSP_cert_id_new(EVP_sha256(), name, key, serial); in make_dummy_resp()
101 ASN1_INTEGER_free(serial); in make_dummy_resp()
A Dtest.cnf16 serial = $dir/serial # The current serial number
A Dca-and-certs.cnf63 serial = $dir/serial
/openssl-master/test/recipes/90-test_includes_data/conf-includes/
A Dincludes1.cnf21 serial = $dir/serial # The current serial number
/openssl-master/crypto/ess/
A Dess_lib.c86 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-master/crypto/ec/curve448/
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-master/apps/lib/
A Dcmp_mock_srv.c219 const ASN1_INTEGER *serial = X509_get0_serialNumber(ctx->certOut); in process_cert_request() local
230 if (serial != NULL in process_cert_request()
231 && ASN1_INTEGER_cmp(serial, in process_cert_request()
265 const ASN1_INTEGER *serial) in process_rr() argument
279 if (issuer == NULL || serial == NULL) in process_rr()
284 || ASN1_INTEGER_cmp(serial, in process_rr()
/openssl-master/doc/man1/
A Dopenssl-storeutl.pod.in26 [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
A Dopenssl-x509.pod.in32 [B<-serial>]
247 =item B<-serial>
249 Prints the certificate serial number.
363 Specifies the serial number to use.
368 The serial number can be decimal or hex (if preceded by C<0x>).
372 Set the serial to be one more than the number in the certificate.
497 Sets the CA serial number file to use.
506 F<mycacert.pem> it expects to find a serial number file called
614 Don't print out the serial number.
689 Print the certificate serial number:
[all …]
A Dopenssl-ca.pod.in19 [B<-status> I<serial>]
206 serial number counter as all other certificates sign with the
321 serial number.
327 Generate a large random number to use as the serial number.
385 =item B<-status> I<serial>
388 serial number and exits.
539 =item B<serial>
542 This file must be present and contain a valid serial number.
698 serial = $dir/serial # serial no file
731 ./demoCA/serial - CA serial number file
[all …]

Completed in 33 milliseconds

1234