diff options
author | Werner Dittmann <wernerd@java.net> | 2013-04-13 07:59:11 +0000 |
---|---|---|
committer | Werner Dittmann <wernerd@java.net> | 2013-04-13 07:59:11 +0000 |
commit | 64a459f3522168b704258d1907d55f6bd40ad20e (patch) | |
tree | 6cae4580144055f12e48926f8f757c1e90760e62 /src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java | |
parent | 1196b574314a8c726f19e5ca4ab8e65a2cbe7068 (diff) | |
download | jitsi-64a459f3522168b704258d1907d55f6bd40ad20e.zip jitsi-64a459f3522168b704258d1907d55f6bd40ad20e.tar.gz jitsi-64a459f3522168b704258d1907d55f6bd40ad20e.tar.bz2 |
Merge branch 'ingo'
Conflicts:
trunk/lib/installer-exclude/libjitsi.jar
Diffstat (limited to 'src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java b/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java index 1c204c9..fc059fe 100644 --- a/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java +++ b/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java @@ -29,6 +29,7 @@ import net.java.sip.communicator.util.Logger; import org.bouncycastle.asn1.*;
import org.bouncycastle.asn1.x509.*;
import org.bouncycastle.asn1.x509.X509Extension;
+import org.bouncycastle.x509.extension.*; import org.jitsi.service.configuration.*;
import org.jitsi.service.resources.*;
import org.jitsi.util.*;
@@ -826,25 +827,9 @@ public class CertificateServiceImpl if (aiaBytes == null)
break;
- DEROctetString octs =
- (DEROctetString) ASN1Object.fromByteArray(aiaBytes);
- ASN1InputStream as = new ASN1InputStream(octs.getOctets());
- AuthorityInformationAccess aia;
-
- try
- {
- aia
- = AuthorityInformationAccess.getInstance(
- as.readObject());
- }
- finally
- {
- /*
- * Practically, it is likely unnecessary. However, it
- * silences a compile-time warning.
- */
- as.close();
- }
+ AuthorityInformationAccess aia + = AuthorityInformationAccess.getInstance( + X509ExtensionUtil.fromExtensionValue(aiaBytes)); // the AIA may contain different URLs and types, try all
// of them
|