Skip to content

Commit

Permalink
openssl3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dormidon committed Jan 12, 2023
1 parent 8a44214 commit 6d68aab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/one/nio/net/native/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ static jbyteArray X509_cert_to_jbyteArray(JNIEnv* env, X509* cert) {

JNIEXPORT void JNICALL
Java_one_nio_net_NativeSslContext_init(JNIEnv* env, jclass cls) {
if (dlopen("libssl.so", RTLD_LAZY | RTLD_GLOBAL) == NULL &&
if (dlopen("libssl.so.3", RTLD_LAZY | RTLD_GLOBAL) == NULL &&
dlopen("libssl.so", RTLD_LAZY | RTLD_GLOBAL) == NULL &&
dlopen("libssl.so.1.0.0", RTLD_LAZY | RTLD_GLOBAL) == NULL &&
dlopen("libssl.so.10", RTLD_LAZY | RTLD_GLOBAL) == NULL) {
throw_by_name(env, "java/lang/UnsupportedOperationException", "Failed to load libssl.so");
Expand Down

0 comments on commit 6d68aab

Please sign in to comment.