From e43ca3abe1a116a02fa7baa1bbc7ba44ddbef456 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Tue, 30 Jul 2024 21:13:23 +0300 Subject: [PATCH] Use const pointers in `secure_channel_tls_handler.c`. --- source/windows/secure_channel_tls_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/windows/secure_channel_tls_handler.c b/source/windows/secure_channel_tls_handler.c index 97a645a9e..9cb1b3715 100644 --- a/source/windows/secure_channel_tls_handler.c +++ b/source/windows/secure_channel_tls_handler.c @@ -53,7 +53,7 @@ struct secure_channel_ctx { struct aws_tls_ctx ctx; struct aws_string *alpn_list; SCHANNEL_CRED credentials; - PCERT_CONTEXT pcerts; + PCCERT_CONTEXT pcerts; HCERTSTORE cert_store; HCERTSTORE custom_trust_store; HCRYPTPROV crypto_provider; @@ -192,7 +192,7 @@ static int s_manually_verify_peer_cert(struct aws_channel_handler *handler) { int result = AWS_OP_ERR; CERT_CONTEXT *peer_certificate = NULL; HCERTCHAINENGINE engine = NULL; - CERT_CHAIN_CONTEXT *cert_chain_ctx = NULL; + PCCERT_CHAIN_CONTEXT cert_chain_ctx = NULL; /* get the peer's certificate so we can validate it.*/ SECURITY_STATUS status =