Skip to content

Commit 206340e

Browse files
committed
Update core_hep.c
1 parent 15d0749 commit 206340e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

captagent/mod/core_hep/core_hep.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,11 @@ SSL_CTX* initCTX(void) {
859859
OpenSSL_add_all_algorithms(); /* Load cryptos, et.al. */
860860
SSL_load_error_strings(); /* Bring in and register error messages */
861861

862-
/* we use SSLv3 */
863-
method = SSLv3_client_method(); /* Create new client-method instance */
862+
/* we use SSLv3 OBSOLETE */
863+
// method = SSLv3_client_method(); /* Create new client-method instance */
864+
/* tls v1 */
865+
method = TLSv1_method();
866+
864867

865868
ctx = SSL_CTX_new(method); /* Create new context */
866869
if ( ctx == NULL ) {
@@ -909,6 +912,7 @@ int initSSL(void) {
909912
/* workaround bug openssl */
910913
ctx_options = SSL_OP_ALL;
911914
ctx_options |= SSL_OP_NO_SSLv2;
915+
ctx_options |= SSL_OP_NO_SSLv3;
912916
SSL_CTX_set_options(ctx, ctx_options);
913917

914918
/*extra*/

0 commit comments

Comments
 (0)