Lines Matching defs:ssl
603 ssl(nullptr),
686 ssl = SSL_new(ssl_ctx);
687 if (!ssl) {
693 SSL_set_connect_state(ssl);
703 auto param = SSL_get0_param(ssl);
710 SSL_set_verify(ssl, SSL_VERIFY_PEER, verify_cb);
713 SSL_set_tlsext_host_name(ssl, host_string.c_str());
720 if (ssl) {
721 SSL_free(ssl);
722 ssl = nullptr;
775 if (ssl) {
776 SSL_set_shutdown(ssl, SSL_get_shutdown(ssl) | SSL_RECEIVED_SHUTDOWN);
778 SSL_shutdown(ssl);
779 SSL_free(ssl);
780 ssl = nullptr;
892 if (ssl) {
893 SSL_set_fd(ssl, fd);
1123 if (ssl) {
1128 SSL_get0_next_proto_negotiated(ssl, &next_proto, &next_proto_len);
1142 SSL_get0_alpn_selected(ssl, &next_proto, &next_proto_len);
1321 auto rv = SSL_do_handshake(ssl);
1324 auto err = SSL_get_error(ssl, rv);
1346 auto verify_res = SSL_get_verify_result(ssl);
1367 auto rv = SSL_read(ssl, buf.data(), buf.size());
1370 auto err = SSL_get_error(ssl, rv);
1406 auto rv = SSL_write(ssl, iov.iov_base, iov.iov_len);
1409 auto err = SSL_get_error(ssl, rv);
2257 int client_select_next_proto_cb(SSL *ssl, unsigned char **out,