From f06217f62651effc1fb38a98c3ff89a667570c33 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Sat, 15 Apr 2023 15:10:44 +0200 Subject: [PATCH] [releng] OSGi: Ensure the BC security provider can be found BouncyCastleSecurityProviderRegistrar references the BC security provider only reflectively. It lives in a package that is not referenced explicitly anywhere. To be able to find org.bouncycastle.jce.provider.BouncyCastleProvider, the package must be on the bundle classpath in OSGi. It wasn't, since there was no "normal" reference to it. Add an optional dependency explicitly in the generated MANIFEST.MF of sshd-osgi. --- pom.xml | 2 ++ sshd-osgi/pom.xml | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/pom.xml b/pom.xml index 2b4a23ff2..19b8f5495 100644 --- a/pom.xml +++ b/pom.xml @@ -134,6 +134,7 @@ 2 true + # A comment indicates 'none' @@ -1476,6 +1477,7 @@ >", org.slf4j*;version="$", + ${bnd.extraImports} * ]]> *;-noimport:=true diff --git a/sshd-osgi/pom.xml b/sshd-osgi/pom.xml index 7cb664109..0e3142656 100644 --- a/sshd-osgi/pom.xml +++ b/sshd-osgi/pom.xml @@ -34,6 +34,19 @@ ${project.basedir}/.. + + org.bouncycastle.jce.provider;version="$$<range;[==,+);${bouncycastle.version}>";resolution:=optional,