removed warning about unused argument by simply removing that argument from
the check_issuer_cert() proto
This commit is contained in:
parent
74e3def5b3
commit
36ddb13d1f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user