Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use const pointers in secure_channel_tls_handler.c. #664

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/windows/secure_channel_tls_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 =
Expand Down