Searched refs:cert (Results 1 - 25 of 782) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/third_party/mozilla_security_manager/
H A DnsNSSCertificate.cpp47 std::string GetCertTitle(CERTCertificate* cert) { argument
49 if (cert->nickname) {
50 rv = cert->nickname;
52 char* cn = CERT_GetCommonName(&cert->subject);
56 } else if (cert->subjectName) {
57 rv = cert->subjectName;
58 } else if (cert->emailAddr) {
59 rv = cert->emailAddr;
67 std::string GetCertTokenName(CERTCertificate* cert) { argument
69 if (cert
[all...]
H A DnsNSSCertificate.h44 #include <cert.h>
51 std::string GetCertTitle(CERTCertificate* cert);
54 std::string GetCertTokenName(CERTCertificate* cert);
H A DnsUsageArrayHelper.h41 #include <cert.h>
49 void GetCertUsageStrings(CERTCertificate* cert, std::vector<std::string>* out);
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/jcajce/
H A DJcaX509CertificateHolder.java1 package org.bouncycastle.cert.jcajce;
3 import java.security.cert.CertificateEncodingException;
4 import java.security.cert.X509Certificate;
7 import org.bouncycastle.cert.X509CertificateHolder;
18 * @param cert certificate to be used a the source for the holder creation.
21 public JcaX509CertificateHolder(X509Certificate cert) argument
24 super(Certificate.getInstance(cert.getEncoded()));
/external/conscrypt/src/main/java/org/conscrypt/
H A DChainStrengthAnalyzer.java19 import java.security.cert.CertificateException;
20 import java.security.cert.X509Certificate;
29 for (X509Certificate cert : chain) {
30 checkCert(cert);
34 private static final void checkCert(X509Certificate cert) throws CertificateException { argument
35 checkModulusLength(cert);
36 checkNotMD5(cert);
39 private static final void checkModulusLength(X509Certificate cert) throws CertificateException { argument
40 Object pubkey = cert.getPublicKey();
49 private static final void checkNotMD5(X509Certificate cert) throw argument
[all...]
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/
H A DMyCRL.java22 package org.apache.harmony.security.tests.support.cert;
24 import java.security.cert.CRL;
25 import java.security.cert.Certificate;
28 * Stub class for <code>java.security.cert.CRL</code> tests
50 * @param cert <code>Certificate</code> to be checked
52 * @see java.security.cert.CRL#isRevoked(java.security.cert.Certificate)
54 public boolean isRevoked(Certificate cert) { argument
H A DMyCertPathBuilderSpi.java22 package org.apache.harmony.security.tests.support.cert;
25 import java.security.cert.CertPathBuilderException;
26 import java.security.cert.CertPathBuilderResult;
27 import java.security.cert.CertPathBuilderSpi;
28 import java.security.cert.CertPathParameters;
H A DMyCertPathValidatorSpi.java22 package org.apache.harmony.security.tests.support.cert;
25 import java.security.cert.CertPath;
26 import java.security.cert.CertPathParameters;
27 import java.security.cert.CertPathValidatorException;
28 import java.security.cert.CertPathValidatorResult;
29 import java.security.cert.CertPathValidatorSpi;
H A DMyCertStoreParameters.java22 package org.apache.harmony.security.tests.support.cert;
24 import java.security.cert.CertStoreParameters;
H A DMyCertStoreSpi.java22 package org.apache.harmony.security.tests.support.cert;
25 import java.security.cert.CRLSelector;
26 import java.security.cert.CertSelector;
27 import java.security.cert.CertStoreException;
28 import java.security.cert.CertStoreParameters;
29 import java.security.cert.CertStoreSpi;
/external/chromium_org/chrome/browser/
H A Dcertificate_viewer.cc8 #include "net/cert/x509_certificate.h"
13 scoped_refptr<net::X509Certificate> cert; local
14 content::CertStore::GetInstance()->RetrieveCert(cert_id, &cert);
15 if (!cert.get()) {
20 ShowCertificateViewer(web_contents, parent, cert.get());
/external/chromium_org/net/cert/
H A Dcert_database_win.cc5 #include "net/cert/cert_database.h"
13 #include "net/cert/x509_certificate.h"
23 int CertDatabase::CheckUserCert(X509Certificate* cert) { argument
24 if (!cert)
26 if (cert->HasExpired())
31 if (!CryptFindCertificateKeyProvInfo(cert->os_cert_handle(), 0, NULL))
37 int CertDatabase::AddUserCert(X509Certificate* cert) { argument
48 cert->os_cert_handle(),
57 NotifyObserversOfCertAdded(cert);
H A Dcert_database_openssl.cc5 #include "net/cert/cert_database.h"
15 #include "net/cert/x509_certificate.h"
36 int CertDatabase::CheckUserCert(X509Certificate* cert) { argument
37 if (!cert)
39 if (cert->HasExpired())
44 X509_PUBKEY_get(X509_get_X509_PUBKEY(cert->os_cert_handle())));
52 int CertDatabase::AddUserCert(X509Certificate* cert) { argument
H A Dcert_database.cc5 #include "net/cert/cert_database.h"
27 void CertDatabase::NotifyObserversOfCertAdded(const X509Certificate* cert) { argument
28 observer_list_->Notify(&Observer::OnCertAdded, make_scoped_refptr(cert));
31 void CertDatabase::NotifyObserversOfCertRemoved(const X509Certificate* cert) { argument
32 observer_list_->Notify(&Observer::OnCertRemoved, make_scoped_refptr(cert));
36 const X509Certificate* cert) {
38 &Observer::OnCACertChanged, make_scoped_refptr(cert));
35 NotifyObserversOfCACertChanged( const X509Certificate* cert) argument
H A Dmock_cert_verifier.cc5 #include "net/cert/mock_cert_verifier.h"
10 #include "net/cert/cert_status_flags.h"
11 #include "net/cert/cert_verify_result.h"
12 #include "net/cert/x509_certificate.h"
17 Rule(X509Certificate* cert, argument
21 : cert(cert),
25 DCHECK(cert);
29 scoped_refptr<X509Certificate> cert; member in struct:net::MockCertVerifier::Rule
39 int MockCertVerifier::Verify(X509Certificate* cert, argument
68 AddResultForCert(X509Certificate* cert, const CertVerifyResult& verify_result, int rv) argument
74 AddResultForCertAndHost( X509Certificate* cert, const std::string& host_pattern, const CertVerifyResult& verify_result, int rv) argument
[all...]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DKSTrustedCertificateEntryTest.java25 import java.security.cert.Certificate;
27 import org.apache.harmony.security.tests.support.cert.MyCertificate;
43 Certificate cert = null;
45 new KeyStore.TrustedCertificateEntry(cert);
56 Certificate cert = new MyCertificate("TEST", new byte[10]);
58 new KeyStore.TrustedCertificateEntry(cert);
59 assertEquals("Incorrect certificate", cert, ksTCE.getTrustedCertificate());
67 Certificate cert = new MyCertificate("TEST", new byte[10]);
69 new KeyStore.TrustedCertificateEntry(cert);
/external/chromium_org/net/third_party/nss/ssl/
H A Dauthcert.c13 #include "cert.h"
32 CERTCertificate * cert = NULL; local
41 cert = CERT_FindUserCertByUsage(CERT_GetDefaultCertDB(),
44 if ( cert ) {
45 privkey = PK11_FindKeyByAnyCert(cert, proto_win);
49 CERT_DestroyCertificate(cert);
52 } else { /* no name given, automatically find the right cert. */
60 cert = CERT_FindUserCertByUsage(CERT_GetDefaultCertDB(),
63 if ( !cert )
66 if (CERT_CheckCertValidTimes(cert, PR_No
[all...]
/external/chromium_org/content/browser/
H A Dcert_store_impl.cc23 int CertStoreImpl::StoreCert(net::X509Certificate* cert, int process_id) { argument
24 return store_.Store(cert, process_id);
28 scoped_refptr<net::X509Certificate>* cert) {
29 return store_.Retrieve(cert_id, cert);
27 RetrieveCert(int cert_id, scoped_refptr<net::X509Certificate>* cert) argument
/external/ipsec-tools/src/racoon/
H A Ddnssec.c62 cert_t *cert = NULL; local
118 /* create cert holder */
119 cert = oakley_newcert();
120 if (cert == NULL) {
122 "failed to get cert buffer.\n");
125 cert->pl = vmalloc(res->ci_certlen + 1);
126 if (cert->pl == NULL) {
128 "failed to get cert buffer.\n");
131 memcpy(cert->pl->v + 1, res->ci_cert, res->ci_certlen);
132 cert
[all...]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
H A DX509CertificateTest.java22 package org.apache.harmony.security.tests.javax.security.cert;
26 import java.security.cert.CertificateFactory;
31 import javax.security.cert.CertificateEncodingException;
32 import javax.security.cert.CertificateException;
33 import javax.security.cert.CertificateExpiredException;
34 import javax.security.cert.CertificateNotYetValidException;
35 import javax.security.cert.X509Certificate;
71 private java.security.cert.X509Certificate cert; field in class:X509CertificateTest
72 private javax.security.cert
[all...]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
H A DCertPathBuilderSpiTest.java22 package org.apache.harmony.security.tests.java.security.cert;
25 import java.security.cert.CertPathBuilderException;
26 import java.security.cert.CertPathBuilderResult;
27 import java.security.cert.CertPathBuilderSpi;
28 import java.security.cert.CertPathParameters;
30 import org.apache.harmony.security.tests.support.cert.MyCertPathBuilderSpi;
H A DCertStoreSpiTest.java22 package org.apache.harmony.security.tests.java.security.cert;
26 import java.security.cert.CRL;
27 import java.security.cert.CRLSelector;
28 import java.security.cert.CertSelector;
29 import java.security.cert.CertStoreException;
30 import java.security.cert.CertStoreSpi;
31 import java.security.cert.Certificate;
33 import org.apache.harmony.security.tests.support.cert.MyCertStoreSpi;
34 import org.apache.harmony.security.tests.support.cert.MyCertStoreParameters;
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/serialization/
H A DCertificateTest.java22 package org.apache.harmony.security.tests.java.security.cert.serialization;
26 import java.security.cert.Certificate;
27 import java.security.cert.CertificateFactory;
31 import org.apache.harmony.security.tests.support.cert.MyCertificate;
32 import org.apache.harmony.security.tests.support.cert.TestUtils;
50 Certificate cert = cf.generateCertificate(new ByteArrayInputStream(
53 SerializationTest.verifySelf(cert);
63 Certificate cert = cf.generateCertificate(new ByteArrayInputStream(
66 SerializationTest.verifyGolden(this, cert);
79 // try to serialize/deserialize cert
[all...]
/external/conscrypt/src/platform/java/org/conscrypt/
H A DTrustedCertificateIndex.java20 import java.security.cert.TrustAnchor;
21 import java.security.cert.X509Certificate;
51 public TrustAnchor index(X509Certificate cert) { argument
52 TrustAnchor anchor = new TrustAnchor(cert, null);
59 X509Certificate cert = anchor.getTrustedCert();
60 if (cert != null) {
61 subject = cert.getSubjectX500Principal();
89 public TrustAnchor findByIssuerAndSignature(X509Certificate cert) { argument
90 X500Principal issuer = cert.getIssuerX500Principal();
106 cert
115 findBySubjectAndPublicKey(X509Certificate cert) argument
126 findBySubjectAndPublicKey(X509Certificate cert, Collection<TrustAnchor> anchors) argument
[all...]
/external/chromium_org/android_webview/browser/
H A Daw_ssl_host_state_delegate.cc14 net::SHA256HashValue getChainFingerprint256(const net::X509Certificate& cert) { argument
17 cert.os_cert_handle(), cert.GetIntermediateCertificates());
26 // For an allowance, we consider a given |cert| to be a match to a saved
27 // allowed cert if the |error| is an exact match to or subset of the errors
29 bool CertPolicy::Check(const net::X509Certificate& cert, argument
31 net::SHA256HashValue fingerprint = getChainFingerprint256(cert);
42 void CertPolicy::Allow(const net::X509Certificate& cert, argument
44 // If this same cert had already been saved with a different error status,
46 net::SHA256HashValue fingerprint = getChainFingerprint256(cert);
69 AllowCert(const std::string& host, const net::X509Certificate& cert, net::CertStatus error) argument
79 QueryPolicy( const std::string& host, const net::X509Certificate& cert, net::CertStatus error, bool* expired_previous_decision) argument
[all...]

Completed in 497 milliseconds

1234567891011>>