Replace usage of the obscure PEM_read_bio_X509_AUX with the more standard PEM_read_bi...
authorAlex Gaynor <alex.gaynor@gmail.com>
Thu, 15 Aug 2019 12:31:28 +0000 (08:31 -0400)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Aug 2019 12:31:28 +0000 (05:31 -0700)
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
Modules/_ssl.c

index 3d54b844fe0732cfb57c71c2131b198f728f3300..3d63612168b2363fa5a8ee78e0f2ebc3e6147200 100644 (file)
@@ -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");