mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:33:34 +03:00
- Kamil Dudka made NSS-powered builds compile and run again!
This commit is contained in:
parent
4ad296c60b
commit
a24fe59ee4
3 changed files with 8 additions and 3 deletions
|
|
@ -1140,7 +1140,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
|
|||
n = strrchr(data->set.str[STRING_CERT], '/');
|
||||
if(n) {
|
||||
n++; /* skip last slash */
|
||||
nickname = aprintf(nickname, "PEM Token #%d:%s", 1, n);
|
||||
nickname = aprintf("PEM Token #%d:%s", 1, n);
|
||||
if(!nickname)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
|
|
@ -1171,7 +1171,8 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
|
|||
|
||||
if(SSL_GetClientAuthDataHook(model,
|
||||
(SSLGetClientAuthData) SelectClientCert,
|
||||
(void *)connssl) != SECSuccess) {
|
||||
(void *)connssl->client_nickname) !=
|
||||
SECSuccess) {
|
||||
curlerr = CURLE_SSL_CERTPROBLEM;
|
||||
goto error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue