File: fix-openssl.patch

package info (click to toggle)
qpopper 4.0.5-4sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,732 kB
  • ctags: 1,940
  • sloc: ansic: 21,790; makefile: 459; sh: 272; perl: 52
file content (26 lines) | stat: -rw-r--r-- 894 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
*** pop_tls_openssl.c   2002/08/07 12:06:31
--- pop_tls_openssl.c   2002/08/07 12:43:29
***************
*** 339,346 ****
--- 339,359 ----
           log_openssl_err ( pPOP, HERE, "Unable to allocate SSL_CTX" );
           goto Done;
       }

+     /*
+      * This set's the option SSL_OP_ALL to the ssl conection to allow "broken" cliets
+      * to connect to the sserver.
+      */
+
+     DEBUG_LOG0 (pPOP, "...set SSL_CTX_set_options to SSL_OP_ALL to allow broken ssl implementations.");
+
+     SSL_CTX_set_options(pTLS->m_OpenSSLctx, SSL_OP_ALL);
+     if(!(SSL_CTX_get_options(pTLS->m_OpenSSLctx) & SSL_OP_ALL))
+     {
+       log_openssl_err ( pPOP, HERE, "Unable to set SSL_OP_ALL option. Some clients may not be able to connect." );
+     }
+
       /*
        * Establish the certificate for our server cert.
        */
       DEBUG_LOG1 ( pPOP, "...setting certificate file %s",