| /freebsd-9-stable/contrib/wpa/src/tls/ |
| D | x509v3.c | 51 void x509_certificate_free(struct x509_certificate *cert) in x509_certificate_free() argument 53 if (cert == NULL) in x509_certificate_free() 55 if (cert->next) { in x509_certificate_free() 58 cert, cert->next); in x509_certificate_free() 60 x509_free_name(&cert->issuer); in x509_certificate_free() 61 x509_free_name(&cert->subject); in x509_certificate_free() 62 os_free(cert->public_key); in x509_certificate_free() 63 os_free(cert->sign_value); in x509_certificate_free() 64 os_free(cert); in x509_certificate_free() 72 void x509_certificate_chain_free(struct x509_certificate *cert) in x509_certificate_chain_free() argument [all …]
|
| D | tlsv1_server_write.c | 31 struct x509_certificate *cert; in tls_server_cert_chain_der_len() local 33 cert = conn->cred->cert; in tls_server_cert_chain_der_len() 34 while (cert) { in tls_server_cert_chain_der_len() 35 len += 3 + cert->cert_len; in tls_server_cert_chain_der_len() 36 if (x509_certificate_self_signed(cert)) in tls_server_cert_chain_der_len() 38 cert = x509_certificate_get_subject(conn->cred->trusted_certs, in tls_server_cert_chain_der_len() 39 &cert->issuer); in tls_server_cert_chain_der_len() 164 struct x509_certificate *cert; in tls_write_server_certificate() local 193 cert = conn->cred->cert; in tls_write_server_certificate() 194 while (cert) { in tls_write_server_certificate() [all …]
|
| D | tlsv1_cred.c | 38 x509_certificate_chain_free(cred->cert); in tlsv1_cred_free() 49 struct x509_certificate *cert; in tlsv1_add_cert_der() local 52 cert = x509_certificate_parse(buf, len); in tlsv1_add_cert_der() 53 if (cert == NULL) { in tlsv1_add_cert_der() 59 cert->next = *chain; in tlsv1_add_cert_der() 60 *chain = cert; in tlsv1_add_cert_der() 62 x509_name_string(&cert->subject, name, sizeof(name)); in tlsv1_add_cert_der() 147 const char *cert, const u8 *cert_blob, in tlsv1_set_cert_chain() argument 153 if (cert) { in tlsv1_set_cert_chain() 158 buf = (u8 *) os_readfile(cert, &len); in tlsv1_set_cert_chain() [all …]
|
| D | tlsv1_client_write.c | 31 struct x509_certificate *cert; in tls_client_cert_chain_der_len() local 36 cert = conn->cred->cert; in tls_client_cert_chain_der_len() 37 while (cert) { in tls_client_cert_chain_der_len() 38 len += 3 + cert->cert_len; in tls_client_cert_chain_der_len() 39 if (x509_certificate_self_signed(cert)) in tls_client_cert_chain_der_len() 41 cert = x509_certificate_get_subject(conn->cred->trusted_certs, in tls_client_cert_chain_der_len() 42 &cert->issuer); in tls_client_cert_chain_der_len() 137 struct x509_certificate *cert; in tls_write_client_certificate() local 158 cert = conn->cred ? conn->cred->cert : NULL; in tls_write_client_certificate() 159 while (cert) { in tls_write_client_certificate() [all …]
|
| /freebsd-9-stable/crypto/heimdal/lib/hx509/ |
| D | test_ca.in | 66 cert:FILE:cert-ee.pem \ 76 cert:FILE:cert-ee.pem \ 84 FILE:cert-ee.pem || exit 1 88 cert:FILE:cert-ee.pem \ 97 FILE:cert-ee.pem || exit 1 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 \ [all …]
|
| D | test_chain.in | 52 cert:FILE:$srcdir/data/test.crt \ 59 cert:FILE:$srcdir/data/test.crt \ 65 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 \ [all …]
|
| D | cert.c | 191 _hx509_get_cert(hx509_cert cert) in _hx509_get_cert() argument 193 return cert->data; in _hx509_get_cert() 220 hx509_cert_init(hx509_context context, const Certificate *c, hx509_cert *cert) in hx509_cert_init() argument 224 *cert = malloc(sizeof(**cert)); in hx509_cert_init() 225 if (*cert == NULL) in hx509_cert_init() 227 (*cert)->ref = 1; in hx509_cert_init() 228 (*cert)->friendlyname = NULL; in hx509_cert_init() 229 (*cert)->attrs.len = 0; in hx509_cert_init() 230 (*cert)->attrs.val = NULL; in hx509_cert_init() 231 (*cert)->private_key = NULL; in hx509_cert_init() [all …]
|
| 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
|
| D | peer.c | 95 if (peer->cert) in hx509_peer_info_free() 96 hx509_cert_free(peer->cert); in hx509_peer_info_free() 115 hx509_cert cert) in hx509_peer_info_set_cert() argument 117 if (peer->cert) in hx509_peer_info_set_cert() 118 hx509_cert_free(peer->cert); in hx509_peer_info_set_cert() 119 peer->cert = hx509_cert_ref(cert); in hx509_peer_info_set_cert()
|
| /freebsd-9-stable/crypto/openssl/util/ |
| D | mkcerts.sh | 19 echo creating $CAbits bit PCA cert request 45 -CAcreateserial -CAserial pca-cert.srl \ 46 -in pca-req.pem -out pca-cert.pem 49 echo problems self signing PCA cert 55 echo creating $CAbits bit CA cert request 81 -CAcreateserial -CAserial pca-cert.srl \ 82 -CA pca-cert.pem -CAkey pca-key.pem \ 83 -in ca-req.pem -out ca-cert.pem 86 echo problems signing CA cert 92 echo creating 512 bit server cert request [all …]
|
| /freebsd-9-stable/contrib/bind9/lib/dns/rdata/generic/ |
| D | cert_37.c | 33 dns_cert_t cert; in fromtext_cert() local 48 RETTOK(dns_cert_fromtext(&cert, &token.value.as_textregion)); in fromtext_cert() 49 RETERR(uint16_tobuffer(cert, target)); in fromtext_cert() 172 dns_rdata_cert_t *cert = source; in fromstruct_cert() local 176 REQUIRE(cert->common.rdtype == type); in fromstruct_cert() 177 REQUIRE(cert->common.rdclass == rdclass); in fromstruct_cert() 182 RETERR(uint16_tobuffer(cert->type, target)); in fromstruct_cert() 183 RETERR(uint16_tobuffer(cert->key_tag, target)); in fromstruct_cert() 184 RETERR(uint8_tobuffer(cert->algorithm, target)); in fromstruct_cert() 186 return (mem_tobuffer(target, cert->certificate, cert->length)); in fromstruct_cert() [all …]
|
| /freebsd-9-stable/crypto/openssh/regress/ |
| D | cert-hostkey.sh | 6 rm -f $OBJ/known_hosts-cert $OBJ/host_ca_key* $OBJ/cert_host_key* 18 ) > $OBJ/known_hosts-cert 57 echo HostCertificate $OBJ/cert_host_key_${ktype}-cert.pub 61 ${SSH} -2 -oUserKnownHostsFile=$OBJ/known_hosts-cert \ 62 -oGlobalKnownHostsFile=$OBJ/known_hosts-cert \ 79 ) > $OBJ/known_hosts-cert 86 echo HostCertificate $OBJ/cert_host_key_${ktype}-cert.pub 90 ${SSH} -2 -oUserKnownHostsFile=$OBJ/known_hosts-cert \ 91 -oGlobalKnownHostsFile=$OBJ/known_hosts-cert \ 107 ) > $OBJ/known_hosts-cert [all …]
|
| /freebsd-9-stable/crypto/openssh/ |
| D | key.c | 67 struct KeyCert *cert; in cert_new() local 69 cert = xcalloc(1, sizeof(*cert)); in cert_new() 70 buffer_init(&cert->certblob); in cert_new() 71 buffer_init(&cert->critical); in cert_new() 72 buffer_init(&cert->extensions); in cert_new() 73 cert->key_id = NULL; in cert_new() 74 cert->principals = NULL; in cert_new() 75 cert->signature_key = NULL; in cert_new() 76 return cert; in cert_new() 91 k->cert = NULL; in key_new() [all …]
|
| D | ssh-add.c | 102 Key *public = NULL, *cert = NULL; in delete_file() local 124 if ((cert = key_load_public(certpath, &comment)) == NULL) in delete_file() 126 if (!key_equal_public(cert, public)) in delete_file() 130 if (ssh_remove_identity(ac, cert)) { in delete_file() 138 if (cert != NULL) in delete_file() 139 key_free(cert); in delete_file() 170 Key *private, *cert; in add_file() local 254 if ((cert = key_load_public(certpath, NULL)) == NULL) in add_file() 257 if (!key_equal_public(cert, private)) { in add_file() 260 key_free(cert); in add_file() [all …]
|
| D | auth2-pubkey.c | 215 fp = key_fingerprint(key->cert->signature_key, in pubkey_auth_info() 218 key_type(key), key->cert->key_id, in pubkey_auth_info() 219 (unsigned long long)key->cert->serial, in pubkey_auth_info() 220 key_type(key->cert->signature_key), fp, in pubkey_auth_info() 233 match_principals_option(const char *principal_list, struct KeyCert *cert) in match_principals_option() argument 240 for (i = 0; i < cert->nprincipals; i++) { in match_principals_option() 241 if ((result = match_list(cert->principals[i], in match_principals_option() 253 match_principals_file(char *file, struct passwd *pw, struct KeyCert *cert) in match_principals_file() argument 291 for (i = 0; i < cert->nprincipals; i++) { in match_principals_file() 292 if (strcmp(cp, cert->principals[i]) == 0) { in match_principals_file() [all …]
|
| /freebsd-9-stable/crypto/openssl/crypto/pkcs12/ |
| D | p12_kiss.c | 67 EVP_PKEY **pkey, X509 **cert, STACK_OF(X509) **ca); 70 int passlen, EVP_PKEY **pkey, X509 **cert, 75 EVP_PKEY **pkey, X509 **cert, STACK_OF(X509) **ca, 85 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument 107 if (cert) in PKCS12_parse() 108 *cert = NULL; in PKCS12_parse() 133 if (!parse_pk12(p12, pass, -1, pkey, cert, ca)) { in PKCS12_parse() 144 if (cert && *cert) in PKCS12_parse() 145 X509_free(*cert); in PKCS12_parse() 155 EVP_PKEY **pkey, X509 **cert, STACK_OF(X509) **ca) in parse_pk12() argument [all …]
|
| /freebsd-9-stable/crypto/openssl/demos/ssltest-ecc/ |
| D | ssltest.sh | 69 $SSLTEST $SSL_VERSION -cert $SERVER_PEM -cipher $cipher 75 $SSLTEST $SSL_VERSION -cert $SERVER_PEM \ 82 $SSLTEST $SSL_VERSION -cert $SERVER_PEM \ 99 -cert $SERVER_PEM -server_auth \ 104 -cert $SERVER_PEM -server_auth \ 116 -cert $SERVER_PEM -server_auth \ 121 -cert $SERVER_PEM -server_auth \ 131 -cert $SERVER_PEM -server_auth \ 149 -cert $SERVER_PEM -server_auth \ 154 -cert $SERVER_PEM -server_auth \ [all …]
|
| D | RSAcertgen.sh | 59 -out $CERTS_DIR/$TEST_CA_FILE.cert.pem 62 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CA_FILE.cert.pem -text 65 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CA_FILE.cert.pem -issuer -subject \ 82 -CA $CERTS_DIR/$TEST_CA_FILE.cert.pem \ 84 -out $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -CAcreateserial 87 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -text 90 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -issuer -subject \ 107 -CA $CERTS_DIR/$TEST_CA_FILE.cert.pem \ 109 -out $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -CAcreateserial 112 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -text [all …]
|
| D | ECCcertgen.sh | 72 -out $CERTS_DIR/$TEST_CA_FILE.cert.pem 75 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CA_FILE.cert.pem -text 78 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CA_FILE.cert.pem -issuer -subject \ 109 -CA $CERTS_DIR/$TEST_CA_FILE.cert.pem \ 111 -out $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -CAcreateserial 114 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -text 117 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -issuer -subject \ 148 -CA $CERTS_DIR/$TEST_CA_FILE.cert.pem \ 150 -out $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -CAcreateserial 153 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -text [all …]
|
| D | ECC-RSAcertgen.sh | 58 -CA $CERTS_DIR/$TEST_CA_FILE.cert.pem \ 60 -out $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -CAcreateserial 63 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -text 66 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_SERVER_FILE.cert.pem -issuer -subject \ 84 -CA $CERTS_DIR/$TEST_CA_FILE.cert.pem \ 86 -out $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -CAcreateserial 89 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -text 92 $OPENSSL_CMD x509 -in $CERTS_DIR/$TEST_CLIENT_FILE.cert.pem -issuer -subject \
|
| /freebsd-9-stable/crypto/heimdal/lib/hx509/data/ |
| D | gen-req.sh | 20 -out cert.req > /dev/null 2>/dev/null 26 -in cert.req \ 30 -out cert.crt 32 ln -s ca.crt `${openssl} x509 -hash -noout -in cert.crt`.0 40 -in cert.req \ 42 -out cert.crt \ 55 -cert $2.crt \ 57 -in cert.req \ 58 -out cert.crt \ 66 mv cert.crt $name.crt [all …]
|
| /freebsd-9-stable/contrib/wpa/src/crypto/ |
| D | tls_openssl.c | 135 const CERT_CONTEXT *cert; member 258 if (priv->cert) in cryptoapi_free_data() 259 CertFreeCertificateContext(priv->cert); in cryptoapi_free_data() 321 X509 *cert = NULL; in tls_cryptoapi_cert() local 341 priv->cert = cryptoapi_find_cert(name, CERT_SYSTEM_STORE_CURRENT_USER); in tls_cryptoapi_cert() 342 if (priv->cert == NULL) { in tls_cryptoapi_cert() 343 priv->cert = cryptoapi_find_cert( in tls_cryptoapi_cert() 346 if (priv->cert == NULL) { in tls_cryptoapi_cert() 352 cert = d2i_X509(NULL, (OPENSSL_d2i_TYPE) &priv->cert->pbCertEncoded, in tls_cryptoapi_cert() 353 priv->cert->cbCertEncoded); in tls_cryptoapi_cert() [all …]
|
| /freebsd-9-stable/crypto/openssl/crypto/x509v3/ |
| D | v3conf.c | 72 X509 *cert; in main() local 99 cert = PEM_read_X509(inf, NULL, NULL); in main() 100 if (!cert) { in main() 106 sk_pop_free(cert->cert_info->extensions, X509_EXTENSION_free); in main() 107 cert->cert_info->extensions = NULL; in main() 109 if (!X509V3_EXT_add_conf(conf, NULL, "test_section", cert)) { in main() 115 count = X509_get_ext_count(cert); in main() 118 ext = X509_get_ext(cert, i); in main()
|
| /freebsd-9-stable/crypto/openssl/ssl/ |
| D | ssl_cert.c | 181 CERT *ssl_cert_dup(CERT *cert) in ssl_cert_dup() argument 194 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]]; in ssl_cert_dup() 200 ret->valid = cert->valid; in ssl_cert_dup() 201 ret->mask = cert->mask; in ssl_cert_dup() 202 ret->export_mask = cert->export_mask; in ssl_cert_dup() 205 if (cert->rsa_tmp != NULL) { in ssl_cert_dup() 206 RSA_up_ref(cert->rsa_tmp); in ssl_cert_dup() 207 ret->rsa_tmp = cert->rsa_tmp; in ssl_cert_dup() 209 ret->rsa_tmp_cb = cert->rsa_tmp_cb; in ssl_cert_dup() 213 if (cert->dh_tmp != NULL) { in ssl_cert_dup() [all …]
|
| /freebsd-9-stable/crypto/openssl/engines/ |
| D | e_capi.c | 1147 CRYPT_KEY_PROV_INFO *capi_get_prov_info(CAPI_CTX * ctx, PCCERT_CONTEXT cert) in capi_get_prov_info() argument 1153 (cert, CERT_KEY_PROV_INFO_PROP_ID, NULL, &len)) in capi_get_prov_info() 1161 (cert, CERT_KEY_PROV_INFO_PROP_ID, pinfo, &len)) { in capi_get_prov_info() 1196 char *capi_cert_get_fname(CAPI_CTX * ctx, PCCERT_CONTEXT cert) in capi_cert_get_fname() argument 1203 (cert, CERT_FRIENDLY_NAME_PROP_ID, NULL, &dlen)) in capi_cert_get_fname() 1207 (cert, CERT_FRIENDLY_NAME_PROP_ID, wfname, &dlen)) { in capi_cert_get_fname() 1219 void capi_dump_cert(CAPI_CTX * ctx, BIO *out, PCCERT_CONTEXT cert) in capi_dump_cert() argument 1226 fname = capi_cert_get_fname(ctx, cert); in capi_dump_cert() 1234 p = cert->pbCertEncoded; in capi_dump_cert() 1235 x = d2i_X509(NULL, &p, cert->cbCertEncoded); in capi_dump_cert() [all …]
|