Skip to content
Snippets Groups Projects
Commit 36ddb13d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

removed warning about unused argument by simply removing that argument from

the check_issuer_cert() proto
parent 74e3def5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment