diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 3d54b844fe0..3d63612168b 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");