Unverified Commit 6cf53e8f by Edward Thomson Committed by GitHub

Merge pull request #4424 from tiennou/fix/incorrect-winhttp-cert-payload

Use the same cert checking payload in WinHTTP
parents a9b66677 38eaa7ab
......@@ -269,7 +269,7 @@ static int certificate_check(winhttp_stream *s, int valid)
cert.parent.cert_type = GIT_CERT_X509;
cert.data = cert_ctx->pbCertEncoded;
cert.len = cert_ctx->cbCertEncoded;
error = t->owner->certificate_check_cb((git_cert *) &cert, valid, t->connection_data.host, t->owner->cred_acquire_payload);
error = t->owner->certificate_check_cb((git_cert *) &cert, valid, t->connection_data.host, t->owner->message_cb_payload);
CertFreeCertificateContext(cert_ctx);
if (error < 0 && !giterr_last())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment