From 30c131f51f605d35e5d90f4be1727045fef17351 Mon Sep 17 00:00:00 2001 From: Daniel Hwang Date: Sat, 12 Sep 2015 14:35:12 -0700 Subject: ssl: add server cert's "sha256//" hash to verbose Add a "pinnedpubkey" section to the "Server Certificate" verbose Bug: https://github.com/bagder/curl/issues/410 Reported-by: W. Mark Kubacki Closes #430 Closes #410 --- lib/vtls/nss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/vtls/nss.c') diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index 09214a52b..c8bd0cef6 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -973,8 +973,7 @@ static CURLcode cmp_peer_pubkey(struct ssl_connect_data *connssl, SECItem *cert_der = PK11_DEREncodePublicKey(pubkey); if(cert_der) { /* compare the public key with the pinned public key */ - result = Curl_pin_peer_pubkey(pinnedpubkey, - cert_der->data, + result = Curl_pin_peer_pubkey(data, pinnedpubkey, cert_der->data, cert_der->len); SECITEM_FreeItem(cert_der, PR_TRUE); } -- cgit v1.2.3