mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
nss_load_key: fix unused variable warning
This commit is contained in:
parent
f19ace8d33
commit
c3a6116dc9
@ -537,6 +537,7 @@ static int nss_load_key(struct connectdata *conn, int sockindex,
|
||||
PK11SlotInfo *slot;
|
||||
SECStatus status;
|
||||
struct ssl_connect_data *ssl = conn->ssl;
|
||||
(void)sockindex; /* unused */
|
||||
|
||||
if(CURLE_OK != nss_create_object(ssl, CKO_PRIVATE_KEY, key_file, FALSE)) {
|
||||
PR_SetError(SEC_ERROR_BAD_KEY, 0);
|
||||
@ -561,6 +562,7 @@ static int nss_load_key(struct connectdata *conn, int sockindex,
|
||||
*/
|
||||
(void)conn; /* unused */
|
||||
(void)key_file; /* unused */
|
||||
(void)sockindex; /* unused */
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user