File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -859,8 +859,11 @@ SSL_CTX* initCTX(void) {
859
859
OpenSSL_add_all_algorithms (); /* Load cryptos, et.al. */
860
860
SSL_load_error_strings (); /* Bring in and register error messages */
861
861
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
+
864
867
865
868
ctx = SSL_CTX_new (method ); /* Create new context */
866
869
if ( ctx == NULL ) {
@@ -909,6 +912,7 @@ int initSSL(void) {
909
912
/* workaround bug openssl */
910
913
ctx_options = SSL_OP_ALL ;
911
914
ctx_options |= SSL_OP_NO_SSLv2 ;
915
+ ctx_options |= SSL_OP_NO_SSLv3 ;
912
916
SSL_CTX_set_options (ctx , ctx_options );
913
917
914
918
/*extra*/
You can’t perform that action at this time.
0 commit comments