Lines Matching defs:ssl
29 #include <openssl/ssl.h>
214 SSL *ssl;
228 DEBUGASSERT(!s->ssl);
230 s->ssl = SSL_new_stream(conn, flags);
231 if(!s->ssl) {
234 s->id = SSL_get_stream_id(s->ssl);
235 SSL_set_app_data(s->ssl, user_data);
241 if(s->ssl) {
242 SSL_set_app_data(s->ssl, NULL);
243 SSL_free(s->ssl);
251 if(s->ssl) {
252 SSL_free(s->ssl);
253 s->ssl = NULL;
321 if(ctx && ctx->tls.ssl) {
367 nstream->ssl = stream_ssl;
406 lerr = SSL_get_verify_result(ctx->tls.ssl);
833 if(!stream || !stream->s.ssl)
850 if(stream && stream->s.ssl) {
853 rv = !SSL_stream_reset(stream->s.ssl, &args, sizeof(args));
1087 if(!SSL_set1_initial_peer_addr(ctx->tls.ssl, baddr)) {
1092 if(!SSL_set_blocking_mode(ctx->tls.ssl, 0)) {
1098 SSL_set_bio(ctx->tls.ssl, bio, bio);
1100 SSL_set_connect_state(ctx->tls.ssl);
1101 SSL_set_incoming_stream_policy(ctx->tls.ssl,
1104 result = cf_osslq_h3conn_init(ctx, ctx->tls.ssl, cf);
1130 rv = SSL_read_ex(x->s->ssl, buf, len, &nread);
1132 int detail = SSL_get_error(x->s->ssl, rv);
1143 else if(SSL_get_stream_read_state(x->s->ssl) ==
1146 SSL_get_stream_read_error_code(x->s->ssl, &app_error_code);
1186 while(s->ssl && !s->closed && !eagain &&
1229 if(!SSL_get_stream_read_error_code(s->ssl, &app_error)) {
1271 if(!ctx->tls.ssl)
1278 SSL *snew = SSL_accept_stream(ctx->tls.ssl, SSL_ACCEPT_STREAM_NO_BLOCK);
1285 if(!SSL_handle_events(ctx->tls.ssl)) {
1286 int detail = SSL_get_error(ctx->tls.ssl, 0);
1334 if(stream && stream->s.ssl && stream->s.send_blocked &&
1335 !SSL_want_write(stream->s.ssl)) {
1353 if(!ctx->tls.ssl || !ctx->h3.conn)
1393 /* Without stream->s.ssl, we closed that already, so
1396 ok = !s->ssl || SSL_write_ex(s->ssl, vec[i].base, vec[i].len,
1406 int detail = SSL_get_error(s->ssl, 0);
1450 SSL_stream_conclude(s->ssl, 0);
1465 if(!ctx->tls.ssl)
1473 if(!SSL_handle_events(ctx->tls.ssl)) {
1474 int detail = SSL_get_error(ctx->tls.ssl, 0);
1494 if(ctx->tls.ssl &&
1495 SSL_get_event_timeout(ctx->tls.ssl, &tv, &is_infinite) &&
1506 if(SSL_get_event_timeout(ctx->tls.ssl, &tv, &is_infinite)) {
1551 if(!ctx->tls.ssl) {
1567 err = SSL_do_handshake(ctx->tls.ssl);
1584 int detail = SSL_get_error(ctx->tls.ssl, err);
1612 if(result == CURLE_RECV_ERROR && ctx->tls.ssl && ctx->protocol_shutdown) {
1702 *err = cf_osslq_stream_open(&stream->s, ctx->tls.ssl, 0,
1779 DEBUGASSERT(ctx->tls.ssl);
1919 DEBUGASSERT(ctx->tls.ssl);
2055 if(!ctx->tls.ssl)
2086 if(!ctx->tls.ssl) {
2093 SSL_net_read_desired(ctx->tls.ssl),
2094 SSL_net_write_desired(ctx->tls.ssl));
2103 SSL_net_read_desired(ctx->tls.ssl),
2104 SSL_net_write_desired(ctx->tls.ssl));