Skip to content

Commit

Permalink
Replace usage of the obscure PEM_read_bio_X509_AUX with the more stan…
Browse files Browse the repository at this point in the history
…dard 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
  • Loading branch information
alex authored and miss-islington committed Aug 15, 2019
1 parent 3e4498d commit 40dad95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 40dad95

Please sign in to comment.