mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Issue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
method->d2i(): OpenSSL API changed in OpenSSL 0.9.6m. Patch written by Daniel Black.
This commit is contained in:
parent
c0a9d4152d
commit
3f75cc5cb5
1 changed files with 5 additions and 0 deletions
|
|
@ -667,7 +667,12 @@ _get_peer_alt_names (X509 *certificate) {
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
char *vptr;
|
char *vptr;
|
||||||
int len;
|
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;
|
unsigned char *p;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (certificate == NULL)
|
if (certificate == NULL)
|
||||||
return peer_alt_names;
|
return peer_alt_names;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue