Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/freebsd-13.1/crypto/heimdal/lib/hx509/
H A Dtest_ca.in66 cert:FILE:cert-ee.pem \
76 cert:FILE:cert-ee.pem \
88 cert:FILE:cert-ee.pem \
101 cert:FILE:cert-ee.pem \
153 cert:FILE:cert-ee.pem \
159 cert:FILE:cert-ee.pem \
165 cert:FILE:cert-ee.pem \
179 cert:FILE:cert-ee.pem \
185 cert:FILE:cert-ee.pem \
285 cert:FILE:cert-ee.pem \
[all …]
H A Dtest_chain.in52 cert:FILE:$srcdir/data/test.crt \
70 cert:FILE:$srcdir/data/sub-cert.crt \
76 cert:FILE:$srcdir/data/sub-cert.crt \
83 cert:FILE:$srcdir/data/sub-cert.crt \
88 cert:FILE:$srcdir/data/sub-cert.crt \
95 cert:FILE:$srcdir/data/sub-cert.crt \
102 cert:FILE:$srcdir/data/sub-cert.crt \
109 cert:FILE:$srcdir/data/sub-cert.crt \
116 cert:FILE:$srcdir/data/sub-cert.crt \
195 cert:FILE:$srcdir/data/secp160r2TestServer.cert.pem \
[all …]
H A Dcert.c224 *cert = malloc(sizeof(**cert)); in hx509_cert_init()
236 (*cert)->data = calloc(1, sizeof(*(*cert)->data)); in hx509_cert_init()
238 free(*cert); in hx509_cert_init()
244 free(*cert); in hx509_cert_init()
245 *cert = NULL; in hx509_cert_init()
341 (cert->release)(cert, cert->ctx); in hx509_cert_free()
358 memset(cert, 0, sizeof(*cert)); in hx509_cert_free()
359 free(cert); in hx509_cert_free()
379 cert->ref++; in hx509_cert_ref()
2557 sizeof(cert->attrs.val[0]) * (cert->attrs.len + 1)); in _hx509_set_cert_attribute()
[all …]
H A Dtest_cert.in61 FILE:${srcdir}/data/test.crt PEM-FILE:cert-pem.tmp || exit 1
63 ${hxtool} certificate-copy PEM-FILE:cert-pem.tmp DER-FILE:cert-der.tmp || exit 1
64 ${hxtool} certificate-copy DER-FILE:cert-der.tmp PEM-FILE:cert-pem2.tmp || exit 1
66 cmp cert-pem.tmp cert-pem2.tmp || exit 1
71 cert:FILE:$srcdir/data/n0ll.pem \
76 cert:FILE:$srcdir/data/n0ll.pem \
81 cert:FILE:$srcdir/data/win-u16-in-printablestring.der \
H A Dpeer.c96 if (peer->cert) in hx509_peer_info_free()
97 hx509_cert_free(peer->cert); in hx509_peer_info_free()
116 hx509_cert cert) in hx509_peer_info_set_cert() argument
118 if (peer->cert) in hx509_peer_info_set_cert()
119 hx509_cert_free(peer->cert); in hx509_peer_info_set_cert()
120 peer->cert = hx509_cert_ref(cert); in hx509_peer_info_set_cert()
H A Dcms.c267 hx509_cert cert; in find_CMSIdentifier() local
359 hx509_cert cert; in hx509_cms_unenvelope() local
408 cert = NULL; in hx509_cms_unenvelope()
417 time_now, &cert, in hx509_cms_unenvelope()
427 cert, &key); in hx509_cms_unenvelope()
432 cert = NULL; in hx509_cms_unenvelope()
670 &key, cert, in hx509_cms_envelope_1()
1010 cert, in hx509_cms_verify_signed()
1042 if (cert) in hx509_cms_verify_signed()
1044 cert = NULL; in hx509_cms_verify_signed()
[all …]
/freebsd-13.1/contrib/wpa/src/tls/
H A Dx509v3.c52 cert, cert->next); in x509_certificate_free()
59 os_free(cert); in x509_certificate_free()
75 cert = next; in x509_certificate_chain_free()
279 cert->public_key, cert->public_key_len); in x509_parse_public_key()
867 cert->ca, cert->path_len_constraint); in x509_parse_ext_basic_constraints()
1733 cert = os_zalloc(sizeof(*cert) + len); in x509_certificate_parse()
1737 cert->cert_start = (u8 *) (cert + 1); in x509_certificate_parse()
1815 cert->sign_value, cert->sign_value_len); in x509_certificate_parse()
1832 cert->sign_value, cert->sign_value_len, in x509_certificate_check_signature()
2153 for (cert = chain, idx = 0; cert; cert = cert->next, idx++) { in x509_certificate_chain_validate()
[all …]
H A Dtlsv1_cred.c66 p->next = cert; in tlsv1_add_cert_der()
70 *chain = cert; in tlsv1_add_cert_der()
164 if (cert) { in tlsv1_set_cert_chain()
172 cert); in tlsv1_set_cert_chain()
198 if (cert && os_strncmp(cert, "hash://", 7) == 0) { in tlsv1_set_ca_cert()
203 cert); in tlsv1_set_ca_cert()
210 cert); in tlsv1_set_ca_cert()
216 cert); in tlsv1_set_ca_cert()
226 if (cert && os_strncmp(cert, "probe://", 8) == 0) { in tlsv1_set_ca_cert()
261 return tlsv1_set_cert_chain(&cred->cert, cert, in tlsv1_set_cert()
[all …]
H A Dtlsv1_client_ocsp.c436 struct x509_certificate *cert; in tls_process_basic_ocsp_response() local
446 if (!cert) in tls_process_basic_ocsp_response()
449 last_cert->next = cert; in tls_process_basic_ocsp_response()
450 last_cert = cert; in tls_process_basic_ocsp_response()
452 last_cert = certs = cert; in tls_process_basic_ocsp_response()
656 struct x509_certificate *cert; in tls_process_ocsp_response() local
738 cert = conn->server_cert; in tls_process_ocsp_response()
739 while (cert) { in tls_process_ocsp_response()
740 if (!cert->ocsp_good && !cert->ocsp_revoked) { in tls_process_ocsp_response()
751 if (cert == conn->server_cert) in tls_process_ocsp_response()
[all …]
H A Dtlsv1_client_write.c27 struct x509_certificate *cert; in tls_client_cert_chain_der_len() local
32 cert = conn->cred->cert; in tls_client_cert_chain_der_len()
33 while (cert) { in tls_client_cert_chain_der_len()
34 len += 3 + cert->cert_len; in tls_client_cert_chain_der_len()
38 &cert->issuer); in tls_client_cert_chain_der_len()
283 cert = conn->cred ? conn->cred->cert : NULL; in tls_write_client_certificate()
284 while (cert) { in tls_write_client_certificate()
296 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_client_certificate()
297 pos += cert->cert_len; in tls_write_client_certificate()
302 &cert->issuer); in tls_write_client_certificate()
[all …]
/freebsd-13.1/crypto/openssh/regress/
H A Dcert-hostkey.sh19 *rsa*cert*)
65 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
117 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
171 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
182 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
195 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
203 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
214 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
235 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
301 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/authopt/testdata/
H A Dmktestdata.sh7 rm -f *.cert
18 mv user_key-cert.pub "$output"
23 sign no_permit.cert -Oclear
25 sign no_agentfwd.cert -Ono-agent-forwarding
26 sign no_portfwd.cert -Ono-port-forwarding
27 sign no_pty.cert -Ono-pty
28 sign no_user_rc.cert -Ono-user-rc
29 sign no_x11fwd.cert -Ono-X11-forwarding
33 sign only_pty.cert -Oclear -Opermit-pty
37 sign force_command.cert -Oforce-command="foo"
[all …]
/freebsd-13.1/contrib/ldns/
H A Ddane.c90 assert(cert != NULL); in ldns_dane_cert2rdf()
295 X509_free(*cert); in ldns_dane_get_nth_cert_from_validation_chain()
357 assert(cert != NULL); in ldns_dane_select_certificate()
390 cert, extra_certs, in ldns_dane_select_certificate()
458 X509* cert) in ldns_dane_create_tlsa_rr() argument
464 assert(cert != NULL); in ldns_dane_create_tlsa_rr()
572 X509* cert; in ldns_dane_match_any_cert_with_data() local
577 if (! cert) { in ldns_dane_match_any_cert_with_data()
586 X509_free(cert); in ldns_dane_match_any_cert_with_data()
701 cert, extra_certs, in ldns_dane_verify_rr()
[all …]
/freebsd-13.1/crypto/openssl/ssl/
H A Dssl_cert.c85 ret->key = &ret->pkeys[cert->key - cert->pkeys]; in ssl_cert_dup()
131 cert->pkeys[i].serverinfo, cert->pkeys[i].serverinfo_length); in ssl_cert_dup()
142 cert->conf_sigalgslen * sizeof(*cert->conf_sigalgs)); in ssl_cert_dup()
153 cert->client_sigalgslen * sizeof(*cert->client_sigalgs)); in ssl_cert_dup()
158 if (cert->ctype) { in ssl_cert_dup()
159 ret->ctype = OPENSSL_memdup(cert->ctype, cert->ctype_len); in ssl_cert_dup()
175 if (cert->chain_store) { in ssl_cert_dup()
255 CERT_PKEY *cpk = s ? s->cert->key : ctx->cert->key; in ssl_cert_set0_chain()
288 CERT_PKEY *cpk = s ? s->cert->key : ctx->cert->key; in ssl_cert_add0_chain_cert()
759 CERT *c = s ? s->cert : ctx->cert; in ssl_build_cert_chain()
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/sshkey/
H A Dtest_sshkey.c413 ASSERT_PTR_NE(k1->cert, NULL); in sshkey_tests()
414 k1->cert->type = SSH2_CERT_TYPE_USER; in sshkey_tests()
415 k1->cert->serial = 1234; in sshkey_tests()
416 k1->cert->key_id = strdup("estragon"); in sshkey_tests()
418 k1->cert->principals = calloc(4, sizeof(*k1->cert->principals)); in sshkey_tests()
428 k1->cert->nprincipals = 4; in sshkey_tests()
429 k1->cert->valid_after = 0; in sshkey_tests()
431 sshbuf_free(k1->cert->critical); in sshkey_tests()
432 k1->cert->critical = sshbuf_new(); in sshkey_tests()
434 sshbuf_free(k1->cert->extensions); in sshkey_tests()
[all …]
/freebsd-13.1/crypto/openssl/crypto/ct/
H A Dct_sct_ctx.c50 static int ct_x509_get_ext(X509 *cert, int nid, int *is_duplicated) in ct_x509_get_ext() argument
52 int ret = X509_get_ext_by_NID(cert, nid, -1); in ct_x509_get_ext()
55 *is_duplicated = ret >= 0 && X509_get_ext_by_NID(cert, nid, ret) >= 0; in ct_x509_get_ext()
65 __owur static int ct_x509_cert_fixup(X509 *cert, X509 *presigner) in ct_x509_cert_fixup() argument
75 certidx = ct_x509_get_ext(cert, NID_authority_key_identifier, in ct_x509_cert_fixup()
90 if (!X509_set_issuer_name(cert, X509_get_issuer_name(presigner))) in ct_x509_cert_fixup()
95 X509_EXTENSION *certext = X509_get_ext(cert, certidx); in ct_x509_cert_fixup()
109 int SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner) in SCT_CTX_set1_cert() argument
128 certderlen = i2d_X509(cert, &certder); in SCT_CTX_set1_cert()
134 idx = ct_x509_get_ext(cert, NID_ct_precert_scts, &sct_ext_is_dup); in SCT_CTX_set1_cert()
[all …]
H A Dct_policy.c48 X509_free(ctx->cert); in CT_POLICY_EVAL_CTX_free()
53 int CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert) in CT_POLICY_EVAL_CTX_set1_cert() argument
55 if (!X509_up_ref(cert)) in CT_POLICY_EVAL_CTX_set1_cert()
57 ctx->cert = cert; in CT_POLICY_EVAL_CTX_set1_cert()
82 return ctx->cert; in CT_POLICY_EVAL_CTX_get0_cert()
/freebsd-13.1/crypto/openssh/
H A Dsshkey.c103 int cert; member
264 if ((certs_only && !kt->cert) || (plain_only && kt->cert)) in sshkey_alg_list()
520 freezero(cert, sizeof(*cert)); in cert_free()
528 if ((cert = calloc(1, sizeof(*cert))) == NULL) in cert_new()
540 return cert; in cert_new()
559 k->cert = NULL; in sshkey_new()
792 if (!cert_compare(a->cert, b->cert)) in sshkey_equal()
1403 ret->cert = k->cert; in sshkey_read()
2255 key->cert->nprincipals, key->cert->nprincipals + 1, in cert_parse()
2932 cert = k->cert->certblob; /* for readability */ in sshkey_certify_custom()
[all …]
H A Dauth2-pubkey.c160 (key->cert == NULL || key->cert->signature_type == NULL) ? in userauth_pubkey()
161 "(null)" : key->cert->signature_type); in userauth_pubkey()
306 for (i = 0; i < cert->nprincipals; i++) { in match_principals_option()
358 for (i = 0; i < cert->nprincipals; i++) { in check_principals_line()
359 if (strcmp(cp, cert->principals[i]) != 0) in check_principals_line()
362 loc, cert->principals[i]); in check_principals_line()
441 const struct sshkey_cert *cert = key->cert; in match_principals_command() local
508 (unsigned long long)cert->serial); in match_principals_command()
522 "i", cert->key_id, in match_principals_command()
684 key->cert->key_id, in check_authkey_line()
[all …]
/freebsd-13.1/crypto/openssh/regress/unittests/authopt/
H A Dtests.c293 struct sshkey *cert; in test_cert_parse() local
301 sshkey_free(cert); \ in test_cert_parse()
329 cert = load_key("all_permit.cert"); in test_cert_parse()
331 opts = sshauthopt_from_cert(cert); in test_cert_parse()
336 cert = load_key("no_permit.cert"); in test_cert_parse()
339 opts = sshauthopt_from_cert(cert); in test_cert_parse()
348 opts = sshauthopt_from_cert(cert); in test_cert_parse()
357 opts = sshauthopt_from_cert(cert); in test_cert_parse()
368 sshkey_free(cert); \ in test_cert_parse()
380 struct sshkey *cert; in test_merge() local
[all …]
/freebsd-13.1/crypto/openssl/crypto/ts/
H A Dts_rsp_verify.c208 X509 *cert; in ts_check_signing_certs() local
214 cert = sk_X509_value(chain, 0); in ts_check_signing_certs()
215 if (ts_find_cert(cert_ids, cert) != 0) in ts_check_signing_certs()
224 cert = sk_X509_value(chain, i); in ts_check_signing_certs()
225 if (ts_find_cert(cert_ids, cert) < 0) in ts_check_signing_certs()
231 cert = sk_X509_value(chain, 0); in ts_check_signing_certs()
232 if (ts_find_cert_v2(cert_ids_v2, cert) != 0) in ts_check_signing_certs()
241 cert = sk_X509_value(chain, i); in ts_check_signing_certs()
289 if (!cert_ids || !cert) in ts_find_cert()
293 X509_check_purpose(cert, -1, 0); in ts_find_cert()
[all …]
/freebsd-13.1/contrib/wpa/wpa_supplicant/
H A Dnotify.c810 cert->depth, cert->subject, cert_hash ? " hash=" : "", in wpas_notify_certification()
812 cert->tod == 2 ? " tod=2" : "", in wpas_notify_certification()
815 if (cert->cert) { in wpas_notify_certification()
817 size_t len = wpabuf_len(cert->cert) * 2 + 1; in wpas_notify_certification()
820 wpa_snprintf_hex(cert_hex, len, wpabuf_head(cert->cert), in wpas_notify_certification()
821 wpabuf_len(cert->cert)); in wpas_notify_certification()
825 cert->depth, cert->subject, cert_hex); in wpas_notify_certification()
832 "depth=%d %s", cert->depth, cert->altsubject[i]); in wpas_notify_certification()
835 wpas_dbus_signal_certification(wpa_s, cert->depth, cert->subject, in wpas_notify_certification()
836 cert->altsubject, cert->num_altsubject, in wpas_notify_certification()
[all …]
/freebsd-13.1/crypto/openssl/crypto/pkcs12/
H A Dp12_crt.c31 PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert, in PKCS12_create() argument
57 if (!pkey && !cert && !ca) { in PKCS12_create()
62 if (pkey && cert) { in PKCS12_create()
63 if (!X509_check_private_key(cert, pkey)) in PKCS12_create()
65 if (!X509_digest(cert, EVP_sha1(), keyid, &keyidlen)) in PKCS12_create()
69 if (cert) { in PKCS12_create()
70 bag = PKCS12_add_cert(&bags, cert); in PKCS12_create()
135 PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert) in PKCS12_add_cert() argument
144 if ((bag = PKCS12_SAFEBAG_create_cert(cert)) == NULL) in PKCS12_add_cert()
151 name = (char *)X509_alias_get0(cert, &namelen); in PKCS12_add_cert()
[all …]
/freebsd-13.1/contrib/wpa/src/crypto/
H A Dtls_openssl.c629 cert = NULL; in tls_cryptoapi_cert()
643 if (cert) in tls_cryptoapi_cert()
659 X509 *cert; in tls_cryptoapi_ca_cert() local
2170 ev.cert_fail.cert = cert; in openssl_tls_fail_event()
2232 ev.peer_cert.cert = cert; in openssl_tls_cert_event()
2235 if (cert) { in openssl_tls_cert_event()
3412 X509 *cert; in tls_parse_pkcs12() local
3621 *cert = params.cert; in tls_engine_get_cert()
4871 if (cert && !sk_X509_push(certs, cert)) { in ocsp_resp_cb()
4881 if (cert && !sk_X509_push(certs, cert)) { in ocsp_resp_cb()
[all …]
/freebsd-13.1/contrib/wpa/src/utils/
H A Dhttp_curl.c212 on = os_realloc_array(cert->othername, cert->num_othername + 1, in add_alt_name_othername()
246 n = os_realloc_array(cert->dnsname, cert->num_dnsname + 1, in add_alt_name_dns()
251 cert->dnsname = n; in add_alt_name_dns()
253 cert->num_dnsname++; in add_alt_name_dns()
935 X509 *cert; in http_parse_x509_certificate() local
989 X509_free(cert); in http_parse_x509_certificate()
996 X509 *cert; in curl_cb_ssl_verify() local
1016 if (!cert) { in curl_cb_ssl_verify()
1168 X509 *cert; in ocsp_resp_cb() local
1170 if (cert && !sk_X509_push(certs, cert)) { in ocsp_resp_cb()
[all …]

12345678910>>...14