OSDN Git Service

Each time we start an SSL session, we have to find the trust anchor. This used to...
authorBob Lee <crazybob@google.com>
Wed, 26 Aug 2009 05:32:37 +0000 (22:32 -0700)
committerBob Lee <crazybob@google.com>
Wed, 26 Aug 2009 21:24:13 +0000 (14:24 -0700)
commitdfd0afbcb08b871e224a28ecb4ed427a7693545c
tree221ac1a6fea0c4da4c4c7a82fcb21f37756d762a
parent2b2e488b25922b0b34094305cac084073ffbd03c
Each time we start an SSL session, we have to find the trust anchor. This used to be an O(N) operation. If the trust anchor we're looking for was close to N, finding it could take a couple seconds. This change makes the operation O(1).
libcore/auth/src/main/java/javax/security/auth/x500/X500Principal.java
libcore/security/src/main/java/org/apache/harmony/security/provider/cert/X509CertImpl.java
libcore/security/src/main/java/org/bouncycastle/jce/provider/CertPathValidatorUtilities.java
libcore/security/src/main/java/org/bouncycastle/jce/provider/IndexedPKIXParameters.java [new file with mode: 0644]
libcore/security/src/main/java/org/bouncycastle/jce/provider/PKIXCertPathValidatorSpi.java
libcore/security/src/main/java/org/bouncycastle/jce/provider/X509CertificateObject.java
libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLParameters.java
libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/TrustManagerImpl.java