Skip to content

Commit 36cd295

Browse files
gpsheadtiran
andauthored
[3.15] gh-160040: Distrust compromised eMudhra intermediate CA keys (CVE-2026-115557) (GH-160042) (#160568)
The ssl module now rejects TLS certificate chains that contain any of a set of compromised eMudhra intermediate CA keys. This is an extraordinary measure and a last line of defense: removing trust is primarily the job of the platform root store, and the built-in denylist only blocks connections while that update has not yet reached the OS, a container image, or a bundled trust store in various Python packages. Entries are added to the denylist only under a very high threshold. The denylist matches on the public key (the SHA-256 digest of the RFC-5280 SubjectPublicKeyInfo), so it also covers the cross-signed certificates that reuse one of the distrusted keys. --------- (cherry picked from commit 7dd8b47) Co-authored-by: Christian Heimes <christian@python.org>
1 parent e561b19 commit 36cd295

9 files changed

Lines changed: 306 additions & 4 deletions

File tree

‎Lib/test/certdata/distrusted.zip‎

4.94 KB
Binary file not shown.

‎Lib/test/certdata/make_ssl_certs.py‎

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pprint
77
import shutil
88
import tempfile
9+
import zipfile
910
from subprocess import *
1011

1112
startdate = "20180829142316Z"
@@ -118,7 +119,6 @@
118119

119120
here = os.path.abspath(os.path.dirname(__file__))
120121

121-
122122
def make_cert_key(cmdlineargs, hostname, sign=False, extra_san='',
123123
ext='req_x509_extensions_full', key='rsa:3072'):
124124
print("creating cert for " + hostname)
@@ -230,6 +230,108 @@ def write_cert_reference(path):
230230
print(refdata, file=f)
231231

232232

233+
# The distrusted test material (compromised eMudhra CA certs and a leaf signed
234+
# by them) lives in a password-protected zip so it doesn't trip security
235+
# scanners that cannot tell internal test fixtures from production secrets and
236+
# flag any certificate or private key they find. It is encrypted, not merely
237+
# zipped, because such scanners read inside plain archives. The password is
238+
# fixed, public, and not a secret.
239+
DISTRUSTED_ZIP = 'distrusted.zip'
240+
DISTRUSTED_ZIP_DIR = 'distrusted'
241+
DISTRUSTED_ZIP_CHOSEN_KNIGHT = 'Brave Sir Robin'
242+
243+
# ASN.1 template for the intermediate's compromised key: secp384r1 scalar 4.
244+
# openssl derives the public key when the SEC1 structure omits it.
245+
distrusted_key_template = """
246+
asn1 = SEQUENCE:eckey
247+
[eckey]
248+
version = INTEGER:1
249+
priv = FORMAT:HEX,OCTETSTRING:{scalar}
250+
params = EXPLICIT:0,OID:secp384r1
251+
"""
252+
253+
254+
def make_distrusted_spki_cert(cmdlineargs):
255+
# leaf signed by the distrusted intermediate, chains to the distrusted root
256+
print("creating distrusted-SPKI test cert")
257+
# The standard library can read but not write encrypted zip files, so we
258+
# need the Info-ZIP "zip" command to repackage the archive.
259+
if shutil.which('zip') is None:
260+
raise SystemExit(
261+
f"the 'zip' command is required to write the encrypted {DISTRUSTED_ZIP} "
262+
"(the zipfile module cannot create encrypted archives); "
263+
"please install Info-ZIP's zip utility"
264+
)
265+
266+
# the root and intermediate are real certs we cannot re-mint; carry them
267+
# over from the existing archive
268+
pw = DISTRUSTED_ZIP_CHOSEN_KNIGHT.encode()
269+
with zipfile.ZipFile(DISTRUSTED_ZIP) as z:
270+
root = z.read(DISTRUSTED_ZIP_DIR + '/distrusted_root.pem', pw)
271+
intermediate = z.read(DISTRUSTED_ZIP_DIR + '/distrusted_intermediate.pem', pw)
272+
273+
with tempfile.TemporaryDirectory() as workdir:
274+
stage = os.path.join(workdir, DISTRUSTED_ZIP_DIR)
275+
os.mkdir(stage)
276+
req_file = os.path.join(workdir, 'req.cnf')
277+
key_file = os.path.join(workdir, 'leaf.key')
278+
csr_file = os.path.join(workdir, 'leaf.csr')
279+
cert_file = os.path.join(workdir, 'leaf.pem')
280+
cakey_conf = os.path.join(workdir, 'cakey.cnf')
281+
cakey_der = os.path.join(workdir, 'cakey.der')
282+
cakey_file = os.path.join(workdir, 'cakey.pem')
283+
284+
inter_file = os.path.join(stage, 'distrusted_intermediate.pem')
285+
with open(os.path.join(stage, 'distrusted_root.pem'), 'wb') as f:
286+
f.write(root)
287+
with open(inter_file, 'wb') as f:
288+
f.write(intermediate)
289+
290+
# recreate the intermediate's key (secp384r1 scalar 4) on the fly
291+
with open(cakey_conf, 'w') as f:
292+
f.write(distrusted_key_template.format(scalar='00' * 47 + '04'))
293+
check_call(['openssl', 'asn1parse', '-genconf', cakey_conf,
294+
'-out', cakey_der, '-noout'])
295+
check_call(['openssl', 'pkey', '-in', cakey_der,
296+
'-inform', 'DER', '-out', cakey_file])
297+
298+
req = req_template.format(
299+
hostname='localhost',
300+
extra_san='',
301+
startdate=startdate,
302+
enddate=cmdlineargs.enddate,
303+
days=cmdlineargs.days
304+
)
305+
with open(req_file, 'w') as f:
306+
f.write(req)
307+
# ECC leaf to match the ECC intermediate
308+
check_call(['openssl', 'req', '-new', '-nodes', '-days', cmdlineargs.days,
309+
'-newkey', 'param:secp384r1.pem', '-keyout', key_file,
310+
'-config', req_file, '-out', csr_file])
311+
# sign with the distrusted intermediate, not the test CA
312+
check_call(['openssl', 'ca', '-config', req_file,
313+
'-extensions', 'req_x509_extensions_full',
314+
'-cert', inter_file, '-keyfile', cakey_file,
315+
'-out', cert_file, '-outdir', 'cadir',
316+
'-policy', 'policy_anything', '-batch', '-infiles', csr_file])
317+
with open(key_file) as f:
318+
key = f.read()
319+
with open(cert_file) as f:
320+
cert = f.read()
321+
# server sends leaf + intermediate, client trusts the root
322+
with open(os.path.join(stage, 'distrusted_keycert.pem'), 'w') as f:
323+
f.write(key)
324+
f.write(cert)
325+
f.write(intermediate.decode())
326+
327+
# repackage the encrypted archive (zipfile cannot write encryption)
328+
zippath = os.path.join(here, DISTRUSTED_ZIP)
329+
if os.path.exists(zippath):
330+
os.remove(zippath)
331+
check_call(['zip', '-q', '-X', '-P', DISTRUSTED_ZIP_CHOSEN_KNIGHT, '-r',
332+
zippath, DISTRUSTED_ZIP_DIR], cwd=workdir)
333+
334+
233335
if __name__ == '__main__':
234336
parser = argparse.ArgumentParser(description='Make the custom certificate and private key files used by test_ssl and friends.')
235337
parser.add_argument('--days', default=days_default)
@@ -320,6 +422,8 @@ def write_cert_reference(path):
320422
f.write(key)
321423
f.write(cert)
322424

425+
make_distrusted_spki_cert(cmdlineargs)
426+
323427
unmake_ca()
324428
print("Writing out reference data for Lib/test/test_ssl.py and Lib/test/test_asyncio/utils.py")
325429
write_cert_reference('keycert.pem')

‎Lib/test/test_ssl.py‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
import socket
1919
import select
2020
import struct
21+
import tempfile
2122
import time
23+
import zipfile
2224
import enum
2325
import gc
2426
import http.client
@@ -133,6 +135,19 @@ def data_file(*name):
133135
LEAF_MISSING_AKI_CERTFILE_HOSTNAME = "example.com"
134136
LEAF_MISSING_AKI_CA = data_file("leaf-missing-aki.ca.pem")
135137

138+
# gh-160040: a leaf signed by a compromised eMudhra intermediate whose public
139+
# key is on the _ssl distrusted list. The chain to distrusted_root.pem is
140+
# otherwise valid.
141+
# The PEMs live in a password-protected zip so the compromised eMudhra certs
142+
# don't trip security scanners that cannot tell internal test fixtures from
143+
# production secrets and flag any certificate or private key they find. It is
144+
# encrypted, not merely zipped, because such scanners read inside plain archives.
145+
# The password is fixed, public, and not a secret; it only keeps the archive
146+
# from storing the PEMs in the clear.
147+
DISTRUSTED_SPKI_ZIP = data_file("distrusted.zip")
148+
DISTRUSTED_SPKI_CHOSEN_KNIGHT = b"Brave Sir Robin" # not a secret, see comment
149+
DISTRUSTED_SPKI_HOSTNAME = "localhost"
150+
136151
# Same certificate as pycacert.pem, but without extra text in file
137152
SIGNING_CA = data_file("capath", "ceff1710.0")
138153
# cert with all kinds of subject alt names
@@ -2272,6 +2287,28 @@ def test_unwrap(self):
22722287
c_in.write(s_out.read())
22732288
client.unwrap()
22742289

2290+
def test_distrusted_spki(self):
2291+
# gh-160040: the server chain is otherwise valid, but the eMudhra
2292+
# intermediate's public key is on the _ssl distrusted list, so
2293+
# verification rejects it.
2294+
client_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
2295+
server_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
2296+
# the contexts load the PEMs now, so the files are only needed here
2297+
with tempfile.TemporaryDirectory() as tmpdir:
2298+
with zipfile.ZipFile(DISTRUSTED_SPKI_ZIP) as z:
2299+
z.extractall(tmpdir, pwd=DISTRUSTED_SPKI_CHOSEN_KNIGHT)
2300+
certdir = os.path.join(tmpdir, "distrusted")
2301+
client_context.load_verify_locations(
2302+
os.path.join(certdir, "distrusted_root.pem"))
2303+
server_context.load_cert_chain(
2304+
os.path.join(certdir, "distrusted_keycert.pem"))
2305+
2306+
with self.assertRaises(ssl.SSLCertVerificationError) as cm:
2307+
connected_bio_pair(client_context, server_context,
2308+
DISTRUSTED_SPKI_HOSTNAME)
2309+
# X509_V_ERR_CERT_REJECTED
2310+
self.assertEqual(cm.exception.verify_code, 28)
2311+
22752312
def test_sni_callback_context_released_and_callback_raises(self):
22762313
# Variant of the test below without a HelloRetryRequest: the callback
22772314
# switches the connection to another context, drops the last

‎Makefile.pre.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3535,7 +3535,7 @@ MODULE__HMAC_DEPS=$(srcdir)/Modules/hashlib.h $(LIBHACL_HMAC_HEADERS) $(LIBHACL_
35353535
MODULE__HMAC_LDEPS=$(LIBHACL_HMAC_LIB_@LIBHACL_LDEPS_LIBTYPE@)
35363536

35373537
MODULE__SOCKET_DEPS=$(srcdir)/Modules/socketmodule.h $(srcdir)/Modules/addrinfo.h $(srcdir)/Modules/getaddrinfo.c $(srcdir)/Modules/getnameinfo.c
3538-
MODULE__SSL_DEPS=$(srcdir)/Modules/_ssl.h $(srcdir)/Modules/_ssl/cert.c $(srcdir)/Modules/_ssl/debughelpers.c $(srcdir)/Modules/_ssl/misc.c $(srcdir)/Modules/_ssl_data_111.h $(srcdir)/Modules/_ssl_data_300.h $(srcdir)/Modules/socketmodule.h
3538+
MODULE__SSL_DEPS=$(srcdir)/Modules/_ssl.h $(srcdir)/Modules/_ssl/cert.c $(srcdir)/Modules/_ssl/debughelpers.c $(srcdir)/Modules/_ssl/misc.c $(srcdir)/Modules/_ssl/distrusted_spki.h $(srcdir)/Modules/_ssl_data_111.h $(srcdir)/Modules/_ssl_data_300.h $(srcdir)/Modules/socketmodule.h
35393539
MODULE__TESTCAPI_DEPS=$(srcdir)/Modules/_testcapi/parts.h $(srcdir)/Modules/_testcapi/util.h
35403540
MODULE__TESTLIMITEDCAPI_DEPS=$(srcdir)/Modules/_testlimitedcapi/testcapi_long.h $(srcdir)/Modules/_testlimitedcapi/parts.h $(srcdir)/Modules/_testlimitedcapi/util.h
35413541
MODULE__TESTINTERNALCAPI_DEPS=$(srcdir)/Modules/_testinternalcapi/parts.h $(srcdir)/Python/ceval.h $(srcdir)/Modules/_testinternalcapi/test_targets.h $(srcdir)/Modules/_testinternalcapi/test_cases.c.h
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. cve: CVE-2026-115557
2+
3+
:mod:`ssl` now rejects TLS certificate chains that contain any of a set of
4+
compromised eMudhra intermediate CA keys. This is an extraordinary measure and
5+
a last line of defense: removing trust is primarily the job of the platform root
6+
store, and the built-in denylist only blocks connections while that update has
7+
not yet reached the OS, a container image, or a bundled trust store in various
8+
Python packages. Entries are added to the denylist only under a very high
9+
threshold.
10+
The denylist matches on the public key (the SHA-256 digest of the :rfc:`5280`
11+
``SubjectPublicKeyInfo``), so it also covers the cross-signed certificates that
12+
reuse one of the distrusted keys.

‎Modules/_ssl.c‎

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
/* Include OpenSSL header files */
6767
#include "openssl/rsa.h"
6868
#include "openssl/crypto.h"
69+
#include "openssl/evp.h"
6970
#include "openssl/x509.h"
7071
#include "openssl/x509v3.h"
7172
#include "openssl/pem.h"
@@ -1003,7 +1004,9 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
10031004
int mode = SSL_get_verify_mode(self->ssl);
10041005
if (mode & SSL_VERIFY_PEER) {
10051006
mode |= SSL_VERIFY_POST_HANDSHAKE;
1006-
SSL_set_verify(self->ssl, mode, NULL);
1007+
/* Keep ctx verify callback (distrusted SPKI check) */
1008+
SSL_set_verify(self->ssl, mode,
1009+
SSL_get_verify_callback(self->ssl));
10071010
}
10081011
} else {
10091012
/* client socket */
@@ -3402,6 +3405,66 @@ static PyType_Spec PySSLSocket_spec = {
34023405
* _SSLContext objects
34033406
*/
34043407

3408+
#include "_ssl/distrusted_spki.h"
3409+
3410+
/* Returns 1 if the SHA-256 of the cert's SPKI is on the distrusted list,
3411+
0 if not (okay), -1 on an internal error. */
3412+
static int
3413+
_cert_has_distrusted_spki(X509 *cert)
3414+
{
3415+
unsigned char *spki = NULL;
3416+
int spki_len = i2d_X509_PUBKEY(X509_get_X509_PUBKEY(cert), &spki);
3417+
if (spki_len <= 0 || spki == NULL) {
3418+
return -1;
3419+
}
3420+
3421+
unsigned char digest[EVP_MAX_MD_SIZE];
3422+
unsigned int digest_len = 0;
3423+
int ok = EVP_Digest(spki, (size_t)spki_len, digest, &digest_len,
3424+
EVP_sha256(), NULL);
3425+
OPENSSL_free(spki);
3426+
assert(sizeof(_distrusted_spki[0]) == SHA256_DIGEST_LENGTH);
3427+
if (!ok
3428+
|| digest_len != SHA256_DIGEST_LENGTH
3429+
|| sizeof(_distrusted_spki[0]) != SHA256_DIGEST_LENGTH) {
3430+
return -1;
3431+
}
3432+
3433+
for (size_t i = 0; i < Py_ARRAY_LENGTH(_distrusted_spki); i++) {
3434+
if (memcmp(digest, _distrusted_spki[i], SHA256_DIGEST_LENGTH) == 0) {
3435+
return 1;
3436+
}
3437+
}
3438+
return 0;
3439+
}
3440+
3441+
/* Verify callback, called once per cert. Reject distrusted SPKIs. */
3442+
static int
3443+
_ssl_verify_callback(int preverify_ok, X509_STORE_CTX *x509_ctx)
3444+
{
3445+
/* Don't override an error OpenSSL already reported for this certificate. */
3446+
if (!preverify_ok) {
3447+
return preverify_ok;
3448+
}
3449+
X509 *cert = X509_STORE_CTX_get_current_cert(x509_ctx);
3450+
if (cert == NULL) {
3451+
return preverify_ok;
3452+
}
3453+
switch (_cert_has_distrusted_spki(cert)) {
3454+
case 0:
3455+
/* okay: not on the distrusted list */
3456+
return preverify_ok;
3457+
case 1:
3458+
/* rejected: public key is on the distrusted list */
3459+
X509_STORE_CTX_set_error(x509_ctx, X509_V_ERR_CERT_REJECTED);
3460+
return 0;
3461+
default:
3462+
/* internal error */
3463+
X509_STORE_CTX_set_error(x509_ctx, X509_V_ERR_UNSPECIFIED);
3464+
return 0;
3465+
}
3466+
}
3467+
34053468
static int
34063469
_set_verify_mode(PySSLContext *self, enum py_ssl_cert_requirements n)
34073470
{
@@ -3426,7 +3489,7 @@ _set_verify_mode(PySSLContext *self, enum py_ssl_cert_requirements n)
34263489
/* bpo-37428: newPySSLSocket() sets SSL_VERIFY_POST_HANDSHAKE flag for
34273490
* server sockets and SSL_set_post_handshake_auth() for client. */
34283491

3429-
SSL_CTX_set_verify(self->ctx, mode, NULL);
3492+
SSL_CTX_set_verify(self->ctx, mode, _ssl_verify_callback);
34303493
return 0;
34313494
}
34323495

‎Modules/_ssl/distrusted_spki.h‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* Denylist of distrusted SubjectPublicKeyInfo (SPKI).
2+
*
3+
* Verification rejects any chain with a cert whose SPKI SHA-256 digest is in
4+
* the _distrusted_spki table. We match the key, not a cert fingerprint, so
5+
* cross-signs that reuse the key are blocked too.
6+
*
7+
* This is an extraordinary measure and last line of defense. Removing trust is
8+
* primarily the job of the platform root store. This list only blocks keys while
9+
* that update is still propagating to the OS, container images, or root CAs
10+
* bundled in Python packages. The threshold for adding an entry is very high.
11+
*
12+
* See https://github.com/python/cpython/issues/160040 for the eMudhra discussion.
13+
*
14+
* To block another key, add the SHA-256 digest bytes of its SPKI:
15+
*
16+
* $ openssl x509 -in cert.pem -noout -pubkey | openssl pkey -pubin -outform DER | openssl dgst -sha256 -binary | xxd -i
17+
*/
18+
#ifndef Py_SSL_DISTRUSTED_SPKI_H
19+
#define Py_SSL_DISTRUSTED_SPKI_H
20+
21+
#include "openssl/sha.h"
22+
23+
static const unsigned char _distrusted_spki[][SHA256_DIGEST_LENGTH] = {
24+
/* Compromised eMudhra intermediates, https://emudhra.we-have-a-problem.com/ */
25+
/* CN=EM OV TLS CA - G3B,O=eMudhra BV,C=NL */
26+
{
27+
0x43, 0xbf, 0xfa, 0x19, 0xd6, 0xef, 0x65, 0x14, 0x51, 0xf6, 0x84, 0x1e,
28+
0x01, 0x99, 0x31, 0xe9, 0x6f, 0x6f, 0x2e, 0xae, 0xff, 0x28, 0xab, 0x4b,
29+
0x6f, 0x1c, 0xe4, 0x57, 0x6d, 0xe2, 0x71, 0x7b,
30+
},
31+
/* CN=EM DV TLS CA - G3C,O=eMudhra Inc,C=US */
32+
{
33+
0x49, 0xdd, 0x35, 0x3d, 0xc2, 0xb9, 0x19, 0xa3, 0x77, 0x06, 0x45, 0x11,
34+
0x7d, 0x0e, 0x60, 0xc1, 0x61, 0x15, 0xe7, 0xd1, 0xbc, 0x25, 0x9e, 0xef,
35+
0xe7, 0x34, 0xb0, 0x0e, 0xa4, 0x34, 0xfe, 0x5f,
36+
},
37+
/* CN=EM EV TLS CA - G3C,O=eMudhra Inc,C=US */
38+
{
39+
0x5c, 0x06, 0x60, 0xa2, 0xb1, 0x64, 0x91, 0x0d, 0x8f, 0xf5, 0x89, 0xc1,
40+
0x8e, 0x14, 0x55, 0x2e, 0x9e, 0x0e, 0xc2, 0x37, 0xdc, 0xef, 0xe2, 0xcb,
41+
0x73, 0x6d, 0x41, 0xa4, 0x81, 0x1f, 0x81, 0xa0,
42+
},
43+
/* CN=EM OV TLS CA - G3C,O=eMudhra Inc,C=US */
44+
{
45+
0x63, 0xec, 0xef, 0xee, 0x43, 0x1d, 0x49, 0x52, 0x3b, 0xc1, 0x13, 0x6c,
46+
0x4e, 0x72, 0xd0, 0x20, 0x6a, 0x47, 0x70, 0x86, 0xca, 0xf6, 0x06, 0xcd,
47+
0x5c, 0xf0, 0x25, 0x68, 0x6c, 0x10, 0x9c, 0xf8,
48+
},
49+
/* CN=EM OV CS CA - G3C,O=eMudhra Inc,C=US */
50+
{
51+
0x92, 0xc0, 0x63, 0xd6, 0x7e, 0x8f, 0x14, 0xdb, 0x71, 0xd2, 0x88, 0xe1,
52+
0x12, 0x66, 0xff, 0xda, 0xf6, 0x9c, 0xbf, 0x11, 0x5f, 0x7b, 0xab, 0x14,
53+
0xf3, 0xbc, 0x2f, 0x68, 0xd2, 0x5e, 0x0e, 0x30,
54+
},
55+
/* CN=EM EV TLS CA - G3B,O=eMudhra BV,C=NL */
56+
{
57+
0xe0, 0x25, 0x4c, 0x7f, 0xcd, 0xc2, 0x65, 0xe2, 0xf0, 0xf8, 0xa4, 0x28,
58+
0xda, 0xbb, 0x75, 0xab, 0x4a, 0xe0, 0x39, 0xb4, 0x87, 0x2d, 0x62, 0xf5,
59+
0xee, 0x57, 0xf0, 0x87, 0x7d, 0x5a, 0x8a, 0x41,
60+
},
61+
/* CN=EM DV TLS CA - G3B,O=eMudhra BV,C=NL */
62+
{
63+
0xeb, 0xed, 0x64, 0x75, 0xc2, 0xc2, 0xd8, 0x0f, 0xcb, 0x19, 0x9f, 0x3f,
64+
0xe8, 0xdd, 0x6e, 0x6b, 0x3c, 0xe6, 0x0b, 0x77, 0xeb, 0x15, 0xd4, 0xe4,
65+
0x2c, 0x3d, 0xec, 0x0c, 0x6f, 0x5b, 0x51, 0x05,
66+
},
67+
/* CN=EM OV CS CA - G3B,O=eMudhra BV,C=NL */
68+
{
69+
0xec, 0x4f, 0xfa, 0x1a, 0xd0, 0xac, 0x88, 0x08, 0x13, 0x14, 0xb7, 0xaa,
70+
0xff, 0xef, 0x6a, 0x91, 0xf9, 0x7c, 0xd5, 0x72, 0x91, 0xbb, 0x5b, 0xa6,
71+
0x86, 0xc5, 0x41, 0x5f, 0x5e, 0xb4, 0xf6, 0xb6,
72+
},
73+
};
74+
75+
#endif /* !Py_SSL_DISTRUSTED_SPKI_H */

‎PCbuild/_ssl.vcxproj‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
<AdditionalDependencies>ws2_32.lib;crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
9898
</Link>
9999
</ItemDefinitionGroup>
100+
<ItemGroup>
101+
<ClInclude Include="..\Modules\_ssl\distrusted_spki.h" />
102+
</ItemGroup>
100103
<ItemGroup>
101104
<ClCompile Include="..\Modules\_ssl.c" />
102105
</ItemGroup>

0 commit comments

Comments
 (0)