Commit 6cf53e8f98bec69ff4129fbb494b3995c8916389

Edward Thomson 2017-11-30T21:41:16

Merge pull request #4424 from tiennou/fix/incorrect-winhttp-cert-payload Use the same cert checking payload in WinHTTP

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index 6689c8c..98905ab 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -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())