| /freebsd-12.1/crypto/heimdal/lib/hx509/ |
| H A D | test_ca.in | 66 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 D | test_chain.in | 52 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 D | cert.c | 224 *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 D | test_cert.in | 61 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 D | cms.c | 267 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 …]
|
| H A D | peer.c | 96 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()
|
| /freebsd-12.1/contrib/wpa/src/tls/ |
| H A D | x509v3.c | 52 cert, cert->next); in x509_certificate_free() 59 os_free(cert); in x509_certificate_free() 75 cert = next; in x509_certificate_chain_free() 285 cert->public_key, cert->public_key_len); in x509_parse_public_key() 887 cert->ca, cert->path_len_constraint); in x509_parse_ext_basic_constraints() 1659 cert = os_zalloc(sizeof(*cert) + len); in x509_certificate_parse() 1663 cert->cert_start = (u8 *) (cert + 1); in x509_certificate_parse() 1745 cert->sign_value, cert->sign_value_len); in x509_certificate_parse() 1762 cert->sign_value, cert->sign_value_len, in x509_certificate_check_signature() 2072 for (cert = chain, idx = 0; cert; cert = cert->next, idx++) { in x509_certificate_chain_validate() [all …]
|
| H A D | tlsv1_cred.c | 66 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 D | tlsv1_client_write.c | 27 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() 295 cert = conn->cred ? conn->cred->cert : NULL; in tls_write_client_certificate() 296 while (cert) { in tls_write_client_certificate() 308 os_memcpy(pos, cert->cert_start, cert->cert_len); in tls_write_client_certificate() 309 pos += cert->cert_len; in tls_write_client_certificate() 314 &cert->issuer); in tls_write_client_certificate() [all …]
|
| /freebsd-12.1/crypto/openssh/regress/ |
| H A D | cert-hostkey.sh | 18 *rsa*cert*) 61 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 113 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 167 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 178 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 191 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 199 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 210 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 231 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 291 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert [all …]
|
| /freebsd-12.1/crypto/openssh/regress/unittests/authopt/testdata/ |
| H A D | mktestdata.sh | 7 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-12.1/contrib/ldns/ |
| H A D | dane.c | 90 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-12.1/crypto/openssl/ssl/ |
| H A D | ssl_cert.c | 85 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() 787 CERT *c = s ? s->cert : ctx->cert; in ssl_build_cert_chain() [all …]
|
| /freebsd-12.1/crypto/openssh/regress/unittests/sshkey/ |
| H A D | test_sshkey.c | 396 ASSERT_PTR_NE(k1->cert, NULL); in sshkey_tests() 397 k1->cert->type = SSH2_CERT_TYPE_USER; in sshkey_tests() 398 k1->cert->serial = 1234; in sshkey_tests() 399 k1->cert->key_id = strdup("estragon"); in sshkey_tests() 401 k1->cert->principals = calloc(4, sizeof(*k1->cert->principals)); in sshkey_tests() 411 k1->cert->nprincipals = 4; in sshkey_tests() 412 k1->cert->valid_after = 0; in sshkey_tests() 414 sshbuf_free(k1->cert->critical); in sshkey_tests() 415 k1->cert->critical = sshbuf_new(); in sshkey_tests() 417 sshbuf_free(k1->cert->extensions); in sshkey_tests() [all …]
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | sshkey.c | 91 int cert; member 237 if ((certs_only && !kt->cert) || (plain_only && kt->cert)) in sshkey_alg_list() 468 freezero(cert, sizeof(*cert)); in cert_free() 476 if ((cert = calloc(1, sizeof(*cert))) == NULL) in cert_new() 487 return cert; in cert_new() 506 k->cert = NULL; in sshkey_new() 726 if (!cert_compare(a->cert, b->cert)) in sshkey_equal() 1325 ret->cert = k->cert; in sshkey_read() 1931 key->cert->nprincipals, key->cert->nprincipals + 1, in cert_parse() 2512 cert = k->cert->certblob; /* for readability */ in sshkey_certify_custom() [all …]
|
| H A D | auth2-pubkey.c | 257 for (i = 0; i < cert->nprincipals; i++) { in match_principals_option() 309 for (i = 0; i < cert->nprincipals; i++) { in check_principals_line() 310 if (strcmp(cp, cert->principals[i]) != 0) in check_principals_line() 313 loc, cert->principals[i]); in check_principals_line() 392 const struct sshkey_cert *cert = key->cert; in match_principals_command() local 458 (unsigned long long)cert->serial); in match_principals_command() 472 "i", cert->key_id, in match_principals_command() 664 key->cert->key_id, in check_authkey_line() 665 (unsigned long long)key->cert->serial, in check_authkey_line() 761 key->cert, &principals_opts)) in user_cert_trusted_ca() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/ct/ |
| H A D | ct_sct_ctx.c | 50 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 D | ct_policy.c | 48 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-12.1/crypto/openssh/regress/unittests/authopt/ |
| H A D | tests.c | 287 struct sshkey *cert; in test_cert_parse() local 295 sshkey_free(cert); \ in test_cert_parse() 323 cert = load_key("all_permit.cert"); in test_cert_parse() 325 opts = sshauthopt_from_cert(cert); in test_cert_parse() 330 cert = load_key("no_permit.cert"); in test_cert_parse() 333 opts = sshauthopt_from_cert(cert); in test_cert_parse() 342 opts = sshauthopt_from_cert(cert); in test_cert_parse() 351 opts = sshauthopt_from_cert(cert); in test_cert_parse() 362 sshkey_free(cert); \ in test_cert_parse() 374 struct sshkey *cert; in test_merge() local [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/ts/ |
| H A D | ts_rsp_verify.c | 208 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() 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() 292 X509_digest(cert, EVP_sha1(), cert_sha1, NULL); in ts_find_cert() 295 X509_check_purpose(cert, -1, 0); in ts_find_cert() [all …]
|
| /freebsd-12.1/contrib/wpa/src/crypto/ |
| H A D | tls_openssl.c | 628 cert = NULL; in tls_cryptoapi_cert() 642 if (cert) in tls_cryptoapi_cert() 658 X509 *cert; in tls_cryptoapi_ca_cert() local 2162 ev.cert_fail.cert = cert; in openssl_tls_fail_event() 2221 ev.peer_cert.cert = cert; in openssl_tls_cert_event() 2224 if (cert) { in openssl_tls_cert_event() 3312 X509 *cert; in tls_parse_pkcs12() local 3330 if (cert) { in tls_parse_pkcs12() 3521 *cert = params.cert; in tls_engine_get_cert() 4747 if (cert && !sk_X509_push(certs, cert)) { in ocsp_resp_cb() [all …]
|
| /freebsd-12.1/contrib/wpa/wpa_supplicant/ |
| H A D | notify.c | 798 cert->depth, cert->subject, cert_hash ? " hash=" : "", in wpas_notify_certification() 800 cert->tod ? " tod=1" : ""); in wpas_notify_certification() 802 if (cert->cert) { in wpas_notify_certification() 804 size_t len = wpabuf_len(cert->cert) * 2 + 1; in wpas_notify_certification() 807 wpa_snprintf_hex(cert_hex, len, wpabuf_head(cert->cert), in wpas_notify_certification() 808 wpabuf_len(cert->cert)); in wpas_notify_certification() 812 cert->depth, cert->subject, cert_hex); in wpas_notify_certification() 819 "depth=%d %s", cert->depth, cert->altsubject[i]); in wpas_notify_certification() 822 wpas_dbus_signal_certification(wpa_s, cert->depth, cert->subject, in wpas_notify_certification() 823 cert->altsubject, cert->num_altsubject, in wpas_notify_certification() [all …]
|
| /freebsd-12.1/crypto/openssl/crypto/pkcs12/ |
| H A D | p12_crt.c | 31 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 X509_digest(cert, EVP_sha1(), keyid, &keyidlen); in PKCS12_create() 68 if (cert) { in PKCS12_create() 69 bag = PKCS12_add_cert(&bags, cert); in PKCS12_create() 134 PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert) in PKCS12_add_cert() argument 143 if ((bag = PKCS12_SAFEBAG_create_cert(cert)) == NULL) in PKCS12_add_cert() 150 name = (char *)X509_alias_get0(cert, &namelen); in PKCS12_add_cert() [all …]
|
| /freebsd-12.1/contrib/wpa/src/utils/ |
| H A D | http_curl.c | 212 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 …]
|
| /freebsd-12.1/crypto/openssl/engines/ |
| H A D | e_capi.c | 1427 if (!cert) { in capi_list_certs() 1435 cert = CertEnumCertificatesInStore(hstore, cert); in capi_list_certs() 1436 if (!cert) in capi_list_certs() 1459 cert = CertEnumCertificatesInStore(hstore, cert); in capi_find_cert() 1460 if (!cert) in capi_find_cert() 1546 PCCERT_CONTEXT cert; in capi_find_key() local 1557 if (cert) { in capi_find_key() 1720 cert = CertEnumCertificatesInStore(hstore, cert); in capi_load_ssl_client_cert() 1721 if (!cert) in capi_load_ssl_client_cert() 1753 if (cert) in capi_load_ssl_client_cert() [all …]
|