openbsd-ports/devel/ptlib/patches/patch-src_ptclib_pssl_cxx

27 lines
762 B
Plaintext
Raw Normal View History

2018-05-30 00:23:12 +00:00
$OpenBSD: patch-src_ptclib_pssl_cxx,v 1.4 2018/05/30 00:23:12 tb Exp $
Index: src/ptclib/pssl.cxx
--- src/ptclib/pssl.cxx.orig
+++ src/ptclib/pssl.cxx
@@ -145,7 +145,7 @@ PFACTORY_CREATE_SINGLETON(PProcessStartupFactory, PSSL
class PSSL_BIO
{
public:
- PSSL_BIO(BIO_METHOD *method = BIO_s_file_internal())
+ PSSL_BIO(const BIO_METHOD *method = BIO_s_file_internal())
{ bio = BIO_new(method); }
~PSSL_BIO()
2015-07-18 21:54:04 +00:00
@@ -1189,9 +1189,12 @@ void PSSLContext::Construct(Method method, const void
SSL_METHOD * meth;
switch (method) {
+#ifndef OPENSSL_NO_SSL3
+/* fall through to SSLv23_method if unsupported */
case SSLv3:
meth = SSLv3_method();
break;
+#endif
case TLSv1:
meth = TLSv1_method();
break;