Home
last modified time | relevance | path

Searched defs:ssl (Results 1 – 25 of 93) sorted by relevance

1234

/external/boringssl/src/ssl/
Dssl_lib.c365 SSL *ssl = OPENSSL_malloc(sizeof(SSL)); in SSL_new() local
462 void SSL_free(SSL *ssl) { in SSL_free()
499 void SSL_set_connect_state(SSL *ssl) { in SSL_set_connect_state()
504 void SSL_set_accept_state(SSL *ssl) { in SSL_set_accept_state()
509 void SSL_set0_rbio(SSL *ssl, BIO *rbio) { in SSL_set0_rbio()
514 void SSL_set0_wbio(SSL *ssl, BIO *wbio) { in SSL_set0_wbio()
519 void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio) { in SSL_set_bio()
553 BIO *SSL_get_rbio(const SSL *ssl) { return ssl->rbio; } in SSL_get_rbio()
555 BIO *SSL_get_wbio(const SSL *ssl) { return ssl->wbio; } in SSL_get_wbio()
557 void ssl_reset_error_state(SSL *ssl) { in ssl_reset_error_state()
[all …]
Dssl_buffer.c80 static int setup_read_buffer(SSL *ssl) { in setup_read_buffer()
98 uint8_t *ssl_read_buffer(SSL *ssl) { in ssl_read_buffer()
102 size_t ssl_read_buffer_len(const SSL *ssl) { in ssl_read_buffer_len()
106 static int dtls_read_buffer_next_packet(SSL *ssl) { in dtls_read_buffer_next_packet()
127 static int tls_read_buffer_extend_to(SSL *ssl, size_t len) { in tls_read_buffer_extend_to()
153 int ssl_read_buffer_extend_to(SSL *ssl, size_t len) { in ssl_read_buffer_extend_to()
182 void ssl_read_buffer_consume(SSL *ssl, size_t len) { in ssl_read_buffer_consume()
195 void ssl_read_buffer_discard(SSL *ssl) { in ssl_read_buffer_discard()
201 void ssl_read_buffer_clear(SSL *ssl) { in ssl_read_buffer_clear()
206 int ssl_write_buffer_is_pending(const SSL *ssl) { in ssl_write_buffer_is_pending()
[all …]
Dd1_lib.c80 int dtls1_new(SSL *ssl) { in dtls1_new()
104 void dtls1_free(SSL *ssl) { in dtls1_free()
118 void DTLSv1_set_initial_timeout_duration(SSL *ssl, unsigned int duration_ms) { in DTLSv1_set_initial_timeout_duration()
122 void dtls1_start_timer(SSL *ssl) { in dtls1_start_timer()
140 int DTLSv1_get_timeout(const SSL *ssl, struct timeval *out) { in DTLSv1_get_timeout()
190 int dtls1_is_timer_expired(SSL *ssl) { in dtls1_is_timer_expired()
207 void dtls1_double_timeout(SSL *ssl) { in dtls1_double_timeout()
215 void dtls1_stop_timer(SSL *ssl) { in dtls1_stop_timer()
225 int dtls1_check_timeout_num(SSL *ssl) { in dtls1_check_timeout_num()
246 int DTLSv1_handle_timeout(SSL *ssl) { in DTLSv1_handle_timeout()
Ds3_both.c133 SSL_HANDSHAKE *ssl_handshake_new(SSL *ssl) { in ssl_handshake_new()
190 int ssl_check_message_type(SSL *ssl, int type) { in ssl_check_message_type()
202 static int add_record_to_flight(SSL *ssl, uint8_t type, const uint8_t *in, in add_record_to_flight()
233 int ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in ssl3_init_message()
246 int ssl3_finish_message(SSL *ssl, CBB *cbb, uint8_t **out_msg, in ssl3_finish_message()
256 int ssl3_add_message(SSL *ssl, uint8_t *msg, size_t len) { in ssl3_add_message()
287 int ssl3_add_change_cipher_spec(SSL *ssl) { in ssl3_add_change_cipher_spec()
300 int ssl3_add_alert(SSL *ssl, uint8_t level, uint8_t desc) { in ssl3_add_alert()
311 int ssl_add_message_cbb(SSL *ssl, CBB *cbb) { in ssl_add_message_cbb()
322 int ssl3_flush_flight(SSL *ssl) { in ssl3_flush_flight()
[all …]
Dd1_both.c259 static int dtls1_is_current_message_complete(const SSL *ssl) { in dtls1_is_current_message_complete()
270 SSL *ssl, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message()
302 static int dtls1_process_handshake_record(SSL *ssl) { in dtls1_process_handshake_record()
397 int dtls1_get_message(SSL *ssl) { in dtls1_get_message()
431 void dtls1_get_current_message(const SSL *ssl, CBS *out) { in dtls1_get_current_message()
439 void dtls1_release_current_message(SSL *ssl, int free_buffer) { in dtls1_release_current_message()
454 void dtls_clear_incoming_messages(SSL *ssl) { in dtls_clear_incoming_messages()
461 int dtls_has_incoming_messages(const SSL *ssl) { in dtls_has_incoming_messages()
495 void dtls_clear_outgoing_messages(SSL *ssl) { in dtls_clear_outgoing_messages()
505 int dtls1_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in dtls1_init_message()
[all …]
Ds3_pkt.c130 static int ssl3_get_record(SSL *ssl) { in ssl3_get_record()
191 int ssl3_write_app_data(SSL *ssl, const uint8_t *buf, int len) { in ssl3_write_app_data()
238 static int ssl3_write_pending(SSL *ssl, int type, const uint8_t *buf, in ssl3_write_pending()
256 static int do_ssl3_write(SSL *ssl, int type, const uint8_t *buf, unsigned len) { in do_ssl3_write()
303 static int consume_record(SSL *ssl, uint8_t *out, int len, int peek) { in consume_record()
326 int ssl3_read_app_data(SSL *ssl, int *out_got_handshake, uint8_t *buf, int len, in ssl3_read_app_data()
407 int ssl3_read_change_cipher_spec(SSL *ssl) { in ssl3_read_change_cipher_spec()
437 void ssl3_read_close_notify(SSL *ssl) { in ssl3_read_close_notify()
444 int ssl3_read_handshake_bytes(SSL *ssl, uint8_t *buf, int len) { in ssl3_read_handshake_bytes()
470 int ssl3_send_alert(SSL *ssl, int level, int desc) { in ssl3_send_alert()
[all …]
Dtls13_client.c51 SSL *const ssl = hs->ssl; in do_process_hello_retry_request() local
148 SSL *const ssl = hs->ssl; in do_send_second_client_hello() local
161 SSL *const ssl = hs->ssl; in do_process_server_hello() local
332 SSL *const ssl = hs->ssl; in do_process_encrypted_extensions() local
388 SSL *const ssl = hs->ssl; in do_process_certificate_request() local
446 SSL *const ssl = hs->ssl; in do_process_server_certificate() local
459 SSL *const ssl = hs->ssl; in do_process_server_certificate_verify() local
471 SSL *const ssl = hs->ssl; in do_process_server_finished() local
487 SSL *const ssl = hs->ssl; in do_send_end_of_early_data() local
506 SSL *const ssl = hs->ssl; in do_send_client_certificate() local
[all …]
Dtls13_server.c60 SSL *const ssl = hs->ssl; in resolve_ecdhe_secret() local
94 const SSL *ssl, const SSL_CLIENT_HELLO *client_hello) { in choose_tls13_cipher()
140 SSL *const ssl = hs->ssl; in add_new_session_tickets() local
204 SSL *const ssl = hs->ssl; in do_select_parameters() local
244 SSL *const ssl = hs->ssl; in select_session() local
331 SSL *const ssl = hs->ssl; in do_select_session() local
461 SSL *const ssl = hs->ssl; in do_send_hello_retry_request() local
482 SSL *const ssl = hs->ssl; in do_process_second_client_hello() local
515 SSL *const ssl = hs->ssl; in do_send_server_hello() local
624 SSL *const ssl = hs->ssl; in do_send_server_finished() local
[all …]
Dssl_privkey.c95 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa) { in SSL_use_RSAPrivateKey()
119 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) { in SSL_use_PrivateKey()
128 int SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const uint8_t *der, in SSL_use_PrivateKey_ASN1()
213 void SSL_set_private_key_method(SSL *ssl, in SSL_set_private_key_method()
244 int SSL_set_signing_algorithm_prefs(SSL *ssl, const uint16_t *prefs, in SSL_set_signing_algorithm_prefs()
249 int SSL_set_private_key_digest_prefs(SSL *ssl, const int *digest_nids, in SSL_set_private_key_digest_prefs()
297 int ssl_has_private_key(const SSL *ssl) { in ssl_has_private_key()
313 int ssl_private_key_type(SSL *ssl) { in ssl_private_key_type()
328 size_t ssl_private_key_max_signature_len(SSL *ssl) { in ssl_private_key_max_signature_len()
360 static int ssl_sign_rsa_pkcs1(SSL *ssl, uint8_t *out, size_t *out_len, in ssl_sign_rsa_pkcs1()
[all …]
Dhandshake_client.c189 SSL *const ssl = hs->ssl; in ssl3_connect() local
532 uint16_t ssl_get_grease_value(const SSL *ssl, enum ssl_grease_index_t index) { in ssl_get_grease_value()
546 static void ssl_get_client_disabled(SSL *ssl, uint32_t *out_mask_a, in ssl_get_client_disabled()
592 static int ssl_write_client_cipher_list(SSL *ssl, CBB *out, in ssl_write_client_cipher_list()
672 SSL *const ssl = hs->ssl; in ssl_write_client_hello() local
735 SSL *const ssl = hs->ssl; in ssl3_send_client_hello() local
793 SSL *const ssl = hs->ssl; in dtls1_get_hello_verify() local
835 SSL *const ssl = hs->ssl; in ssl3_get_server_hello() local
1045 SSL *const ssl = hs->ssl; in ssl3_get_server_certificate() local
1116 SSL *const ssl = hs->ssl; in ssl3_get_cert_status() local
[all …]
Dssl_x509.c161 static void check_ssl_x509_method(const SSL *ssl) { in check_ssl_x509_method()
171 X509 *SSL_get_peer_certificate(const SSL *ssl) { in SSL_get_peer_certificate()
236 int SSL_set_purpose(SSL *ssl, int purpose) { in SSL_set_purpose()
246 int SSL_set_trust(SSL *ssl, int trust) { in SSL_set_trust()
256 int SSL_set1_param(SSL *ssl, const X509_VERIFY_PARAM *param) { in SSL_set1_param()
266 X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl) { in SSL_get0_param()
271 int SSL_get_verify_depth(const SSL *ssl) { in SSL_get_verify_depth()
276 int (*SSL_get_verify_callback(const SSL *ssl))(int, X509_STORE_CTX *) { in SSL_get_verify_callback()
297 void SSL_set_verify(SSL *ssl, int mode, in SSL_set_verify()
306 void SSL_set_verify_depth(SSL *ssl, int depth) { in SSL_set_verify_depth()
[all …]
Dhandshake_server.c202 SSL *const ssl = hs->ssl; in ssl3_accept() local
540 SSL *const ssl = hs->ssl; in negotiate_version() local
687 SSL *const ssl = hs->ssl; in ssl_get_compatible_server_ciphers() local
730 SSL *const ssl = hs->ssl; in ssl3_choose_cipher() local
807 SSL *const ssl = hs->ssl; in ssl3_process_client_hello() local
873 SSL *const ssl = hs->ssl; in ssl3_select_certificate() local
919 SSL *const ssl = hs->ssl; in ssl3_select_parameters() local
1055 SSL *const ssl = hs->ssl; in ssl3_send_server_hello() local
1110 SSL *const ssl = hs->ssl; in ssl3_send_server_certificate() local
1123 SSL *const ssl = hs->ssl; in ssl3_send_certificate_status() local
[all …]
Dt1_lib.c205 int ssl_client_hello_init(SSL *ssl, SSL_CLIENT_HELLO *out, const uint8_t *in, in ssl_client_hello_init()
312 void tls1_get_grouplist(SSL *ssl, const uint16_t **out_group_ids, in tls1_get_grouplist()
323 SSL *const ssl = hs->ssl; in tls1_get_shared_group() local
429 int tls1_check_group_id(SSL *ssl, uint16_t group_id) { in tls1_check_group_id()
511 size_t tls12_get_verify_sigalgs(const SSL *ssl, const uint16_t **out) { in tls12_get_verify_sigalgs()
516 int tls12_check_peer_sigalg(SSL *ssl, int *out_alert, uint16_t sigalg) { in tls12_check_peer_sigalg()
585 SSL *const ssl = hs->ssl; in ext_sni_add_clienthello() local
607 SSL *const ssl = hs->ssl; in ext_sni_parse_serverhello() local
691 SSL *const ssl = hs->ssl; in ext_ri_add_clienthello() local
720 SSL *const ssl = hs->ssl; in ext_ri_parse_serverhello() local
[all …]
Dd1_pkt.c129 int dtls1_get_record(SSL *ssl) { in dtls1_get_record()
205 int dtls1_read_app_data(SSL *ssl, int *out_got_handshake, uint8_t *buf, int len, in dtls1_read_app_data()
288 int dtls1_read_change_cipher_spec(SSL *ssl) { in dtls1_read_change_cipher_spec()
328 void dtls1_read_close_notify(SSL *ssl) { in dtls1_read_close_notify()
338 int dtls1_write_app_data(SSL *ssl, const uint8_t *buf, int len) { in dtls1_write_app_data()
363 int dtls1_write_record(SSL *ssl, int type, const uint8_t *buf, size_t len, in dtls1_write_record()
394 int dtls1_dispatch_alert(SSL *ssl) { in dtls1_dispatch_alert()
Dtls_record.c141 static int ssl_needs_record_splitting(const SSL *ssl) { in ssl_needs_record_splitting()
159 size_t ssl_record_prefix_len(const SSL *ssl) { in ssl_record_prefix_len()
170 size_t ssl_seal_align_prefix_len(const SSL *ssl) { in ssl_seal_align_prefix_len()
185 size_t SSL_max_seal_overhead(const SSL *ssl) { in SSL_max_seal_overhead()
203 enum ssl_open_record_t tls_open_record(SSL *ssl, uint8_t *out_type, CBS *out, in tls_open_record()
361 static int do_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, in do_seal_record()
428 int tls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, in tls_seal_record()
460 enum ssl_open_record_t ssl_process_alert(SSL *ssl, uint8_t *out_alert, in ssl_process_alert()
Dbio_ssl.c16 SSL *ssl = bio->ptr; in ssl_read() local
56 SSL *ssl = bio->ptr; in ssl_write() local
90 SSL *ssl = bio->ptr; in ssl_ctrl() local
137 SSL *ssl = bio->ptr; in ssl_free() local
152 SSL *ssl = bio->ptr; in ssl_callback_ctrl() local
173 long BIO_set_ssl(BIO *bio, SSL *ssl, int take_owership) { in BIO_set_ssl()
Dssl_session.c317 void ssl_session_rebase_time(SSL *ssl, SSL_SESSION *session) { in ssl_session_rebase_time()
346 void ssl_session_renew_timeout(SSL *ssl, SSL_SESSION *session, in ssl_session_renew_timeout()
463 SSL_SESSION *SSL_get_session(const SSL *ssl) { in SSL_get_session()
476 SSL_SESSION *SSL_get1_session(SSL *ssl) { in SSL_get1_session()
505 const SSL *ssl) { in SSL_SESSION_get_digest()
515 SSL *const ssl = hs->ssl; in ssl_get_new_session() local
584 static int ssl_encrypt_ticket_with_cipher_ctx(SSL *ssl, CBB *out, in ssl_encrypt_ticket_with_cipher_ctx()
670 static int ssl_encrypt_ticket_with_method(SSL *ssl, CBB *out, in ssl_encrypt_ticket_with_method()
699 int ssl_encrypt_ticket(SSL *ssl, CBB *out, const SSL_SESSION *session) { in ssl_encrypt_ticket()
719 int ssl_session_is_context_valid(const SSL *ssl, const SSL_SESSION *session) { in ssl_session_is_context_valid()
[all …]
Ds3_lib.c166 int ssl3_new(SSL *ssl) { in ssl3_new()
192 void ssl3_free(SSL *ssl) { in ssl3_free()
214 const SSL *ssl) { in ssl_get_cipher_preferences()
Dtls13_both.c37 SSL *const ssl = hs->ssl; in tls13_handshake() local
173 SSL *const ssl = hs->ssl; in tls13_process_certificate() local
361 SSL *const ssl = hs->ssl; in tls13_process_certificate_verify() local
416 SSL *const ssl = hs->ssl; in tls13_process_finished() local
448 SSL *const ssl = hs->ssl; in tls13_add_certificate() local
532 SSL *const ssl = hs->ssl; in tls13_add_certificate_verify() local
594 SSL *const ssl = hs->ssl; in tls13_add_finished() local
615 static int tls13_receive_key_update(SSL *ssl) { in tls13_receive_key_update()
633 int tls13_post_handshake(SSL *ssl) { in tls13_post_handshake()
Dssl_cert.c245 static void ssl_cert_set_cert_cb(CERT *c, int (*cb)(SSL *ssl, void *arg), in ssl_cert_set_cert_cb()
353 int SSL_set_chain_and_key(SSL *ssl, CRYPTO_BUFFER *const *certs, in SSL_set_chain_and_key()
418 int SSL_use_certificate_ASN1(SSL *ssl, const uint8_t *der, size_t der_len) { in SSL_use_certificate_ASN1()
429 int ssl_has_certificate(const SSL *ssl) { in ssl_has_certificate()
502 int ssl_add_cert_chain(SSL *ssl, CBB *cbb) { in ssl_add_cert_chain()
768 int ssl_add_client_CA_list(SSL *ssl, CBB *cbb) { in ssl_add_client_CA_list()
795 void SSL_CTX_set_cert_cb(SSL_CTX *ctx, int (*cb)(SSL *ssl, void *arg), in SSL_CTX_set_cert_cb()
800 void SSL_set_cert_cb(SSL *ssl, int (*cb)(SSL *ssl, void *arg), void *arg) { in SSL_set_cert_cb()
822 SSL *const ssl = hs->ssl; in ssl_check_leaf_certificate() local
882 int SSL_set_signed_cert_timestamp_list(SSL *ssl, const uint8_t *list, in SSL_set_signed_cert_timestamp_list()
[all …]
Dssl_stat.c91 static int ssl_state(const SSL *ssl) { in ssl_state()
100 const char *SSL_state_string_long(const SSL *ssl) { in SSL_state_string_long()
216 const char *SSL_state_string(const SSL *ssl) { in SSL_state_string()
Ddtls_record.c175 enum ssl_open_record_t dtls_open_record(SSL *ssl, uint8_t *out_type, CBS *out, in dtls_open_record()
252 static const SSL_AEAD_CTX *get_write_aead(const SSL *ssl, in get_write_aead()
264 size_t dtls_max_seal_overhead(const SSL *ssl, in dtls_max_seal_overhead()
270 size_t dtls_seal_prefix_len(const SSL *ssl, enum dtls1_use_epoch_t use_epoch) { in dtls_seal_prefix_len()
275 int dtls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, in dtls_seal_record()
Dtls_method.c103 static void ssl3_expect_flight(SSL *ssl) {} in ssl3_expect_flight()
105 static void ssl3_received_flight(SSL *ssl) {} in ssl3_received_flight()
107 static int ssl3_set_read_state(SSL *ssl, SSL_AEAD_CTX *aead_ctx) { in ssl3_set_read_state()
123 static int ssl3_set_write_state(SSL *ssl, SSL_AEAD_CTX *aead_ctx) { in ssl3_set_write_state()
280 SSL *ssl) { in ssl_noop_x509_session_verify_cert_chain()
294 static void ssl_noop_x509_ssl_flush_cached_client_CA(SSL *ssl) {} in ssl_noop_x509_ssl_flush_cached_client_CA()
295 static int ssl_noop_x509_ssl_auto_chain_if_needed(SSL *ssl) { return 1; } in ssl_noop_x509_ssl_auto_chain_if_needed()
/external/boringssl/src/ssl/test/
Dbssl_shim.cc123 static bool SetTestConfig(SSL *ssl, const TestConfig *config) { in SetTestConfig()
127 static const TestConfig *GetTestConfig(const SSL *ssl) { in GetTestConfig()
131 static bool SetTestState(SSL *ssl, std::unique_ptr<TestState> state) { in SetTestState()
140 static TestState *GetTestState(const SSL *ssl) { in GetTestState()
289 static int AsyncPrivateKeyType(SSL *ssl) { in AsyncPrivateKeyType()
302 static size_t AsyncPrivateKeyMaxSignatureLen(SSL *ssl) { in AsyncPrivateKeyMaxSignatureLen()
307 SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, in AsyncPrivateKeySign()
383 SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, in AsyncPrivateKeyDecrypt()
411 SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out) { in AsyncPrivateKeyComplete()
454 static bool GetCertificate(SSL *ssl, bssl::UniquePtr<X509> *out_x509, in GetCertificate()
[all …]
/external/boringssl/src/tool/
Dclient.cc131 static int NextProtoSelectCallback(SSL* ssl, uint8_t** out, uint8_t* outlen, in NextProtoSelectCallback()
140 static void KeyLogCallback(const SSL *ssl, const char *line) { in KeyLogCallback()
148 static int NewSessionCallback(SSL *ssl, SSL_SESSION *session) { in NewSessionCallback()
161 static bool WaitForSession(SSL *ssl, int sock) { in WaitForSession()
196 bool (*cb)(SSL *ssl, int sock)) { in DoConnection()
215 bssl::UniquePtr<SSL> ssl(SSL_new(ctx)); in DoConnection() local

1234