Lines Matching refs:ret
547 CURLcode ret; in bearssl_connect_step1() local
561 ret = load_cafile(&source, &backend->anchors, &backend->anchors_len); in bearssl_connect_step1()
562 if(ret != CURLE_OK) { in bearssl_connect_step1()
564 return ret; in bearssl_connect_step1()
575 ret = load_cafile(&source, &backend->anchors, &backend->anchors_len); in bearssl_connect_step1()
576 if(ret != CURLE_OK) { in bearssl_connect_step1()
579 return ret; in bearssl_connect_step1()
588 ret = bearssl_set_ssl_version_min_max(data, &backend->ctx.eng, conn_config); in bearssl_connect_step1()
589 if(ret != CURLE_OK) in bearssl_connect_step1()
590 return ret; in bearssl_connect_step1()
599 ret = bearssl_set_selected_ciphers(data, &backend->ctx.eng, in bearssl_connect_step1()
601 if(ret) in bearssl_connect_step1()
602 return ret; in bearssl_connect_step1()
661 ret = (*data->set.ssl.fsslctx)(data, &backend->ctx, in bearssl_connect_step1()
664 if(ret) { in bearssl_connect_step1()
666 return ret; in bearssl_connect_step1()
689 ssize_t ret; in bearssl_run_until() local
732 ret = Curl_conn_cf_send(cf->next, data, (char *)buf, len, FALSE, in bearssl_run_until()
734 CURL_TRC_CF(data, cf, "ssl_send(len=%zu) -> %zd, %d", len, ret, result); in bearssl_run_until()
735 if(ret <= 0) { in bearssl_run_until()
740 br_ssl_engine_sendrec_ack(&backend->ctx.eng, ret); in bearssl_run_until()
744 ret = Curl_conn_cf_recv(cf->next, data, (char *)buf, len, &result); in bearssl_run_until()
745 CURL_TRC_CF(data, cf, "ssl_recv(len=%zu) -> %zd, %d", len, ret, result); in bearssl_run_until()
746 if(ret == 0) { in bearssl_run_until()
750 if(ret <= 0) { in bearssl_run_until()
755 br_ssl_engine_recvrec_ack(&backend->ctx.eng, ret); in bearssl_run_until()
768 CURLcode ret; in bearssl_connect_step2() local
773 ret = bearssl_run_until(cf, data, BR_SSL_SENDAPP | BR_SSL_RECVAPP); in bearssl_connect_step2()
774 if(ret == CURLE_AGAIN) in bearssl_connect_step2()
776 if(ret == CURLE_OK) { in bearssl_connect_step2()
804 return ret; in bearssl_connect_step2()
820 CURLcode ret; in bearssl_connect_step3() local
842 ret = Curl_ssl_set_sessionid(cf, data, &connssl->peer, NULL, in bearssl_connect_step3()
846 if(ret) in bearssl_connect_step3()
847 return ret; in bearssl_connect_step3()
920 CURLcode ret; in bearssl_connect_common() local
935 ret = bearssl_connect_step1(cf, data); in bearssl_connect_common()
936 if(ret) in bearssl_connect_common()
937 return ret; in bearssl_connect_common()
987 ret = bearssl_connect_step2(cf, data); in bearssl_connect_common()
988 if(ret || (nonblocking && (ssl_connect_2 == connssl->connecting_state))) in bearssl_connect_common()
989 return ret; in bearssl_connect_common()
993 ret = bearssl_connect_step3(cf, data); in bearssl_connect_common()
994 if(ret) in bearssl_connect_common()
995 return ret; in bearssl_connect_common()
1051 CURLcode ret; in bearssl_connect() local
1054 ret = bearssl_connect_common(cf, data, FALSE, &done); in bearssl_connect()
1055 if(ret) in bearssl_connect()
1056 return ret; in bearssl_connect()