summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_ssl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index dfe2fb0..a6c3eb8 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -658,7 +658,12 @@ _get_peer_alt_names (X509 *certificate) {
char buf[2048];
char *vptr;
int len;
+ /* Issue #2973: ASN1_item_d2i() API changed in OpenSSL 0.9.6m */
+#if OPENSSL_VERSION_NUMBER >= 0x009060dfL
+ const unsigned char *p;
+#else
unsigned char *p;
+#endif
if (certificate == NULL)
return peer_alt_names;