summaryrefslogtreecommitdiff
path: root/lang/python39/patches/patch-Modules___ssl.c
blob: d09de379d0f8857a3cd6299b458ed767505d5e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-Modules___ssl.c,v 1.1 2021/05/20 06:56:43 triaxx Exp $

Fix build failure on FreeBSD 12.
From https://github.com/python/cpython/commit/3309113

--- Modules/_ssl.c.orig	2021-05-14 15:52:07.251636000 +0200
+++ Modules/_ssl.c	2021-05-14 15:52:37.012941000 +0200
@@ -151,6 +151,9 @@
  * unless OpenSSL is compiled without the methods. It's the easiest way to
  * make 1.0.2, 1.1.0, 1.1.1, and 3.0.0 happy without deprecation warnings.
  */
+#ifndef OPENSSL_NO_SSL3_METHOD
+extern const SSL_METHOD *SSLv3_method(void);
+#endif
 #ifndef OPENSSL_NO_TLS1_METHOD
 extern const SSL_METHOD *TLSv1_method(void);
 #endif