Lines Matching refs:BACKEND
83 #define BACKEND connssl->backend macro
209 ssl_set_min_version(&BACKEND->ssl, SSL_MAJOR_VERSION_3, ssl_min_ver); in set_ssl_version_min_max()
210 ssl_set_max_version(&BACKEND->ssl, SSL_MAJOR_VERSION_3, ssl_max_ver); in set_ssl_version_min_max()
238 if((ret = ctr_drbg_init(&BACKEND->ctr_drbg, entropy_func_mutex, &entropy, in polarssl_connect_step1()
245 entropy_init(&BACKEND->entropy); in polarssl_connect_step1()
247 if((ret = ctr_drbg_init(&BACKEND->ctr_drbg, entropy_func, &BACKEND->entropy, in polarssl_connect_step1()
256 memset(&BACKEND->cacert, 0, sizeof(x509_crt)); in polarssl_connect_step1()
259 ret = x509_crt_parse_file(&BACKEND->cacert, in polarssl_connect_step1()
273 ret = x509_crt_parse_path(&BACKEND->cacert, capath); in polarssl_connect_step1()
286 memset(&BACKEND->clicert, 0, sizeof(x509_crt)); in polarssl_connect_step1()
289 ret = x509_crt_parse_file(&BACKEND->clicert, in polarssl_connect_step1()
310 rsa_copy(&BACKEND->rsa, pk_rsa(pk)); in polarssl_connect_step1()
312 rsa_free(&BACKEND->rsa); in polarssl_connect_step1()
325 memset(&BACKEND->crl, 0, sizeof(x509_crl)); in polarssl_connect_step1()
328 ret = x509_crl_parse_file(&BACKEND->crl, in polarssl_connect_step1()
342 if(ssl_init(&BACKEND->ssl)) { in polarssl_connect_step1()
350 ssl_set_min_version(&BACKEND->ssl, SSL_MAJOR_VERSION_3, in polarssl_connect_step1()
354 ssl_set_min_version(&BACKEND->ssl, SSL_MAJOR_VERSION_3, in polarssl_connect_step1()
356 ssl_set_max_version(&BACKEND->ssl, SSL_MAJOR_VERSION_3, in polarssl_connect_step1()
375 ssl_set_endpoint(&BACKEND->ssl, SSL_IS_CLIENT); in polarssl_connect_step1()
376 ssl_set_authmode(&BACKEND->ssl, SSL_VERIFY_OPTIONAL); in polarssl_connect_step1()
378 ssl_set_rng(&BACKEND->ssl, ctr_drbg_random, in polarssl_connect_step1()
379 &BACKEND->ctr_drbg); in polarssl_connect_step1()
380 ssl_set_bio(&BACKEND->ssl, in polarssl_connect_step1()
384 ssl_set_ciphersuites(&BACKEND->ssl, ssl_list_ciphersuites()); in polarssl_connect_step1()
392 ret = ssl_set_session(&BACKEND->ssl, old_session); in polarssl_connect_step1()
403 ssl_set_ca_chain(&BACKEND->ssl, in polarssl_connect_step1()
404 &BACKEND->cacert, in polarssl_connect_step1()
405 &BACKEND->crl, in polarssl_connect_step1()
408 ssl_set_own_cert_rsa(&BACKEND->ssl, in polarssl_connect_step1()
409 &BACKEND->clicert, &BACKEND->rsa); in polarssl_connect_step1()
411 if(ssl_set_hostname(&BACKEND->ssl, hostname)) { in polarssl_connect_step1()
436 ssl_set_alpn_protocols(&BACKEND->ssl, protocols); in polarssl_connect_step1()
441 ssl_set_dbg(&BACKEND->ssl, polarssl_debug, data); in polarssl_connect_step1()
468 ret = ssl_handshake(&BACKEND->ssl); in polarssl_connect_step2()
490 ssl_get_ciphersuite(&BACKEND->ssl) ); in polarssl_connect_step2()
492 ret = ssl_get_verify_result(&BACKEND->ssl); in polarssl_connect_step2()
512 if(ssl_get_peer_cert(&(BACKEND->ssl))) { in polarssl_connect_step2()
517 ssl_get_peer_cert(&(BACKEND->ssl))) != -1) in polarssl_connect_step2()
529 peercert = ssl_get_peer_cert(&BACKEND->ssl); in polarssl_connect_step2()
578 const char *next_protocol = ssl_get_alpn_protocol(&BACKEND->ssl); in polarssl_connect_step2()
624 ret = ssl_get_session(&BACKEND->ssl, our_ssl_sessionid); in polarssl_connect_step3()
658 ret = ssl_write(&BACKEND->ssl, in polarssl_send()
673 rsa_free(&BACKEND->rsa); in Curl_polarssl_close()
674 x509_crt_free(&BACKEND->clicert); in Curl_polarssl_close()
675 x509_crt_free(&BACKEND->cacert); in Curl_polarssl_close()
676 x509_crl_free(&BACKEND->crl); in Curl_polarssl_close()
677 ssl_free(&BACKEND->ssl); in Curl_polarssl_close()
691 ret = ssl_read(&BACKEND->ssl, (unsigned char *)buf, buffersize); in polarssl_recv()
877 return ssl_get_bytes_avail(&BACKEND->ssl) != 0; in Curl_polarssl_data_pending()
894 return &BACKEND->ssl; in Curl_polarssl_get_internals()