ASF Bugzilla – Attachment 37870 Details for
Bug 65181
Tomcat Native library with OpenSSL Engine private key loading
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
keep structural reference to the SSL Engine pointed to by tcn_ssl_engine
tcn-1.2.28.diff (text/plain), 1.10 KB, created by
Edin Hodzic
on 2021-05-20 20:19:03 UTC
(
hide
)
Description:
keep structural reference to the SSL Engine pointed to by tcn_ssl_engine
Filename:
MIME Type:
Creator:
Edin Hodzic
Created:
2021-05-20 20:19:03 UTC
Size:
1.10 KB
patch
obsolete
>diff -aur tomcat-native-1.2.28-src/native/src/ssl.c tomcat-native-1.2.28-src.changed/native/src/ssl.c >--- tomcat-native-1.2.28-src/native/src/ssl.c 2021-04-01 06:28:54.000000000 -0700 >+++ tomcat-native-1.2.28-src.changed/native/src/ssl.c 2021-05-20 12:58:27.154317691 -0700 >@@ -367,6 +367,14 @@ > #endif > free_dh_params(); > >+#ifndef OPENSSL_NO_ENGINE >+ if (tcn_ssl_engine != NULL) { >+ /* Release the SSL Engine structural reference */ >+ ENGINE_free(tcn_ssl_engine); >+ tcn_ssl_engine = NULL; >+ } >+#endif >+ > #if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) > /* Openssl v1.1+ handles all termination automatically. Do > * nothing in this case. >@@ -817,7 +825,7 @@ > } > /* Free our "structural" reference. */ > if (ee) >- ENGINE_free(ee); >+ tcn_ssl_engine = ee; > } > if (err != APR_SUCCESS) { > TCN_FREE_CSTRING(engine); >@@ -825,7 +833,6 @@ > tcn_ThrowAPRException(e, err); > return (jint)err; > } >- tcn_ssl_engine = ee; > } > #endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 65181
:
37870
|
37871