mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
parent
3806fd914b
commit
8d4530537a
1 changed files with 4 additions and 2 deletions
|
|
@ -1291,8 +1291,10 @@ static CURLcode pkp_pin_peer_pubkey(struct Curl_easy *data,
|
||||||
do {
|
do {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Begin Gyrations to get the public key */
|
/* Begin Gyrations to get the public key */
|
||||||
gnutls_pubkey_init(&key);
|
ret = gnutls_pubkey_init(&key);
|
||||||
|
if(ret < 0)
|
||||||
|
break; /* failed */
|
||||||
|
|
||||||
ret = gnutls_pubkey_import_x509(key, cert, 0);
|
ret = gnutls_pubkey_import_x509(key, cert, 0);
|
||||||
if(ret < 0)
|
if(ret < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue