This commit is contained in:
Andrea Cavalli 2024-10-23 20:29:42 +02:00
parent d34f225b55
commit dd11e24351
2 changed files with 27 additions and 9 deletions

View File

@ -11,7 +11,7 @@
<properties> <properties>
<revision>1.0.0-SNAPSHOT</revision> <revision>1.0.0-SNAPSHOT</revision>
<maven.compiler.release>23</maven.compiler.release> <maven.compiler.release>23</maven.compiler.release>
<native.maven.plugin.version>0.9.28</native.maven.plugin.version> <native.maven.plugin.version>0.10.3</native.maven.plugin.version>
<gestalt.version>0.32.2</gestalt.version> <gestalt.version>0.32.2</gestalt.version>
<rocksdb.version>9.6.1</rocksdb.version> <rocksdb.version>9.6.1</rocksdb.version>
<slf4j.version>2.0.12</slf4j.version> <slf4j.version>2.0.12</slf4j.version>
@ -419,6 +419,11 @@
<version>${rainbowgum.version}</version> <version>${rainbowgum.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>nativeimage</artifactId>
<version>23.1.0</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

View File

@ -181,6 +181,7 @@ final class Target_io_netty_handler_ssl_JdkSslServerContext {
ClientAuth clientAuth, ClientAuth clientAuth,
String[] protocols, String[] protocols,
boolean startTls, boolean startTls,
SecureRandom secureRandom,
String keyStore) throws SSLException { String keyStore) throws SSLException {
} }
} }
@ -189,11 +190,21 @@ final class Target_io_netty_handler_ssl_JdkSslServerContext {
final class Target_io_netty_handler_ssl_JdkSslClientContext { final class Target_io_netty_handler_ssl_JdkSslClientContext {
@Alias @Alias
Target_io_netty_handler_ssl_JdkSslClientContext(Provider sslContextProvider, X509Certificate[] trustCertCollection, Target_io_netty_handler_ssl_JdkSslClientContext(Provider sslContextProvider,
TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, X509Certificate[] trustCertCollection,
String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, TrustManagerFactory trustManagerFactory,
CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, String[] protocols, X509Certificate[] keyCertChain,
long sessionCacheSize, long sessionTimeout, String keyStoreType) throws SSLException { PrivateKey key,
String keyPassword,
KeyManagerFactory keyManagerFactory,
Iterable<String> ciphers,
CipherSuiteFilter cipherFilter,
ApplicationProtocolConfig apn,
String[] protocols,
long sessionCacheSize,
long sessionTimeout,
SecureRandom secureRandom,
String keyStoreType) throws SSLException {
} }
} }
@ -250,6 +261,7 @@ final class Target_io_netty_handler_ssl_SslContext {
String[] protocols, String[] protocols,
boolean startTls, boolean startTls,
boolean enableOcsp, boolean enableOcsp,
SecureRandom secureRandom,
String keyStoreType, String keyStoreType,
Map.Entry<SslContextOption<?>, Object>... ctxOptions) throws SSLException { Map.Entry<SslContextOption<?>, Object>... ctxOptions) throws SSLException {
if (enableOcsp) { if (enableOcsp) {
@ -258,7 +270,7 @@ final class Target_io_netty_handler_ssl_SslContext {
return (SslContext) (Object) new Target_io_netty_handler_ssl_JdkSslServerContext(sslContextProvider, return (SslContext) (Object) new Target_io_netty_handler_ssl_JdkSslServerContext(sslContextProvider,
trustCertCollection, trustManagerFactory, keyCertChain, key, keyPassword, trustCertCollection, trustManagerFactory, keyCertChain, key, keyPassword,
keyManagerFactory, ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, keyManagerFactory, ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols,
startTls, keyStoreType); startTls, secureRandom, keyStoreType);
} }
@Substitute @Substitute
@ -267,14 +279,15 @@ final class Target_io_netty_handler_ssl_SslContext {
TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword,
KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter,
ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout, ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout,
boolean enableOcsp, String keyStoreType, Map.Entry<SslContextOption<?>, Object>... options) throws SSLException { boolean enableOcsp, SecureRandom secureRandom, String keyStoreType,
Map.Entry<SslContextOption<?>, Object>... options) throws SSLException {
if (enableOcsp) { if (enableOcsp) {
throw new IllegalArgumentException("OCSP is not supported with this SslProvider: " + provider); throw new IllegalArgumentException("OCSP is not supported with this SslProvider: " + provider);
} }
return (SslContext) (Object) new Target_io_netty_handler_ssl_JdkSslClientContext(sslContextProvider, return (SslContext) (Object) new Target_io_netty_handler_ssl_JdkSslClientContext(sslContextProvider,
trustCert, trustManagerFactory, keyCertChain, key, keyPassword, trustCert, trustManagerFactory, keyCertChain, key, keyPassword,
keyManagerFactory, ciphers, cipherFilter, apn, protocols, sessionCacheSize, keyManagerFactory, ciphers, cipherFilter, apn, protocols, sessionCacheSize,
sessionTimeout, keyStoreType); sessionTimeout, secureRandom, keyStoreType);
} }
} }