diff --git a/Modules/_ssl.c b/Modules/_ssl.c index da30cbb758e..089aa3b24a0 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");