Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 875) sorted by relevance

12345678910>>...35

/openssl/ssl/statem/
H A Dstatem.c123 return s != NULL ? s->statem.hand_state : TLS_ST_BEFORE; in ossl_statem_get_state()
149 if (s->statem.in_init && s->statem.state == MSG_FLOW_ERROR) in ossl_statem_send_fatal()
206 s->rlayer.rrlmethod->set_in_init(s->rlayer.rrl, init); in ossl_statem_set_in_init()
228 if (!s->server in ossl_statem_skip_early_data()
427 if (!ssl_security(s, SSL_SECOP_VERSION, 0, s->version, NULL)) { in state_machine()
546 size_t msg_offset = (char *)s->init_msg - s->init_buf->data; in grow_init_buf()
554 s->init_msg = s->init_buf->data + msg_offset; in grow_init_buf()
600 if (s->server) { in read_state_machine()
649 if (s->s3.tmp.message_size > max_message_size(s)) { in read_state_machine()
658 && !grow_init_buf(s, s->s3.tmp.message_size in read_state_machine()
[all …]
H A Dstatem_srvr.c576 if (s->num_tickets > s->sent_tickets) in ossl_statem_server13_write_transition()
594 } else if (s->hit || s->num_tickets <= s->sent_tickets) { in ossl_statem_server13_write_transition()
919 if (SSL_CONNECTION_IS_DTLS(s) && s->hit) { in ossl_statem_server_post_work()
1011 if (SSL_CONNECTION_IS_DTLS(s) && s->hit) { in ossl_statem_server_post_work()
1898 if (!SSL_CONNECTION_IS_TLS13(s) && s->hit) { in tls_early_post_process_client_hello()
2107 if (!s->hit || SSL_CONNECTION_IS_TLS13(s)) { in tls_early_post_process_client_hello()
2167 s->cert->key = s->s3.tmp.cert; in tls_handle_status_request()
2655 (s->srp_ctx.s == NULL) || (s->srp_ctx.B == NULL)) { in tls_construct_server_key_exchange()
2661 r[2] = s->srp_ctx.s; in tls_construct_server_key_exchange()
3178 if (BN_ucmp(s->srp_ctx.A, s->srp_ctx.N) >= 0 || BN_is_zero(s->srp_ctx.A)) { in tls_process_cke_srp()
[all …]
H A Dstatem_clnt.c855 s->session->cipher = s->s3.tmp.new_cipher; in ossl_statem_client_post_work()
876 if (SSL_CONNECTION_IS_DTLS(s) && s->hit) { in ossl_statem_client_post_work()
1293 if (s->d1->cookie_len > sizeof(s->d1->cookie) in tls_construct_client_hello()
1651 || memcmp(s->session->sid_ctx, s->sid_ctx, s->sid_ctx_length)) { in tls_process_server_hello()
1673 s->session->ssl_version = s->version; in tls_process_server_hello()
1690 if (s->version != s->session->ssl_version) { in tls_process_server_hello()
1699 s->s3.tmp.min_ver = s->version; in tls_process_server_hello()
1700 s->s3.tmp.max_ver = s->version; in tls_process_server_hello()
1752 if (SSL_CONNECTION_IS_DTLS(s) && s->hit) { in tls_process_server_hello()
2133 s->session->verify_result = s->verify_result; in tls_post_process_server_certificate()
[all …]
H A Dstatem_lib.c89 s->init_msg = s->init_buf->data + SSL3_HM_HEADER_LENGTH; in ssl3_do_write()
90 s->statem.finish_mutate_handshake_cb(s->statem.mutatearg); in ssl3_do_write()
115 s->msg_callback(1, s->version, type, s->init_buf->data, in ssl3_do_write()
151 memset(s->ext.extflags, 0, sizeof(s->ext.extflags)); in tls_setup_handshake()
595 if (!s->server && SSL_CONNECTION_IS_TLS13(s) && s->s3.tmp.cert_req == 1) in tls_process_cert_verify()
1445 if (SSL_CONNECTION_IS_TLS13(s) && !s->server in tls_finish_handshake()
1576 s->init_msg = s->init_buf->data; in tls_get_message_header()
1623 s->init_msg = s->init_buf->data; in tls_get_message_header()
1657 n = s->s3.tmp.message_size - s->init_num; in tls_get_message_body()
1717 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, s->init_buf->data, in tls_get_message_body()
[all …]
H A Dextensions_clnt.c19 if (!s->renegotiate) { in tls_construct_ctos_renegotiate()
292 if (!s->new_session && s->session != NULL in tls_construct_ctos_session_ticket()
296 } else if (s->session && s->ext.session_ticket != NULL in tls_construct_ctos_session_ticket()
444 if (s->ext.alpn == NULL || !SSL_IS_FIRST_HANDSHAKE(s)) in tls_construct_ctos_alpn()
1366 if (!s->hit) { in tls_parse_stoc_server_name()
1392 if (!s->hit) { in tls_parse_stoc_ec_pt_formats()
1694 if (!s->hit) { in tls_parse_stoc_alpn()
1788 if (!s->hit) in tls_parse_stoc_ems()
1898 if (!s->hit) { in tls_parse_stoc_key_share()
2087 s->session = s->psksession; in tls_parse_stoc_psk()
[all …]
H A Dstatem_dtls.c122 if (s->d1->mtu < dtls1_min_mtu(s)) in dtls1_do_write()
225 ret = dtls1_write_bytes(s, type, &s->init_buf->data[s->init_off], len, in dtls1_do_write()
263 || BIO_wpending(s->wbio) <= (int)s->d1->mtu); in dtls1_do_write()
298 s->msg_callback(1, s->version, type, s->init_buf->data, in dtls1_do_write()
374 s->init_msg = s->init_buf->data + DTLS1_HM_HEADER_LENGTH; in dtls_get_message()
411 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, in dtls_get_message_body()
849 s->init_msg = s->init_buf->data + 1; in dtls_get_reassembled_message()
917 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, in dtls_get_reassembled_message()
1060 if (!dtls1_is_timer_expired(s) || ossl_statem_in_error(s)) { in dtls1_read_failed()
1130 memcpy(frag->fragment, s->init_buf->data, s->init_num); in dtls1_buffer_message()
[all …]
H A Dextensions_srvr.c139 if (!s->hit || SSL_CONNECTION_IS_TLS13(s)) { in tls_parse_ctos_server_name()
168 s->servername_done = (s->session->ext.hostname != NULL) in tls_parse_ctos_server_name()
251 if (!s->hit) { in tls_parse_ctos_ec_pt_formats()
291 if (!s->hit && !tls1_save_sigalgs(s, &supported_sig_algs, 1)) { in tls_parse_ctos_sig_algs_cert()
310 if (!s->hit && !tls1_save_sigalgs(s, &supported_sig_algs, 0)) { in tls_parse_ctos_sig_algs()
326 if (s->hit) in tls_parse_ctos_status_request()
947 if (!s->hit || SSL_CONNECTION_IS_TLS13(s)) { in tls_parse_ctos_supported_groups()
1321 if (s->hit && !SSL_CONNECTION_IS_TLS13(s)) in tls_construct_stoc_server_name()
1446 if (!s->ext.ticket_expected || !tls_use_ticket(s)) { in tls_construct_stoc_session_ticket()
1763 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
[all …]
H A Dextensions.c696 s->ext.debug_cb(SSL_CONNECTION_GET_USER_SSL(s), !s->server, in tls_collect_extensions()
1035 if (SSL_IS_FIRST_HANDSHAKE(s) && sctx != s->session_ctx in final_server_name()
1095 if (s->server) in final_ec_pt_formats()
1183 if (!s->server || !SSL_CONNECTION_IS_TLS13(s)) in final_alpn()
1266 if (!s->server && s->hit) { in final_ems()
1334 if (s->server) in init_srtp()
1343 if (!sent && SSL_CONNECTION_IS_TLS13(s) && !s->hit) { in final_sig_algs()
1766 if (s->session && USE_MAX_FRAGMENT_LENGTH_EXT(s->session)) { in final_maxfragmentlen()
1767 s->rlayer.rrlmethod->set_max_frag_len(s->rlayer.rrl, in final_maxfragmentlen()
1769 s->rlayer.wrlmethod->set_max_frag_len(s->rlayer.wrl, in final_maxfragmentlen()
[all …]
H A Dstatem_local.h67 int ssl3_take_mac(SSL_CONNECTION *s);
70 int create_synthetic_message_hash(SSL_CONNECTION *s,
74 int parse_ca_names(SSL_CONNECTION *s, PACKET *pkt);
75 const STACK_OF(X509_NAME) *get_ca_names(SSL_CONNECTION *s);
88 int ossl_statem_client_construct_message(SSL_CONNECTION *s,
90 size_t ossl_statem_client_max_message_size(SSL_CONNECTION *s);
103 int ossl_statem_server_construct_message(SSL_CONNECTION *s,
114 __owur int dtls_get_message(SSL_CONNECTION *s, int *mt);
133 __owur WORK_STATE dtls_wait_for_dry(SSL_CONNECTION *s);
244 int ossl_gost18_cke_cipher_nid(const SSL_CONNECTION *s);
[all …]
/openssl/ssl/record/
H A Drec_layer_s3.c28 rl->s = s; in RECORD_LAYER_init()
136 if (!s->server) in ossl_get_max_early_data()
281 if (s == NULL) in ssl3_write_bytes()
297 && (len < (s->rlayer.wnum + s->rlayer.wpend_tot)))) { in ssl3_write_bytes()
421 if (s->max_pipelines > 0 && maxpipes > s->max_pipelines) in ssl3_write_bytes()
685 if (s->rlayer.curr_rec >= s->rlayer.num_recs) { in ssl3_read_bytes()
686 s->rlayer.curr_rec = s->rlayer.num_recs = 0; in ssl3_read_bytes()
688 rr = &s->rlayer.tlsrecs[s->rlayer.num_recs]; in ssl3_read_bytes()
705 rr = &s->rlayer.tlsrecs[s->rlayer.curr_rec]; in ssl3_read_bytes()
1478 s->rlayer.rrlmethod->set_protocol_version(s->rlayer.rrl, s->version); in ssl_set_record_protocol_version()
[all …]
/openssl/ssl/
H A Dtls_srp.c68 BN_free(s->srp_ctx.s); in ssl_srp_ctx_free_intern()
74 memset(&s->srp_ctx, 0, sizeof(s->srp_ctx)); in ssl_srp_ctx_free_intern()
118 ((s->srp_ctx.s = BN_dup(ctx->srp_ctx.s)) == NULL)) || in ssl_srp_ctx_init_intern()
150 BN_free(s->srp_ctx.s); in ssl_srp_ctx_init_intern()
211 (s->srp_ctx.s == NULL) || (s->srp_ctx.v == NULL)) in ssl_srp_server_param_with_username_intern()
223 SRP_Calc_B_ex(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, in ssl_srp_server_param_with_username_intern()
335 if ((u = SRP_Calc_u_ex(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N, in srp_generate_server_master_secret()
338 if ((K = SRP_Calc_server_key(s->srp_ctx.A, s->srp_ctx.v, u, s->srp_ctx.b, in srp_generate_server_master_secret()
369 || (u = SRP_Calc_u_ex(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N, in srp_generate_client_master_secret()
382 if ((x = SRP_Calc_x_ex(s->srp_ctx.s, s->srp_ctx.login, passwd, in srp_generate_client_master_secret()
[all …]
H A Dssl_sess.c745 if (s != NULL && s != c) { in SSL_CTX_add_session()
894 if (s->defltmeth != s->method) { in SSL_set_session()
934 SSL_SESSION_list_add(s->owner, s); in SSL_SESSION_set_timeout()
975 SSL_SESSION_list_add(s->owner, s); in SSL_SESSION_set_time_ex()
1267 if ((s->next == NULL) || (s->prev == NULL)) in SSL_SESSION_list_remove()
1287 s->next->prev = s->prev; in SSL_SESSION_list_remove()
1288 s->prev->next = s->next; in SSL_SESSION_list_remove()
1291 s->prev = s->next = NULL; in SSL_SESSION_list_remove()
1299 if ((s->next != NULL) && (s->prev != NULL)) in SSL_SESSION_list_add()
1314 s->next->prev = s; in SSL_SESSION_list_add()
[all …]
H A Dd1_lib.c69 if (s == NULL) in dtls1_new()
101 s->d1 = d1; in dtls1_new()
186 if (s->d1) { in dtls1_clear()
196 memset(s->d1, 0, sizeof(*s->d1)); in dtls1_clear()
202 s->d1->cookie_len = sizeof(s->d1->cookie); in dtls1_clear()
221 s->client_version = s->version = DTLS1_BAD_VER; in dtls1_clear()
361 dtls1_bio_set_next_timeout(s->rbio, s->d1); in dtls1_stop_timer()
399 s->d1->timeout_duration_us = s->d1->timer_cb(SSL_CONNECTION_GET_USER_SSL(s), in dtls1_handle_timeout()
898 if (s->d1->mtu < dtls1_min_mtu(s)) { in dtls1_query_mtu()
907 if (s->d1->mtu < dtls1_min_mtu(s)) { in dtls1_query_mtu()
[all …]
H A Dtls13_enc.c235 return tls13_generate_secret(s, ssl_handshake_md(s), s->early_secret, in tls13_generate_handshake_secret()
329 s->session->cipher = s->s3.tmp.new_cipher; in tls13_setup_key_block()
665 if (!tls13_hkdf_expand(s, ssl_handshake_md(s), insecret, in tls13_change_cipher_state()
689 if (!tls13_hkdf_expand(s, ssl_handshake_md(s), insecret, in tls13_change_cipher_state()
712 && !tls13_derive_finishedkey(s, ssl_handshake_md(s), secret, in tls13_change_cipher_state()
720 s->rlayer.wrlmethod->set_plain_alerts(s->rlayer.wrl, 1); in tls13_change_cipher_state()
722 s->rlayer.wrlmethod->set_plain_alerts(s->rlayer.wrl, 0); in tls13_change_cipher_state()
731 if (!ssl_set_new_record_layer(s, s->version, in tls13_change_cipher_state()
796 if (!ssl_set_new_record_layer(s, s->version, in tls13_update_key()
856 || !tls13_hkdf_expand(s, md, s->exporter_master_secret, in tls13_export_keying_material()
[all …]
H A Ds3_enc.c103 ciph = s->s3.tmp.new_sym_enc; in ssl3_change_cipher_state()
104 md = s->s3.tmp.new_hash; in ssl3_change_cipher_state()
114 p = s->s3.tmp.key_block; in ssl3_change_cipher_state()
173 if (!ssl_cipher_get_evp(SSL_CONNECTION_GET_CTX(s), s->session, &c, &hash, in ssl3_setup_key_block()
181 s->s3.tmp.new_sym_enc = c; in ssl3_setup_key_block()
183 s->s3.tmp.new_hash = hash; in ssl3_setup_key_block()
197 ssl3_cleanup_key_block(s); in ssl3_setup_key_block()
205 s->s3.tmp.key_block = p; in ssl3_setup_key_block()
215 OPENSSL_clear_free(s->s3.tmp.key_block, s->s3.tmp.key_block_length); in ssl3_cleanup_key_block()
216 s->s3.tmp.key_block = NULL; in ssl3_cleanup_key_block()
[all …]
H A Dssl_lib.c645 s->method->ssl_deinit(s); in ossl_ssl_connection_reset()
1397 s->method->ssl_free(s); in SSL_free()
2260 s = args->s; in ssl_io_intern()
2314 args.s = s; in ssl_read_internal()
2450 args.s = s; in ssl_peek_internal()
2538 args.s = s; in ssl_write_internal()
2762 args.s = s; in SSL_shutdown()
4853 SSL *s = args->s; in ssl_do_handshake_intern() local
4886 args.s = s; in SSL_do_handshake()
5261 s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio); in ssl_init_wbio_buffer()
[all …]
H A Dt1_enc.c94 ret = tls1_PRF(s, in tls1_generate_key_block()
134 m = s->s3.tmp.new_hash; in tls1_change_cipher_state()
196 if (s->ext.use_etm) in tls1_change_cipher_state()
213 if (s->ext.use_etm) in tls1_change_cipher_state()
234 if (!ssl_set_new_record_layer(s, s->version, direction, in tls1_change_cipher_state()
269 if (!ssl_cipher_get_evp(SSL_CONNECTION_GET_CTX(s), s->session, &c, &hash, in tls1_setup_key_block()
349 s->session->master_key, s->session->master_key_length, in tls1_final_finish_mac()
379 if (!tls1_PRF(s, in tls1_generate_master_secret()
392 if (!tls1_PRF(s, in tls1_generate_master_secret()
492 rv = tls1_PRF(s, in tls1_export_keying_material()
[all …]
/openssl/test/
H A Dbntests.pl29 my %s = @_;
34 my $a = bn($s{'A'});
35 my $b = bn($s{'B'});
40 my $a = bn($s{'A'});
45 my $a = bn($s{'A'});
46 my $n = bn($s{'N'});
51 my $a = bn($s{'A'});
52 my $n = bn($s{'N'});
81 $a = bn($s{'A'});
82 $b = bn($s{'B'});
[all …]
/openssl/test/testutil/
H A Dstanza.c23 memset(s, 0, sizeof(*s)); in test_start_file()
33 s->numtests, s->errors, s->numskip); in test_end_file()
34 BIO_free(s->fp); in test_end_file()
45 if (s->key == NULL) { in read_key()
54 s->curr++; in read_key()
88 PAIR *pp = s->pairs; in test_readstanza()
92 for (s->numpairs = 0; BIO_gets(s->fp, s->buff, sizeof(s->buff)); ) { in test_readstanza()
93 s->curr++; in test_readstanza()
127 s->start = s->curr; in test_readstanza()
149 PAIR *pp = s->pairs; in test_clearstanza()
[all …]
/openssl/crypto/aes/asm/
H A Daes-c64xplus.pl134 XOR $Te0[0],$s[0],$s[0]
135 || XOR $Te0[1],$s[1],$s[1]
195 || XOR $s[0],$Te2[2],$s[0]
196 || XOR $s[1],$Te2[3],$s[1]
201 || XOR $s[0],$Te1[2],$s[0]
202 || XOR $s[1],$Te3[3],$s[1]
203 XOR $s[2],$Te2[0],$s[2]
204 || XOR $s[3],$Te2[1],$s[3]
205 || XOR $s[0],$Te0[0],$s[0]
346 XOR $Td0[0],$s[0],$s[0]
[all …]
/openssl/include/internal/
H A Dquic_ssl.h22 __owur int ossl_quic_init(SSL *s);
23 void ossl_quic_deinit(SSL *s);
24 void ossl_quic_free(SSL *s);
25 int ossl_quic_reset(SSL *s);
26 int ossl_quic_clear(SSL *s);
27 __owur int ossl_quic_accept(SSL *s);
28 __owur int ossl_quic_connect(SSL *s);
49 int ossl_quic_do_handshake(SSL *s);
50 void ossl_quic_set_connect_state(SSL *s);
51 void ossl_quic_set_accept_state(SSL *s);
[all …]
H A Dsockets.h61 # define accept(s,f,l) ((int)accept(s,f,l)) argument
180 # define closesocket(s) close_s(s) argument
181 # define readsocket(s,b,n) read_s(s,b,n) argument
182 # define writesocket(s,b,n) send(s,b,n,0) argument
185 # define closesocket(s) close(s) argument
190 # define closesocket(s) close(s) argument
194 # define readsocket(s,b,n) read((s),(b),(n)) argument
195 # define writesocket(s,b,n) write((s),(b),(n)) argument
197 # define closesocket(s) close(s) argument
200 # define closesocket(s) close(s) argument
[all …]
/openssl/crypto/property/
H A Dproperty_parse.c115 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_number()
152 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_hex()
169 if (*s == '9' || *s == '8' || !ossl_isdigit(*s)) { in parse_oct()
181 } while (ossl_isdigit(*++s) && *s != '9' && *s != '8'); in parse_oct()
182 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_oct()
232 if (*s == '\0' || *s == ',') in parse_unquoted()
234 while (ossl_isprint(*s) && !ossl_isspace(*s) && *s != ',') { in parse_unquoted()
241 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_unquoted()
262 if (*s == '"' || *s == '\'') { in parse_value()
356 s = skip_space(s); in ossl_parse_property()
[all …]
/openssl/crypto/rc5/
H A Drc5_enc.c98 RC5_32_INT a, b, *s; in RC5_32_encrypt() local
100 s = key->data; in RC5_32_encrypt()
102 a = d[0] + s[0]; in RC5_32_encrypt()
103 b = d[1] + s[1]; in RC5_32_encrypt()
104 E_RC5_32(a, b, s, 2); in RC5_32_encrypt()
105 E_RC5_32(a, b, s, 4); in RC5_32_encrypt()
106 E_RC5_32(a, b, s, 6); in RC5_32_encrypt()
134 RC5_32_INT a, b, *s; in RC5_32_decrypt() local
136 s = key->data; in RC5_32_decrypt()
164 d[0] = a - s[0]; in RC5_32_decrypt()
[all …]
/openssl/demos/http3/
H A Dossl-nghttp3.c41 SSL_free(s->s); in h3_stream_free()
115 s->id = SSL_get_stream_id(s->s); in h3_conn_create_stream()
117 return s; in h3_conn_create_stream()
132 s->s = qstream; in h3_conn_accept_stream()
134 return s; in h3_conn_accept_stream()
487 if (s->buf_cur == s->buf_total) { in h3_conn_pump_stream()
489 ec = SSL_read_ex(s->s, s->buf, sizeof(s->buf), &num_bytes); in h3_conn_pump_stream()
529 if (s->buf_cur == s->buf_total) in h3_conn_pump_stream()
538 ec = nghttp3_conn_read_stream(conn->h3conn, s->id, s->buf + s->buf_cur, in h3_conn_pump_stream()
555 assert(consumed <= s->buf_total - s->buf_cur); in h3_conn_pump_stream()
[all …]

Completed in 153 milliseconds

12345678910>>...35