summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-08-15 12:31:28 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-15 12:31:28 (GMT)
commit40dad9545aad4ede89abbab1c1beef5303d9573e (patch)
tree31788c9fb540b0486ac3739de24ffa3801e7c77b /Modules
parent3e4498d35c34aeaf4a9c3d57509b0d3277048ac6 (diff)
downloadcpython-40dad9545aad4ede89abbab1c1beef5303d9573e.zip
cpython-40dad9545aad4ede89abbab1c1beef5303d9573e.tar.gz
cpython-40dad9545aad4ede89abbab1c1beef5303d9573e.tar.bz2
Replace usage of the obscure PEM_read_bio_X509_AUX with the more standard PEM_read_bio_X509 (GH-15303)
X509_AUX is an odd, note widely used, OpenSSL extension to the X509 file format. This function doesn't actually use any of the extra metadata that it parses, so just use the standard API. Automerge-Triggered-By: @tiran
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 3d54b84..3d63612 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1822,7 +1822,7 @@ _ssl__test_decode_cert_impl(PyObject *module, PyObject *path)
goto fail0;
}
- x = PEM_read_bio_X509_AUX(cert,NULL, NULL, NULL);
+ x = PEM_read_bio_X509(cert, NULL, NULL, NULL);
if (x == NULL) {
PyErr_SetString(PySSLErrorObject,
"Error decoding PEM-encoded file");