diff --git a/.classpath b/.classpath index 8403315f6..00a2369b4 100644 --- a/.classpath +++ b/.classpath @@ -79,7 +79,6 @@ - @@ -87,5 +86,7 @@ + + diff --git a/build.xml b/build.xml index 3e45bc665..c17c4f5cf 100644 --- a/build.xml +++ b/build.xml @@ -2292,6 +2292,11 @@ javax.swing.event, javax.swing.border"/> org.bouncycastle.crypto.modes, org.bouncycastle.crypto.params, org.bouncycastle.crypto.prng, + org.jitsi.bccontrib.digests, + org.jitsi.bccontrib.engines, + org.jitsi.bccontrib.macs, + org.jitsi.bccontrib.params, + org.jitsi.bccontrib.prng, org.bouncycastle.math.ec, org.bouncycastle.util.encoders, org.bouncycastle.util"/> @@ -2349,36 +2354,13 @@ javax.swing.event, javax.swing.border"/> prefix="net/java/sip/communicator/impl/metahistory" /> + - - - - - - - - - + + + diff --git a/lib/felix.client.run.properties b/lib/felix.client.run.properties index e7ad1c4c7..ed50bba1a 100644 --- a/lib/felix.client.run.properties +++ b/lib/felix.client.run.properties @@ -27,7 +27,10 @@ org.osgi.framework.system.packages.extra= \ sun.security.pkcs11 felix.auto.start.10= \ - reference:file:lib/bundle/org.apache.felix.bundlerepository-1.6.4.jar + reference:file:lib/bundle/org.apache.felix.bundlerepository-1.6.4.jar \ + reference:file:sc-bundles/bouncycastle.jar \ + reference:file:sc-bundles/bccontrib.jar + # file:lib/bundle/shell.jar \ # file:lib/bundle/servicebinder.jar \ # file:lib/bundle/tablelayout.jar @@ -84,7 +87,6 @@ felix.auto.start.45= \ felix.auto.start.49= \ reference:file:sc-bundles/provisioning.jar \ - reference:file:sc-bundles/bouncycastle.jar \ reference:file:sc-bundles/zrtp4j.jar \ reference:file:sc-bundles/sdes4j.jar \ reference:file:sc-bundles/protocol.jar \ diff --git a/lib/installer-exclude/bccontrib-1.0-SNAPSHOT.jar b/lib/installer-exclude/bccontrib-1.0-SNAPSHOT.jar new file mode 100644 index 000000000..719078ea2 Binary files /dev/null and b/lib/installer-exclude/bccontrib-1.0-SNAPSHOT.jar differ diff --git a/lib/installer-exclude/bcprov-jdk15on-148.jar b/lib/installer-exclude/bcprov-jdk15on-148.jar new file mode 100644 index 000000000..3fcb136da Binary files /dev/null and b/lib/installer-exclude/bcprov-jdk15on-148.jar differ diff --git a/lib/installer-exclude/lcrypto-jdk16-143.jar b/lib/installer-exclude/lcrypto-jdk16-143.jar deleted file mode 100755 index 825d01b76..000000000 Binary files a/lib/installer-exclude/lcrypto-jdk16-143.jar and /dev/null differ diff --git a/lib/installer-exclude/zrtp4j-light.jar b/lib/installer-exclude/zrtp4j-light.jar index d51ce639c..79ff8c022 100755 Binary files a/lib/installer-exclude/zrtp4j-light.jar and b/lib/installer-exclude/zrtp4j-light.jar differ diff --git a/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java b/src/net/java/sip/communicator/impl/certificate/CertificateServiceImpl.java index 1c204c9c9..fc059fe00 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 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 @@ private X509Certificate[] tryBuildChain(X509Certificate[] chain) 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 diff --git a/src/net/java/sip/communicator/impl/certificate/certificate.manifest.mf b/src/net/java/sip/communicator/impl/certificate/certificate.manifest.mf index 32cd3cb94..2c5516828 100644 --- a/src/net/java/sip/communicator/impl/certificate/certificate.manifest.mf +++ b/src/net/java/sip/communicator/impl/certificate/certificate.manifest.mf @@ -22,4 +22,5 @@ Import-Package: org.osgi.framework, org.apache.http.conn.ssl, org.bouncycastle.asn1, org.bouncycastle.asn1.x509, + org.bouncycastle.x509.extension, sun.security.pkcs11 diff --git a/src/net/java/sip/communicator/impl/libjitsi/libjitsi.manifest.mf b/src/net/java/sip/communicator/impl/libjitsi/libjitsi.manifest.mf index 1759b80c7..da60db370 100644 --- a/src/net/java/sip/communicator/impl/libjitsi/libjitsi.manifest.mf +++ b/src/net/java/sip/communicator/impl/libjitsi/libjitsi.manifest.mf @@ -54,6 +54,11 @@ Import-Package: apple.awt, org.bouncycastle.crypto.macs, org.bouncycastle.crypto.params, org.bouncycastle.crypto.prng, + org.jitsi.bccontrib.digests, + org.jitsi.bccontrib.engines, + org.jitsi.bccontrib.macs, + org.jitsi.bccontrib.params, + org.jitsi.bccontrib.prng, org.ice4j.socket, org.json.simple, org.osgi.framework,