/external/libcups/scheduler/ |
D | cert.c | 40 cupsd_cert_t *cert; /* Current certificate */ in cupsdAddCert() local 53 if ((cert = calloc(sizeof(cupsd_cert_t), 1)) == NULL) in cupsdAddCert() 60 cert->pid = pid; in cupsdAddCert() 61 cert->type = type; in cupsdAddCert() 62 strlcpy(cert->username, username, sizeof(cert->username)); in cupsdAddCert() 65 cert->certificate[i] = hex[CUPS_RAND() & 15]; in cupsdAddCert() 80 free(cert); in cupsdAddCert() 247 write(fd, cert->certificate, strlen(cert->certificate)); in cupsdAddCert() 254 cert->next = Certs; in cupsdAddCert() 255 Certs = cert; in cupsdAddCert() [all …]
|
/external/openssh/regress/ |
D | cert-hostkey.sh | 6 rm -f $OBJ/known_hosts-cert* $OBJ/host_ca_key* $OBJ/host_revoked_* 19 *rsa*cert*) 26 *cert*) types="$i,$types";; 64 kh_ca host_ca_key.pub host_ca_key2.pub > $OBJ/known_hosts-cert.orig 65 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 106 $OBJ/cert_host_key_${ktype}-cert.pub || \ 108 cat $OBJ/cert_host_key_${ktype}-cert.pub >> $OBJ/host_revoked_cert 117 cp $OBJ/known_hosts-cert.orig $OBJ/known_hosts-cert 118 ${SSH} -oUserKnownHostsFile=$OBJ/known_hosts-cert \ 119 -oGlobalKnownHostsFile=$OBJ/known_hosts-cert \ [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | x509v3.c | 45 void x509_certificate_free(struct x509_certificate *cert) in x509_certificate_free() argument 47 if (cert == NULL) in x509_certificate_free() 49 if (cert->next) { in x509_certificate_free() 52 cert, cert->next); in x509_certificate_free() 54 x509_free_name(&cert->issuer); in x509_certificate_free() 55 x509_free_name(&cert->subject); in x509_certificate_free() 56 os_free(cert->public_key); in x509_certificate_free() 57 os_free(cert->sign_value); in x509_certificate_free() 58 os_free(cert->subject_dn); in x509_certificate_free() 59 os_free(cert); in x509_certificate_free() [all …]
|
/external/openssh/regress/unittests/authopt/testdata/ |
D | mktestdata.sh | 7 rm -f *.cert 18 mv user_key-cert.pub "$output" 21 sign all_permit.cert -Opermit-agent-forwarding -Opermit-port-forwarding \ 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 31 sign only_agentfwd.cert -Oclear -Opermit-agent-forwarding [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | ssl_cert.cc | 150 UniquePtr<CERT> ssl_cert_dup(CERT *cert) { in ssl_cert_dup() argument 151 UniquePtr<CERT> ret = MakeUnique<CERT>(cert->x509_method); in ssl_cert_dup() 156 if (cert->chain) { in ssl_cert_dup() 158 cert->chain.get(), buffer_up_ref, CRYPTO_BUFFER_free)); in ssl_cert_dup() 164 ret->privatekey = UpRef(cert->privatekey); in ssl_cert_dup() 165 ret->key_method = cert->key_method; in ssl_cert_dup() 167 if (!ret->sigalgs.CopyFrom(cert->sigalgs)) { in ssl_cert_dup() 171 ret->cert_cb = cert->cert_cb; in ssl_cert_dup() 172 ret->cert_cb_arg = cert->cert_cb_arg; in ssl_cert_dup() 174 ret->x509_method->cert_dup(ret.get(), cert); in ssl_cert_dup() [all …]
|
D | ssl_x509.cc | 203 static bool ssl_cert_set_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set_chain() argument 206 if (cert->chain != nullptr) { in ssl_cert_set_chain() 213 CRYPTO_BUFFER *leaf = sk_CRYPTO_BUFFER_value(cert->chain.get(), 0); in ssl_cert_set_chain() 234 cert->chain = std::move(new_chain); in ssl_cert_set_chain() 238 static void ssl_crypto_x509_cert_flush_cached_leaf(CERT *cert) { in ssl_crypto_x509_cert_flush_cached_leaf() argument 239 X509_free(cert->x509_leaf); in ssl_crypto_x509_cert_flush_cached_leaf() 240 cert->x509_leaf = nullptr; in ssl_crypto_x509_cert_flush_cached_leaf() 243 static void ssl_crypto_x509_cert_flush_cached_chain(CERT *cert) { in ssl_crypto_x509_cert_flush_cached_chain() argument 244 sk_X509_pop_free(cert->x509_chain, X509_free); in ssl_crypto_x509_cert_flush_cached_chain() 245 cert->x509_chain = nullptr; in ssl_crypto_x509_cert_flush_cached_chain() [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_cert.cc | 150 UniquePtr<CERT> ssl_cert_dup(CERT *cert) { in ssl_cert_dup() argument 151 UniquePtr<CERT> ret = MakeUnique<CERT>(cert->x509_method); in ssl_cert_dup() 156 if (cert->chain) { in ssl_cert_dup() 158 cert->chain.get(), buffer_up_ref, CRYPTO_BUFFER_free)); in ssl_cert_dup() 164 ret->privatekey = UpRef(cert->privatekey); in ssl_cert_dup() 165 ret->key_method = cert->key_method; in ssl_cert_dup() 167 if (!ret->sigalgs.CopyFrom(cert->sigalgs)) { in ssl_cert_dup() 171 ret->cert_cb = cert->cert_cb; in ssl_cert_dup() 172 ret->cert_cb_arg = cert->cert_cb_arg; in ssl_cert_dup() 174 ret->x509_method->cert_dup(ret.get(), cert); in ssl_cert_dup() [all …]
|
D | ssl_x509.cc | 203 static bool ssl_cert_set_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set_chain() argument 206 if (cert->chain != nullptr) { in ssl_cert_set_chain() 213 CRYPTO_BUFFER *leaf = sk_CRYPTO_BUFFER_value(cert->chain.get(), 0); in ssl_cert_set_chain() 234 cert->chain = std::move(new_chain); in ssl_cert_set_chain() 238 static void ssl_crypto_x509_cert_flush_cached_leaf(CERT *cert) { in ssl_crypto_x509_cert_flush_cached_leaf() argument 239 X509_free(cert->x509_leaf); in ssl_crypto_x509_cert_flush_cached_leaf() 240 cert->x509_leaf = nullptr; in ssl_crypto_x509_cert_flush_cached_leaf() 243 static void ssl_crypto_x509_cert_flush_cached_chain(CERT *cert) { in ssl_crypto_x509_cert_flush_cached_chain() argument 244 sk_X509_pop_free(cert->x509_chain, X509_free); in ssl_crypto_x509_cert_flush_cached_chain() 245 cert->x509_chain = nullptr; in ssl_crypto_x509_cert_flush_cached_chain() [all …]
|
/external/rust/crates/quiche/examples/ |
D | gen-certs.sh | 5 openssl req -new -batch -nodes -sha256 -keyout cert.key -out cert.csr -subj '/C=GB/CN=quic.tech' 6 openssl x509 -req -days 10000 -in cert.csr -CA rootca.crt -CAkey rootca.key -CAcreateserial -out ce… 7 openssl verify -CAfile rootca.crt cert.crt 8 cp cert.crt cert-big.crt 9 cat cert.crt >> cert-big.crt 10 cat cert.crt >> cert-big.crt 11 cat cert.crt >> cert-big.crt 12 cat cert.crt >> cert-big.crt 13 rm cert.csr
|
/external/ipsec-tools/src/racoon/ |
D | dnssec.c | 62 cert_t *cert = NULL; local 119 cert = oakley_newcert(); 120 if (cert == NULL) { 125 cert->pl = vmalloc(res->ci_certlen + 1); 126 if (cert->pl == NULL) { 131 memcpy(cert->pl->v + 1, res->ci_cert, res->ci_certlen); 132 cert->pl->v[0] = type; 133 cert->cert.v = cert->pl->v + 1; 134 cert->cert.l = cert->pl->l - 1; 137 plogdump(LLV_DEBUG, cert->pl->v, cert->pl->l); [all …]
|
/external/libwebsockets/lib/tls/mbedtls/wrapper/library/ |
D | ssl_cert.c | 26 CERT *cert; in __ssl_cert_new() local 31 cert = ssl_mem_zalloc(sizeof(CERT)); in __ssl_cert_new() 32 if (!cert) { in __ssl_cert_new() 45 cert->pkey = __EVP_PKEY_new(ipk); in __ssl_cert_new() 46 if (!cert->pkey) { in __ssl_cert_new() 51 cert->x509 = __X509_new(ix); in __ssl_cert_new() 52 if (!cert->x509) { in __ssl_cert_new() 57 return cert; in __ssl_cert_new() 60 EVP_PKEY_free(cert->pkey); in __ssl_cert_new() 62 ssl_mem_free(cert); in __ssl_cert_new() [all …]
|
/external/conscrypt/api/platform/ |
D | current.txt | 59 …od public void checkClientTrusted(java.security.cert.X509Certificate[], String) throws java.securi… 60 … void checkClientTrusted(java.security.cert.X509Certificate[], String, java.net.Socket) throws jav… 61 …d checkClientTrusted(java.security.cert.X509Certificate[], String, javax.net.ssl.SSLEngine) throws… 62 …t<java.security.cert.X509Certificate> checkServerTrusted(java.security.cert.X509Certificate[], Str… 63 …security.cert.X509Certificate> getTrustedChainForServer(java.security.cert.X509Certificate[], Stri… 64 …rity.cert.X509Certificate> getTrustedChainForServer(java.security.cert.X509Certificate[], String, … 70 …method public java.util.Set<java.security.cert.TrustAnchor> findAllByIssuerAndSignature(java.secur… 71 …method public java.security.cert.TrustAnchor findByIssuerAndSignature(java.security.cert.X509Certi… 72 …method public java.security.cert.TrustAnchor findBySubjectAndPublicKey(java.security.cert.X509Cert… 73 method public java.security.cert.TrustAnchor index(java.security.cert.X509Certificate); [all …]
|
D | last-api.txt | 59 …od public void checkClientTrusted(java.security.cert.X509Certificate[], String) throws java.securi… 60 … void checkClientTrusted(java.security.cert.X509Certificate[], String, java.net.Socket) throws jav… 61 …d checkClientTrusted(java.security.cert.X509Certificate[], String, javax.net.ssl.SSLEngine) throws… 62 …t<java.security.cert.X509Certificate> checkServerTrusted(java.security.cert.X509Certificate[], Str… 63 …security.cert.X509Certificate> getTrustedChainForServer(java.security.cert.X509Certificate[], Stri… 64 …rity.cert.X509Certificate> getTrustedChainForServer(java.security.cert.X509Certificate[], String, … 70 …method public java.util.Set<java.security.cert.TrustAnchor> findAllByIssuerAndSignature(java.secur… 71 …method public java.security.cert.TrustAnchor findByIssuerAndSignature(java.security.cert.X509Certi… 72 …method public java.security.cert.TrustAnchor findBySubjectAndPublicKey(java.security.cert.X509Cert… 73 method public java.security.cert.TrustAnchor index(java.security.cert.X509Certificate); [all …]
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | TrustedCertificateStore.java | 26 import java.security.cert.Certificate; 27 import java.security.cert.CertificateException; 28 import java.security.cert.CertificateFactory; 29 import java.security.cert.X509Certificate; 147 X509Certificate cert = readCertificate(file); in getCertificate() local 148 if (cert == null || (isSystem(alias) in getCertificate() 150 && isDeletedSystemCertificate(cert))) { in getCertificate() 154 return cert; in getCertificate() 199 private void writeCertificate(File file, X509Certificate cert) in writeCertificate() argument 208 os.write(cert.getEncoded()); in writeCertificate() [all …]
|
/external/python/asn1crypto/tests/ |
D | test_x509.py | 72 def is_valid_domain_ip(self, cert, domain_ip, result): argument 73 cert = self._load_cert(cert) 74 self.assertEqual(result, cert.is_valid_domain_ip(domain_ip)) 470 cert = self._load_cert('chromium/ndn.ca.crt') 471 tbs_cert = cert['tbs_certificate'] 488 cert = self._load_cert('chromium/subjectAltName_sanity_check.pem') 489 alt_names = cert.subject_alt_name_value 506 cert = self._load_cert('geotrust_certs/codex.crt') 507 …self.assertEqual('78 1C 9F 87 59 93 52 08 D2 21 FA 70 6C C5 F9 76 12 C9 6D 8B', cert.sha1_fingerpr… 510 cert = self._load_cert('geotrust_certs/codex.crt') [all …]
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | ChainStrengthAnalyzer.java | 20 import java.security.cert.CertificateException; 21 import java.security.cert.X509Certificate; 51 for (X509Certificate cert : chain) { in check() 53 checkCert(cert); in check() 56 + cert.getSubjectX500Principal(), e); in check() 62 for (X509Certificate cert : chain) { in check() 64 checkCert(cert); in check() 67 + cert.getSubjectX500Principal(), e); in check() 72 public static final void checkCert(X509Certificate cert) throws CertificateException { in checkCert() argument 73 checkKeyLength(cert); in checkCert() [all …]
|
D | TrustedCertificateIndex.java | 21 import java.security.cert.TrustAnchor; 22 import java.security.cert.X509Certificate; 59 public TrustAnchor index(X509Certificate cert) { in index() argument 60 TrustAnchor anchor = new TrustAnchor(cert, null); in index() 67 X509Certificate cert = anchor.getTrustedCert(); in index() local 68 if (cert != null) { in index() 69 subject = cert.getSubjectX500Principal(); in index() 81 if (cert != null) { in index() 83 if (cert.equals(entry.getTrustedCert())) { in index() 107 public TrustAnchor findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument [all …]
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | ChainStrengthAnalyzer.java | 19 import java.security.cert.CertificateException; 20 import java.security.cert.X509Certificate; 49 for (X509Certificate cert : chain) { in check() 51 checkCert(cert); in check() 54 + cert.getSubjectX500Principal(), e); in check() 60 for (X509Certificate cert : chain) { in check() 62 checkCert(cert); in check() 65 + cert.getSubjectX500Principal(), e); in check() 70 public static final void checkCert(X509Certificate cert) throws CertificateException { in checkCert() argument 71 checkKeyLength(cert); in checkCert() [all …]
|
D | TrustedCertificateIndex.java | 20 import java.security.cert.TrustAnchor; 21 import java.security.cert.X509Certificate; 55 public TrustAnchor index(X509Certificate cert) { in index() argument 56 TrustAnchor anchor = new TrustAnchor(cert, null); in index() 63 X509Certificate cert = anchor.getTrustedCert(); in index() local 64 if (cert != null) { in index() 65 subject = cert.getSubjectX500Principal(); in index() 77 if (cert != null) { in index() 79 if (cert.equals(entry.getTrustedCert())) { in index() 102 public TrustAnchor findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument [all …]
|
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | TrustedCertificateStore.java | 28 import java.security.cert.Certificate; 29 import java.security.cert.CertificateException; 30 import java.security.cert.CertificateFactory; 31 import java.security.cert.X509Certificate; 155 X509Certificate cert = readCertificate(file); in getCertificate() local 156 if (cert == null || (isSystem(alias) in getCertificate() 158 && isDeletedSystemCertificate(cert))) { in getCertificate() 162 return cert; in getCertificate() 207 private void writeCertificate(File file, X509Certificate cert) in writeCertificate() argument 216 os.write(cert.getEncoded()); in writeCertificate() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
D | X509V2AttributeCertificate.java | 13 import java.security.cert.CertificateException; 14 import java.security.cert.CertificateExpiredException; 15 import java.security.cert.CertificateNotYetValidException; 42 private AttributeCertificate cert; field in X509V2AttributeCertificate 78 AttributeCertificate cert) in X509V2AttributeCertificate() argument 81 this.cert = cert; in X509V2AttributeCertificate() 85 … this.notAfter = cert.getAcinfo().getAttrCertValidityPeriod().getNotAfterTime().getDate(); in X509V2AttributeCertificate() 86 … this.notBefore = cert.getAcinfo().getAttrCertValidityPeriod().getNotBeforeTime().getDate(); in X509V2AttributeCertificate() 96 return cert.getAcinfo().getVersion().intValueExact() + 1; in getVersion() 101 return cert.getAcinfo().getSerialNumber().getValue(); in getSerialNumber() [all …]
|
/external/python/cpython3/Lib/test/ |
D | make_ssl_certs.py | 150 cert = f.read() 153 return cert, key 203 cert, key = make_cert_key('localhost', ext='req_x509_extensions_simple') variable 205 f.write(cert) 214 f.write(cert) 217 f.write(cert) 221 cert, key = make_cert_key('fakehostname', ext='req_x509_extensions_simple') variable 224 f.write(cert) 226 cert, key = make_cert_key('localhost', True) variable 229 f.write(cert) [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/x509/ |
D | X509V2AttributeCertificate.java | 14 import java.security.cert.CertificateException; 15 import java.security.cert.CertificateExpiredException; 16 import java.security.cert.CertificateNotYetValidException; 44 private AttributeCertificate cert; field in X509V2AttributeCertificate 80 AttributeCertificate cert) in X509V2AttributeCertificate() argument 83 this.cert = cert; in X509V2AttributeCertificate() 87 … this.notAfter = cert.getAcinfo().getAttrCertValidityPeriod().getNotAfterTime().getDate(); in X509V2AttributeCertificate() 88 … this.notBefore = cert.getAcinfo().getAttrCertValidityPeriod().getNotBeforeTime().getDate(); in X509V2AttributeCertificate() 98 return cert.getAcinfo().getVersion().intValueExact() + 1; in getVersion() 103 return cert.getAcinfo().getSerialNumber().getValue(); in getSerialNumber() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/ |
D | X509V2AttributeCertificate.java | 14 import java.security.cert.CertificateException; 15 import java.security.cert.CertificateExpiredException; 16 import java.security.cert.CertificateNotYetValidException; 44 private AttributeCertificate cert; field in X509V2AttributeCertificate 80 AttributeCertificate cert) in X509V2AttributeCertificate() argument 83 this.cert = cert; in X509V2AttributeCertificate() 87 … this.notAfter = cert.getAcinfo().getAttrCertValidityPeriod().getNotAfterTime().getDate(); in X509V2AttributeCertificate() 88 … this.notBefore = cert.getAcinfo().getAttrCertValidityPeriod().getNotBeforeTime().getDate(); in X509V2AttributeCertificate() 98 return cert.getAcinfo().getVersion().intValueExact() + 1; in getVersion() 103 return cert.getAcinfo().getSerialNumber().getValue(); in getSerialNumber() [all …]
|
/external/tpm2-tss/script/ekca/ |
D | create_ca.sh | 44 -out root-ca.cert.pem \ 50 openssl x509 -outform der -in root-ca.cert.pem -out root-ca.cert.crt 52 openssl verify -verbose -CAfile root-ca.cert.pem \ 53 root-ca.cert.pem 55 openssl ca -gencrl -cert root-ca.cert.pem \ 56 -out root-ca.cert.crl.pem -passin file:pass.txt 57 openssl crl -in root-ca.cert.crl.pem -outform DER -out root-ca.cert.crl 100 -out certs/intermed-ca.cert.pem \ 106 openssl x509 -outform der -in certs/intermed-ca.cert.pem \ 107 -out certs/intermed-ca.cert.crt [all …]
|