Lines Matching refs:ret
161 int ret = 1; in gtls_init() local
163 ret = gnutls_global_init() ? 0 : 1; in gtls_init()
170 return ret; in gtls_init()
1242 int ret; in pkp_pin_peer_pubkey() local
1247 ret = gnutls_pubkey_import_x509(key, cert, 0); in pkp_pin_peer_pubkey()
1248 if(ret < 0) in pkp_pin_peer_pubkey()
1251 ret = gnutls_pubkey_export(key, GNUTLS_X509_FMT_DER, NULL, &len1); in pkp_pin_peer_pubkey()
1252 if(ret != GNUTLS_E_SHORT_MEMORY_BUFFER || len1 == 0) in pkp_pin_peer_pubkey()
1261 ret = gnutls_pubkey_export(key, GNUTLS_X509_FMT_DER, buff1, &len2); in pkp_pin_peer_pubkey()
1262 if(ret < 0 || len1 != len2) in pkp_pin_peer_pubkey()
1576 int ret = gnutls_x509_crt_get_subject_alt_name(x509_cert, i, certaddr, in Curl_gtls_verifyserver() local
1579 if(ret == GNUTLS_E_SHORT_MEMORY_BUFFER) in Curl_gtls_verifyserver()
1581 if(ret < 0) in Curl_gtls_verifyserver()
1583 if(ret != GNUTLS_SAN_IPADDRESS) in Curl_gtls_verifyserver()
2082 int ret = gnutls_bye(backend->gtls.session, GNUTLS_SHUT_RDWR); in gtls_shutdown() local
2083 if((ret == GNUTLS_E_AGAIN) || (ret == GNUTLS_E_INTERRUPTED)) { in gtls_shutdown()
2091 if(ret != GNUTLS_E_SUCCESS) { in gtls_shutdown()
2093 gnutls_strerror((int)ret), (int)ret); in gtls_shutdown()
2163 ssize_t ret; in gtls_recv() local
2172 ret = -1; in gtls_recv()
2177 ret = -1; in gtls_recv()
2183 ret = gnutls_record_recv(backend->gtls.session, buf, buffersize); in gtls_recv()
2184 if((ret == GNUTLS_E_AGAIN) || (ret == GNUTLS_E_INTERRUPTED)) { in gtls_recv()
2186 ret = -1; in gtls_recv()
2190 if(ret == GNUTLS_E_REHANDSHAKE) { in gtls_recv()
2199 ret = -1; in gtls_recv()
2203 if(ret < 0) { in gtls_recv()
2205 (int)ret, gnutls_strerror((int)ret)); in gtls_recv()
2208 ret = -1; in gtls_recv()
2213 return ret; in gtls_recv()