Skip to content

Commit 58c0e23

Browse files
alexlisroach
authored andcommitted
Replace usage of the obscure PEM_read_bio_X509_AUX with the more standard PEM_read_bio_X509 (pythonGH-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
1 parent 0540e82 commit 58c0e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ _ssl__test_decode_cert_impl(PyObject *module, PyObject *path)
18221822
goto fail0;
18231823
}
18241824

1825-
x = PEM_read_bio_X509_AUX(cert,NULL, NULL, NULL);
1825+
x = PEM_read_bio_X509(cert, NULL, NULL, NULL);
18261826
if (x == NULL) {
18271827
PyErr_SetString(PySSLErrorObject,
18281828
"Error decoding PEM-encoded file");

0 commit comments

Comments
 (0)