diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-06-18 21:48:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-06-18 21:48:51 +0000 |
commit | 74e3def5b3c81556d36c58242e8284405f19e0fe (patch) | |
tree | 50010f19a8ddce32c791f94d99e0bc6100c3da28 /lib | |
parent | 24d41452b00c4e5728626c744eb16ba4f9eb2378 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nss.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -62,6 +62,7 @@ #include <prio.h> #include <secitem.h> #include <secport.h> +#include <certdb.h> #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); |