aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-06-18 21:50:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-06-18 21:50:40 +0000
commit36ddb13d1fe4d63b8025ebcbc0eeafcc18ac5a4a (patch)
tree0e9bf667db83ec0eff56b42811e95281ecd87eed
parent74e3def5b3c81556d36c58242e8284405f19e0fe (diff)
removed warning about unused argument by simply removing that argument from
the check_issuer_cert() proto
-rw-r--r--lib/nss.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/nss.c b/lib/nss.c
index fcdda0492..cd52af156 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -744,8 +744,7 @@ static void display_conn_info(struct connectdata *conn, PRFileDesc *sock)
* issuer check, so we provide comments that mimic the OpenSSL
* X509_check_issued function (in x509v3/v3_purp.c)
*/
-static SECStatus check_issuer_cert(struct connectdata *conn,
- PRFileDesc *sock,
+static SECStatus check_issuer_cert(PRFileDesc *sock,
char* issuer_nickname)
{
CERTCertificate *cert,*cert_issuer,*issuer;
@@ -1172,7 +1171,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
strncpy(nickname, data->set.str[STRING_SSL_ISSUERCERT], PATH_MAX);
nickname[PATH_MAX-1]=0; /* make sure this is zero terminated */
}
- if (check_issuer_cert(conn,connssl->handle,nickname)==SECFailure) {
+ if (check_issuer_cert(connssl->handle, nickname) == SECFailure) {
infof(data,"SSL certificate issuer check failed\n");
free(nickname);
curlerr = CURLE_SSL_ISSUER_ERROR;