Home
last modified time | relevance | path

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

12345678910>>...29

/openssl-master/ssl/statem/
A Dstatem.c83 return !(s->statem.in_init) && (s->statem.hand_state == TLS_ST_OK); in SSL_is_init_finished()
122 if (s->statem.in_init && s->statem.state == MSG_FLOW_ERROR) in ossl_statem_send_fatal()
199 if (!s->server in ossl_statem_skip_early_data()
332 if (!SSL_in_init(s) || SSL_in_before(s)) { in state_machine()
341 if (SSL_IS_DTLS(s) && BIO_dgram_is_sctp(SSL_get_wbio(s))) { in state_machine()
361 if (SSL_IS_FIRST_HANDSHAKE(s) || !SSL_IS_TLS13(s)) in state_machine()
475 if (SSL_IS_DTLS(s) && BIO_dgram_is_sctp(SSL_get_wbio(s))) { in state_machine()
507 size_t msg_offset = (char *)s->init_msg - s->init_buf->data; in grow_init_buf()
515 s->init_msg = s->init_buf->data + msg_offset; in grow_init_buf()
609 if (s->s3.tmp.message_size > max_message_size(s)) { in read_state_machine()
[all …]
A Dstatem_srvr.c532 } else if (s->hit || s->num_tickets <= s->sent_tickets) { in ossl_statem_server13_write_transition()
852 if (SSL_IS_DTLS(s) && s->hit) { in ossl_statem_server_post_work()
1292 s->ctx->app_gen_cookie_cb(s, s->d1->cookie, in dtls_construct_hello_verify_request()
1816 if (!SSL_IS_TLS13(s) && s->hit) { in tls_early_post_process_client_hello()
1896 if (s->ext.session_secret_cb(s, s->session->master_key, in tls_early_post_process_client_hello()
2018 if (!s->hit || SSL_IS_TLS13(s)) { in tls_early_post_process_client_hello()
2081 ret = s->ctx->ext.status_cb(s, s->ctx->ext.status_arg); in tls_handle_status_request()
2202 int rv = s->cert->cert_cb(s, s->cert->cert_cb_arg); in tls_post_process_client_hello()
2556 (s->srp_ctx.s == NULL) || (s->srp_ctx.B == NULL)) { in tls_construct_server_key_exchange()
2562 r[2] = s->srp_ctx.s; in tls_construct_server_key_exchange()
[all …]
A Dstatem_lib.c48 ret = ssl3_write_bytes(s, type, &s->init_buf->data[s->init_off], in ssl3_do_write()
67 s->msg_callback(1, s->version, type, s->init_buf->data, in ssl3_do_write()
68 (size_t)(s->init_off + s->init_num), s, in ssl3_do_write()
549 if (!s->server && SSL_IS_TLS13(s) && s->s3.tmp.cert_req == 1) in tls_process_cert_verify()
1073 if (SSL_IS_TLS13(s) && !s->server in tls_finish_handshake()
1247 s->init_msg = s->init_buf->data; in tls_get_message_header()
1279 n = s->s3.tmp.message_size - s->init_num; in tls_get_message_body()
1312 (size_t)s->init_num, s, s->msg_callback_arg); in tls_get_message_body()
1338 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, s->init_buf->data, in tls_get_message_body()
1630 if (s->version == s->ctx->method->version) in ssl_check_version_downgrade()
[all …]
A Dstatem_clnt.c611 if (!SSL_IS_DTLS(s) && s->s3.npn_seen) in ossl_statem_client_write_transition()
1534 if (s->ext.session_secret_cb(s, s->session->master_key, in tls_process_server_hello()
1557 || memcmp(s->session->sid_ctx, s->sid_ctx, s->sid_ctx_length)) { in tls_process_server_hello()
1579 s->session->ssl_version = s->version; in tls_process_server_hello()
1605 s->s3.tmp.min_ver = s->version; in tls_process_server_hello()
1606 s->s3.tmp.max_ver = s->version; in tls_process_server_hello()
1657 if (SSL_IS_DTLS(s) && s->hit) { in tls_process_server_hello()
1992 || (s->srp_ctx.s = in tls_process_ske_srp()
2690 int ret = s->ctx->ext.status_cb(s, s->ctx->ext.status_arg); in tls_process_initial_server_flight()
2763 psklen = s->psk_client_callback(s, s->session->psk_identity_hint, in tls_construct_cke_psk_preamble()
[all …]
A Dextensions.c635 s->ext.debug_cb(s, !s->server, thisex->type, in tls_collect_extensions()
924 ret = s->ctx->ext.servername_cb(s, &altmp, in final_server_name()
927 ret = s->session_ctx->ext.servername_cb(s, &altmp, in final_server_name()
955 if (SSL_IS_FIRST_HANDSHAKE(s) && s->ctx != s->session_ctx in final_server_name()
1102 if (!s->server || !SSL_IS_TLS13(s)) in final_alpn()
1184 if (!s->server && s->hit) { in final_ems()
1260 if (!sent && SSL_IS_TLS13(s) && !s->hit) { in final_sig_algs()
1642 && !s->allow_early_data_cb(s, in final_early_data()
1664 if (s->server && s->hit && USE_MAX_FRAGMENT_LENGTH_EXT(s->session) in final_maxfragmentlen()
1671 if (s->session && USE_MAX_FRAGMENT_LENGTH_EXT(s->session) in final_maxfragmentlen()
[all …]
A Dextensions_clnt.c20 if (!s->renegotiate) in tls_construct_ctos_renegotiate()
263 if (!s->new_session && s->session != NULL in tls_construct_ctos_session_ticket()
267 } else if (s->session && s->ext.session_ticket != NULL in tls_construct_ctos_session_ticket()
412 if (s->ext.alpn == NULL || !SSL_IS_FIRST_HANDSHAKE(s)) in tls_construct_ctos_alpn()
1008 mdres = ssl_md(s->ctx, s->session->cipher->algorithm2); in tls_construct_ctos_psk()
1081 mdpsk = ssl_md(s->ctx, s->psksession->cipher->algorithm2); in tls_construct_ctos_psk()
1363 !s->ext.session_ticket_cb(s, PACKET_data(pkt), in tls_parse_stoc_session_ticket()
1532 if (s->ctx->ext.npn_select_cb(s, &selected, &selected_len, in tls_parse_stoc_npn()
1693 if (!s->hit) in tls_parse_stoc_ems()
1965 s->session = s->psksession; in tls_parse_stoc_psk()
[all …]
A Dstatem_dtls.c123 if (s->d1->mtu < dtls1_min_mtu(s)) in dtls1_do_write()
242 ret = dtls1_write_bytes(s, type, &s->init_buf->data[s->init_off], len, in dtls1_do_write()
305 s->msg_callback(1, s->version, type, s->init_buf->data, in dtls1_do_write()
306 (size_t)(s->init_off + s->init_num), s, in dtls1_do_write()
359 p, 1, s, s->msg_callback_arg); in dtls_get_message()
380 s->init_msg = s->init_buf->data + DTLS1_HM_HEADER_LENGTH; in dtls_get_message()
417 s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, in dtls_get_message_body()
419 s, s->msg_callback_arg); in dtls_get_message_body()
610 i = s->method->ssl_read_bytes(s, SSL3_RT_HANDSHAKE, NULL, in dtls1_reassemble_fragment()
795 s->init_msg = s->init_buf->data + 1; in dtls_get_reassembled_message()
[all …]
A Dextensions_srvr.c129 if (!s->hit || SSL_IS_TLS13(s)) { in tls_parse_ctos_server_name()
158 s->servername_done = (s->session->ext.hostname != NULL) in tls_parse_ctos_server_name()
188 if (s->hit && s->session->ext.max_fragment_len_mode != value) { in tls_parse_ctos_maxfragmentlen()
234 if (!s->hit) { in tls_parse_ctos_ec_pt_formats()
250 !s->ext.session_ticket_cb(s, PACKET_data(pkt), in tls_parse_ctos_session_ticket()
307 if (s->hit) in tls_parse_ctos_status_request()
900 if (!s->hit || SSL_IS_TLS13(s)) { in tls_parse_ctos_supported_groups()
1263 if (s->hit && !SSL_IS_TLS13(s)) in tls_construct_stoc_server_name()
1388 if (!s->ext.ticket_expected || !tls_use_ticket(s)) { in tls_construct_stoc_session_ticket()
1455 ret = s->ctx->ext.npn_advertised_cb(s, &npa, &npalen, in tls_construct_stoc_next_proto_neg()
[all …]
A Dstatem_local.h57 typedef int (*confunc_f) (SSL *s, WPACKET *pkt);
59 int ssl3_take_mac(SSL *s);
65 int parse_ca_names(SSL *s, PACKET *pkt);
66 const STACK_OF(X509_NAME) *get_ca_names(SSL *s);
80 size_t ossl_statem_client_max_message_size(SSL *s);
93 size_t ossl_statem_server_max_message_size(SSL *s);
100 __owur int dtls_get_message(SSL *s, int *mt);
115 __owur WORK_STATE dtls_wait_for_dry(SSL *s);
136 __owur int ssl3_check_cert_and_algorithm(SSL *s);
165 int ossl_gost18_cke_cipher_nid(const SSL *s);
[all …]
/openssl-master/ssl/
A Dtls_srp.c68 BN_free(s->srp_ctx.s); in ssl_srp_ctx_free_intern()
115 ((s->srp_ctx.s = BN_dup(ctx->srp_ctx.s)) == NULL)) || in ssl_srp_ctx_init_intern()
147 BN_free(s->srp_ctx.s); in ssl_srp_ctx_init_intern()
203 (s->srp_ctx.s == NULL) || (s->srp_ctx.v == NULL)) in ssl_srp_server_param_with_username_intern()
214 SRP_Calc_B_ex(s->srp_ctx.b, s->srp_ctx.N, s->srp_ctx.g, in ssl_srp_server_param_with_username_intern()
238 BN_clear_free(s->srp_ctx.s); in SSL_set_srp_server_param_pw()
239 s->srp_ctx.s = NULL; in SSL_set_srp_server_param_pw()
270 if (s->srp_ctx.s != NULL) { in SSL_set_srp_server_param()
295 !(s->srp_ctx.g) || !(s->srp_ctx.s) || !(s->srp_ctx.v)) in SSL_set_srp_server_param()
355 if ((x = SRP_Calc_x_ex(s->srp_ctx.s, s->srp_ctx.login, passwd, in srp_generate_client_master_secret()
[all …]
A Dd1_lib.c100 s->d1 = d1; in dtls1_new()
102 if (!s->method->ssl_clear(s)) in dtls1_new()
174 memset(s->d1, 0, sizeof(*s->d1)); in dtls1_clear()
180 s->d1->cookie_len = sizeof(s->d1->cookie); in dtls1_clear()
199 s->client_version = s->version = DTLS1_BAD_VER; in dtls1_clear()
202 s->version = s->method->version; in dtls1_clear()
262 s->d1->timeout_duration_us = s->d1->timer_cb(s, 0); in dtls1_start_timer()
396 s->d1->timeout_duration_us = s->d1->timer_cb(s, s->d1->timeout_duration_us); in dtls1_handle_timeout()
894 if (s->d1->mtu < dtls1_min_mtu(s)) { in dtls1_query_mtu()
903 if (s->d1->mtu < dtls1_min_mtu(s)) { in dtls1_query_mtu()
[all …]
A Dssl_sess.c723 if (s != NULL && s != c) { in SSL_CTX_add_session()
862 if (s->ctx->method != s->method) { in SSL_set_session()
901 SSL_SESSION_list_add(s->owner, s); in SSL_SESSION_set_timeout()
935 SSL_SESSION_list_add(s->owner, s); in SSL_SESSION_set_time()
1196 if ((s->next == NULL) || (s->prev == NULL)) in SSL_SESSION_list_remove()
1216 s->next->prev = s->prev; in SSL_SESSION_list_remove()
1217 s->prev->next = s->next; in SSL_SESSION_list_remove()
1220 s->prev = s->next = NULL; in SSL_SESSION_list_remove()
1228 if ((s->next != NULL) && (s->prev != NULL)) in SSL_SESSION_list_add()
1243 s->next->prev = s; in SSL_SESSION_list_add()
[all …]
A Dssl_lib.c633 s->method->ssl_free(s); in SSL_clear()
821 if (!s->method->ssl_new(s)) in SSL_new()
1287 s->wbio = BIO_push(s->bbio, s->wbio); in SSL_set0_wbio()
1757 return s->async_cb(s, s->async_cb_arg); in ssl_async_wait_ctx_cb()
1804 s = args->s; in ssl_io_intern()
1845 args.s = s; in ssl_read_internal()
1963 args.s = s; in ssl_peek_internal()
2035 args.s = s; in ssl_write_internal()
2233 args.s = s; in SSL_shutdown()
3867 s = args->s; in ssl_do_handshake_intern()
[all …]
A Ds3_msg.c16 if (s->server) in ssl3_do_change_cipher_spec()
22 if (s->session == NULL || s->session->master_key_length == 0) { in ssl3_do_change_cipher_spec()
28 s->session->cipher = s->s3.tmp.new_cipher; in ssl3_do_change_cipher_spec()
29 if (!s->method->ssl3_enc->setup_key_block(s)) { in ssl3_do_change_cipher_spec()
35 if (!s->method->ssl3_enc->change_cipher_state(s, i)) { in ssl3_do_change_cipher_spec()
59 SSL_CTX_remove_session(s->session_ctx, s->session); in ssl3_send_alert()
66 return s->method->ssl_dispatch_alert(s); in ssl3_send_alert()
84 i = do_ssl3_write(s, SSL3_RT_ALERT, &s->s3.send_alert[0], &alertlen, 1, 0, in ssl3_dispatch_alert()
96 s->msg_callback(1, s->version, SSL3_RT_ALERT, s->s3.send_alert, in ssl3_dispatch_alert()
97 2, s, s->msg_callback_arg); in ssl3_dispatch_alert()
[all …]
A Ds3_enc.c32 md5 = ssl_evp_md_fetch(s->ctx->libctx, NID_md5, s->ctx->propq); in ssl3_generate_key_block()
33 sha1 = ssl_evp_md_fetch(s->ctx->libctx, NID_sha1, s->ctx->propq); in ssl3_generate_key_block()
103 c = s->s3.tmp.new_sym_enc; in ssl3_change_cipher_state()
104 m = s->s3.tmp.new_hash; in ssl3_change_cipher_state()
129 dd = s->enc_read_ctx; in ssl3_change_cipher_state()
138 s->expand = NULL; in ssl3_change_cipher_state()
171 s->compress = NULL; in ssl3_change_cipher_state()
188 p = s->s3.tmp.key_block; in ssl3_change_cipher_state()
252 if (!ssl_cipher_get_evp(s->ctx, s->session, &c, &hash, NULL, NULL, &comp, in ssl3_setup_key_block()
284 s->s3.tmp.key_block = p; in ssl3_setup_key_block()
[all …]
A Dtls13_enc.c232 return tls13_generate_secret(s, ssl_handshake_md(s), s->early_secret, in tls13_generate_handshake_secret()
284 if (!tls13_derive_finishedkey(s, ssl_handshake_md(s), in tls13_final_finish_mac()
291 if (!EVP_Q_mac(s->ctx->libctx, "HMAC", s->ctx->propq, mdname, in tls13_final_finish_mac()
313 s->session->cipher = s->s3.tmp.new_cipher; in tls13_setup_key_block()
632 if (!tls13_hkdf_expand(s, ssl_handshake_md(s), insecret, in tls13_change_cipher_state()
656 if (!tls13_hkdf_expand(s, ssl_handshake_md(s), insecret, in tls13_change_cipher_state()
679 && !tls13_derive_finishedkey(s, ssl_handshake_md(s), secret, in tls13_change_cipher_state()
708 bio = s->wbio; in tls13_change_cipher_state()
773 if (!derive_secret_key_and_iv(s, sending, ssl_handshake_md(s), in tls13_update_key()
829 || !tls13_hkdf_expand(s, md, s->exporter_master_secret, in tls13_export_keying_material()
[all …]
A Dt1_enc.c25 static int tls1_PRF(SSL *s, in tls1_PRF() argument
48 kdf = EVP_KDF_fetch(s->ctx->libctx, OSSL_KDF_NAME_TLS1_PRF, s->ctx->propq); in tls1_PRF()
91 ret = tls1_PRF(s, in tls1_generate_key_block()
288 if (s->enc_write_ctx != NULL && !SSL_IS_DTLS(s)) { in tls1_change_cipher_state()
403 if (s->s3.tmp. in tls1_change_cipher_state()
437 if (s->compress || (s->options & SSL_OP_ENABLE_KTLS) == 0) in tls1_change_cipher_state()
449 bio = s->wbio; in tls1_change_cipher_state()
536 if (!ssl_cipher_get_evp(s->ctx, s->session, &c, &hash, &mac_type, in tls1_setup_key_block()
628 s->session->master_key, s->session->master_key_length, in tls1_final_finish_mac()
761 rv = tls1_PRF(s, in tls1_export_keying_material()
[all …]
/openssl-master/ssl/record/
A Drec_layer_s3.c31 rl->s = s; in RECORD_LAYER_init()
274 if (!BIO_get_ktls_recv(s->rbio) && !s->rlayer.read_ahead in ssl3_read_n()
401 if (SSL_in_init(s) && !ossl_statem_get_in_handshake(s) in ssl3_write_bytes()
403 i = s->handshake_func(s); in ssl3_write_bytes()
484 i = s->method->ssl_dispatch_alert(s); in ssl3_write_bytes()
698 i = s->method->ssl_dispatch_alert(s); in do_ssl3_write()
831 if (s->enc_write_ctx && SSL_USE_EXPLICIT_IV(s) && !SSL_TREAT_AS_TLS13(s)) { in do_ssl3_write()
955 padding = s->record_padding_cb(s, type, rlen, s->record_padding_arg); in do_ssl3_write()
1325 i = s->handshake_func(s); in ssl3_read_bytes()
1545 s->msg_callback(0, s->version, SSL3_RT_ALERT, alert_bytes, 2, s, in ssl3_read_bytes()
[all …]
A Drec_layer_d1.c183 memset(&s->rlayer.rbuf, 0, sizeof(s->rlayer.rbuf)); in dtls1_buffer_record()
184 memset(&s->rlayer.rrec, 0, sizeof(s->rlayer.rrec)); in dtls1_buffer_record()
308 s->rlayer.d->processed_rcds.epoch = s->rlayer.d->r_epoch; in dtls1_process_buffered_records()
366 if (!ossl_statem_get_in_handshake(s) && SSL_in_init(s)) { in dtls1_read_bytes()
368 i = s->handshake_func(s); in dtls1_read_bytes()
567 s->msg_callback(0, s->version, SSL3_RT_ALERT, alert_bytes, 2, s, in dtls1_read_bytes()
618 SSL_CTX_remove_session(s->session_ctx, s->session); in dtls1_read_bytes()
712 i = s->handshake_func(s); in dtls1_read_bytes()
816 i = s->method->ssl_dispatch_alert(s); in do_dtls1_write()
918 if (!s->method->ssl3_enc->mac(s, &wr, in do_dtls1_write()
[all …]
A Dssl3_record.c124 if (!s->server) in early_data_count_ok()
253 if (s->server && RECORD_LAYER_is_first_record(&s->rlayer) in ssl3_get_record()
289 s->msg_callback(0, 0, SSL3_RT_HEADER, p, 5, s, in ssl3_get_record()
308 if (!s->first_packet && !SSL_IS_TLS13(s) in ssl3_get_record()
312 && !s->enc_write_ctx && !s->write_hash) { in ssl3_get_record()
364 if (SSL_IS_TLS13(s) && s->enc_read_ctx != NULL) { in ssl3_get_record()
541 if (SSL_READ_ETM(s) && s->read_hash) { in ssl3_get_record()
1544 if (SSL_READ_ETM(s) && s->read_hash) { in dtls1_process_record()
1735 s, s->msg_callback_arg); in dtls1_get_record()
1897 s->rlayer.packet = RECORD_LAYER_get_rbuf(&s->rlayer)->buf; in dtls_buffer_listen_record()
[all …]
/openssl-master/test/testutil/
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()
151 PAIR *pp = s->pairs; in test_clearstanza()
[all …]
/openssl-master/test/
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-master/crypto/aes/asm/
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-master/crypto/property/
A Dproperty_parse.c105 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_number()
130 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_hex()
146 if (*s == '9' || *s == '8' || !ossl_isdigit(*s)) in parse_oct()
150 } while (ossl_isdigit(*++s) && *s != '9' && *s != '8'); in parse_oct()
151 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_oct()
201 if (*s == '\0' || *s == ',') in parse_unquoted()
203 while (ossl_isprint(*s) && !ossl_isspace(*s) && *s != ',') { in parse_unquoted()
210 if (!ossl_isspace(*s) && *s != '\0' && *s != ',') { in parse_unquoted()
232 if (*s == '"' || *s == '\'') { in parse_value()
326 s = skip_space(s); in ossl_parse_property()
[all …]
/openssl-master/include/internal/
A Dsockets.h57 # define accept(s,f,l) ((int)accept(s,f,l)) argument
132 # define readsocket(s,b,n) recv((s),(b),(n),0) argument
137 # define closesocket(s) close_s(s) argument
138 # define readsocket(s,b,n) read_s(s,b,n) argument
139 # define writesocket(s,b,n) send(s,b,n,0) argument
142 # define closesocket(s) close(s) argument
147 # define closesocket(s) close(s) argument
156 # define readsocket(s,b,n) read((s),(b),(n)) argument
160 # define closesocket(s) close(s) argument
163 # define closesocket(s) close(s) argument
[all …]

Completed in 152 milliseconds

12345678910>>...29