From 74e3def5b3c81556d36c58242e8284405f19e0fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 18 Jun 2008 21:48:51 +0000 Subject: [PATCH] check_issuer_cert() now builds and there's one warning less. Still one compiler warning in the code though but we need NSS' base64.h header for that and we don't currently have a suitable way to include it as our own base64.h header kind of "blocks" it. --- lib/nss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nss.c b/lib/nss.c index 62fd191..fcdda04 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -62,6 +62,7 @@ #include #include #include +#include #include "memory.h" #include "easyif.h" /* for Curl_convert_from_utf8 prototype */ @@ -766,7 +767,8 @@ static SECStatus check_issuer_cert(struct connectdata *conn, if ((!cert_issuer) || (!issuer)) res = SECFailure; - else if (CERT_CompareCerts(cert_issuer,issuer)==PR_FALSE) + else if (SECITEM_CompareItem(&cert_issuer->derCert, + &issuer->derCert)!=SECEqual) res = SECFailure; CERT_DestroyCertificate(cert); -- 2.7.4