Home
last modified time | relevance | path

Searched refs:SSL (Results 1 – 25 of 553) sorted by relevance

12345678910>>...23

/external/boringssl/src/crypto/err/
Dssl.errordata1 SSL,277,ALPN_MISMATCH_ON_EARLY_DATA
2 SSL,281,APPLICATION_DATA_INSTEAD_OF_HANDSHAKE
3 SSL,291,APPLICATION_DATA_ON_SHUTDOWN
4 SSL,100,APP_DATA_IN_HANDSHAKE
5 SSL,101,ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT
6 SSL,102,BAD_ALERT
7 SSL,103,BAD_CHANGE_CIPHER_SPEC
8 SSL,104,BAD_DATA_RETURNED_BY_CALLBACK
9 SSL,105,BAD_DH_P_LENGTH
10 SSL,106,BAD_DIGEST_LENGTH
[all …]
/external/boringssl/src/include/openssl/
Dssl.h227 OPENSSL_EXPORT SSL *SSL_new(SSL_CTX *ctx);
230 OPENSSL_EXPORT void SSL_free(SSL *ssl);
235 OPENSSL_EXPORT SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
238 OPENSSL_EXPORT void SSL_set_connect_state(SSL *ssl);
241 OPENSSL_EXPORT void SSL_set_accept_state(SSL *ssl);
245 OPENSSL_EXPORT int SSL_is_server(const SSL *ssl);
248 OPENSSL_EXPORT int SSL_is_dtls(const SSL *ssl);
268 OPENSSL_EXPORT void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
275 OPENSSL_EXPORT void SSL_set0_rbio(SSL *ssl, BIO *rbio);
282 OPENSSL_EXPORT void SSL_set0_wbio(SSL *ssl, BIO *wbio);
[all …]
/external/boringssl/src/ssl/
Dssl_lib.cc169 OPENSSL_DECLARE_ERROR_REASON(SSL, UNKNOWN_PROTOCOL)
173 OPENSSL_DECLARE_ERROR_REASON(SSL, BLOCK_CIPHER_PAD_IS_WRONG)
174 OPENSSL_DECLARE_ERROR_REASON(SSL, NO_CIPHERS_SPECIFIED)
194 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in CBBFinishArray()
201 void ssl_reset_error_state(SSL *ssl) { in ssl_reset_error_state()
209 void ssl_set_read_error(SSL* ssl) { in ssl_set_read_error()
214 static bool check_read_error(const SSL *ssl) { in check_read_error()
222 bool ssl_can_write(const SSL *ssl) { in ssl_can_write()
226 bool ssl_can_read(const SSL *ssl) { in ssl_can_read()
230 ssl_open_record_t ssl_open_handshake(SSL *ssl, size_t *out_consumed, in ssl_open_handshake()
[all …]
Dinternal.h194 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in New()
317 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW);
322 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE);
407 uint16_t ssl_protocol_version(const SSL *ssl);
812 size_t ssl_record_prefix_len(const SSL *ssl);
845 enum ssl_open_record_t tls_open_record(SSL *ssl, uint8_t *out_type,
852 enum ssl_open_record_t dtls_open_record(SSL *ssl, uint8_t *out_type,
867 size_t ssl_seal_align_prefix_len(const SSL *ssl);
880 bool tls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out,
890 size_t dtls_max_seal_overhead(const SSL *ssl, enum dtls1_use_epoch_t use_epoch);
[all …]
Dssl_asn1.cc214 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
225 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
234 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
241 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
251 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
259 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
268 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
277 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
286 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
296 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_SESSION_to_bytes_full()
[all …]
Dssl_file.cc143 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in STACK_OF()
158 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in STACK_OF()
209 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in SSL_add_file_cert_subjects_to_stack()
252 int SSL_use_certificate_file(SSL *ssl, const char *file, int type) { in SSL_use_certificate_file()
260 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB); in SSL_use_certificate_file()
265 OPENSSL_PUT_ERROR(SSL, ERR_R_SYS_LIB); in SSL_use_certificate_file()
277 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SSL_FILETYPE); in SSL_use_certificate_file()
282 OPENSSL_PUT_ERROR(SSL, reason_code); in SSL_use_certificate_file()
295 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type) { in SSL_use_RSAPrivateKey_file()
302 OPENSSL_PUT_ERROR(SSL, ERR_R_BUF_LIB); in SSL_use_RSAPrivateKey_file()
[all …]
Dtls13_both.cc61 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in tls13_get_cert_verify_signature_input()
67 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in tls13_get_cert_verify_signature_input()
83 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in tls13_get_cert_verify_signature_input()
91 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in tls13_get_cert_verify_signature_input()
100 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in tls13_get_cert_verify_signature_input()
109 SSL *const ssl = hs->ssl; in tls13_process_certificate()
123 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in tls13_process_certificate()
129 OPENSSL_PUT_ERROR(SSL, SSL_R_UNCOMPRESSED_CERT_TOO_LARGE); in tls13_process_certificate()
145 OPENSSL_PUT_ERROR(SSL, SSL_R_UNKNOWN_CERT_COMPRESSION_ALG); in tls13_process_certificate()
154 OPENSSL_PUT_ERROR(SSL, SSL_R_CERT_DECOMPRESSION_FAILED); in tls13_process_certificate()
[all …]
Dtls_record.cc143 static bool ssl_needs_record_splitting(const SSL *ssl) { in ssl_needs_record_splitting()
161 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in ssl_record_sequence_update()
165 size_t ssl_record_prefix_len(const SSL *ssl) { in ssl_record_prefix_len()
176 size_t ssl_seal_align_prefix_len(const SSL *ssl) { in ssl_seal_align_prefix_len()
190 static ssl_open_record_t skip_early_data(SSL *ssl, uint8_t *out_alert, in skip_early_data()
198 OPENSSL_PUT_ERROR(SSL, SSL_R_TOO_MUCH_SKIPPED_EARLY_DATA); in skip_early_data()
206 ssl_open_record_t tls_open_record(SSL *ssl, uint8_t *out_type, in tls_open_record()
242 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_VERSION_NUMBER); in tls_open_record()
249 OPENSSL_PUT_ERROR(SSL, SSL_R_ENCRYPTED_LENGTH_TOO_LONG); in tls_open_record()
274 OPENSSL_PUT_ERROR(SSL, SSL_R_TOO_MANY_EMPTY_FRAGMENTS); in tls_open_record()
[all …]
Dssl_privkey.cc81 OPENSSL_PUT_ERROR(SSL, SSL_R_UNKNOWN_CERTIFICATE_TYPE); in ssl_set_pkey()
146 static bool pkey_supports_algorithm(const SSL *ssl, EVP_PKEY *pkey, in pkey_supports_algorithm()
172 static bool setup_ctx(SSL *ssl, EVP_MD_CTX *ctx, EVP_PKEY *pkey, in setup_ctx()
175 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_SIGNATURE_TYPE); in setup_ctx()
203 SSL *const ssl = hs->ssl; in ssl_private_key_sign()
220 OPENSSL_PUT_ERROR(SSL, SSL_R_PRIVATE_KEY_OPERATION_FAILED); in ssl_private_key_sign()
235 bool ssl_public_key_verify(SSL *ssl, Span<const uint8_t> signature, in ssl_public_key_verify()
249 SSL *const ssl = hs->ssl; in ssl_private_key_decrypt()
259 OPENSSL_PUT_ERROR(SSL, SSL_R_PRIVATE_KEY_OPERATION_FAILED); in ssl_private_key_decrypt()
268 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_private_key_decrypt()
[all …]
Ds3_both.cc135 static bool add_record_to_flight(SSL *ssl, uint8_t type, in add_record_to_flight()
152 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in add_record_to_flight()
169 bool ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in ssl3_init_message()
174 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl3_init_message()
182 bool ssl3_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in ssl3_finish_message()
186 bool ssl3_add_message(SSL *ssl, Array<uint8_t> msg) { in ssl3_add_message()
242 bool tls_flush_pending_hs_data(SSL *ssl) { in tls_flush_pending_hs_data()
254 OPENSSL_PUT_ERROR(SSL, SSL_R_QUIC_INTERNAL_ERROR); in tls_flush_pending_hs_data()
263 bool ssl3_add_change_cipher_spec(SSL *ssl) { in ssl3_add_change_cipher_spec()
281 int ssl3_flush_flight(SSL *ssl) { in ssl3_flush_flight()
[all …]
Dssl_cert.cc213 static void ssl_cert_set_cert_cb(CERT *cert, int (*cb)(SSL *ssl, void *arg), in ssl_cert_set_cert_cb()
237 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in check_leaf_cert_and_privkey()
242 OPENSSL_PUT_ERROR(SSL, SSL_R_UNKNOWN_CERTIFICATE_TYPE); in check_leaf_cert_and_privkey()
250 OPENSSL_PUT_ERROR(SSL, SSL_R_UNKNOWN_CERTIFICATE_TYPE); in check_leaf_cert_and_privkey()
269 OPENSSL_PUT_ERROR(SSL, ERR_R_PASSED_NULL_PARAMETER); in cert_set_chain_and_key()
274 OPENSSL_PUT_ERROR(SSL, SSL_R_CANNOT_HAVE_BOTH_PRIVKEY_AND_METHOD); in cert_set_chain_and_key()
282 OPENSSL_PUT_ERROR(SSL, SSL_R_CERTIFICATE_AND_PRIVATE_KEY_MISMATCH); in cert_set_chain_and_key()
358 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_parse_cert_chain()
369 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_parse_cert_chain()
379 OPENSSL_PUT_ERROR(SSL, SSL_R_CERT_LENGTH_MISMATCH); in ssl_parse_cert_chain()
[all …]
Dd1_both.cc167 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in dtls1_hm_fragment_new()
178 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in dtls1_hm_fragment_new()
186 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in dtls1_hm_fragment_new()
192 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in dtls1_hm_fragment_new()
255 static bool dtls1_is_current_message_complete(const SSL *ssl) { in dtls1_is_current_message_complete()
266 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message()
281 OPENSSL_PUT_ERROR(SSL, SSL_R_FRAGMENT_MISMATCH); in dtls1_get_incoming_message()
297 ssl_open_record_t dtls1_open_handshake(SSL *ssl, size_t *out_consumed, in dtls1_open_handshake()
310 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_RECORD); in dtls1_open_handshake()
323 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_RECORD); in dtls1_open_handshake()
[all …]
Dhandshake_client.cc218 SSL *const ssl = hs->ssl; in ssl_write_client_cipher_list()
270 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_CIPHERS_AVAILABLE); in ssl_write_client_cipher_list()
285 SSL *const ssl = hs->ssl; in ssl_write_client_hello()
344 SSL *const ssl = hs->ssl; in parse_supported_versions()
348 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in parse_supported_versions()
380 SSL *const ssl = hs->ssl; in do_start_connect()
442 SSL *const ssl = hs->ssl; in do_enter_early_data()
494 SSL *const ssl = hs->ssl; in do_read_hello_verify_request()
514 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_hello_verify_request()
538 SSL *const ssl = hs->ssl; in do_read_server_hello()
[all …]
Ds3_pkt.cc127 static int do_ssl3_write(SSL *ssl, int type, const uint8_t *in, unsigned len);
129 int ssl3_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, in ssl3_write_app_data()
137 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in ssl3_write_app_data()
155 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_LENGTH); in ssl3_write_app_data()
204 static int ssl3_write_pending(SSL *ssl, int type, const uint8_t *in, in ssl3_write_pending()
210 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_WRITE_RETRY); in ssl3_write_pending()
223 static int do_ssl3_write(SSL *ssl, int type, const uint8_t *in, unsigned len) { in do_ssl3_write()
231 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in do_ssl3_write()
249 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in do_ssl3_write()
302 ssl_open_record_t ssl3_open_app_data(SSL *ssl, Span<uint8_t> *out, in ssl3_open_app_data()
[all …]
Dtls13_client.cc56 SSL *const ssl = hs->ssl; in do_read_hello_retry_request()
88 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_hello_retry_request()
103 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_CIPHER_RETURNED); in do_read_hello_retry_request()
134 OPENSSL_PUT_ERROR(SSL, SSL_R_EMPTY_HELLO_RETRY_REQUEST); in do_read_hello_retry_request()
143 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_hello_retry_request()
156 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_hello_retry_request()
164 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_CURVE); in do_read_hello_retry_request()
173 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_CURVE); in do_read_hello_retry_request()
197 SSL *const ssl = hs->ssl; in do_send_second_client_hello()
217 SSL *const ssl = hs->ssl; in do_read_server_hello()
[all …]
Dt1_lib.cc202 bool ssl_client_hello_init(SSL *ssl, SSL_CLIENT_HELLO *out, in ssl_client_hello_init()
303 SSL *const ssl = hs->ssl; in tls1_get_shared_group()
502 static SSLSignatureAlgorithmList tls12_get_verify_sigalgs(const SSL *ssl, in tls12_get_verify_sigalgs()
517 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs) { in tls12_add_verify_sigalgs()
528 bool tls12_check_peer_sigalg(const SSL *ssl, uint8_t *out_alert, in tls12_check_peer_sigalg()
538 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_SIGNATURE_TYPE); in tls12_check_peer_sigalg()
543 bool tls12_has_different_verify_sigalgs_for_certs(const SSL *ssl) { in tls12_has_different_verify_sigalgs_for_certs()
581 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in forbid_parse_serverhello()
603 SSL *const ssl = hs->ssl; in ext_sni_add_clienthello()
632 SSL *const ssl = hs->ssl; in ext_sni_parse_clienthello()
[all …]
Dhandshake.cc127 SSL_HANDSHAKE::SSL_HANDSHAKE(SSL *ssl_arg) in SSL_HANDSHAKE()
160 UniquePtr<SSL_HANDSHAKE> ssl_handshake_new(SSL *ssl) { in ssl_handshake_new()
173 bool ssl_check_message_type(SSL *ssl, const SSLMessage &msg, int type) { in ssl_check_message_type()
176 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_MESSAGE); in ssl_check_message_type()
184 bool ssl_add_message_cbb(SSL *ssl, CBB *cbb) { in ssl_add_message_cbb()
194 size_t ssl_max_handshake_message_len(const SSL *ssl) { in ssl_max_handshake_message_len()
248 OPENSSL_PUT_ERROR(SSL, SSL_R_PARSE_TLSEXT); in ssl_parse_extensions()
265 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in ssl_parse_extensions()
272 OPENSSL_PUT_ERROR(SSL, SSL_R_DUPLICATE_EXTENSION); in ssl_parse_extensions()
285 SSL *const ssl = hs->ssl; in ssl_verify_peer_cert()
[all …]
Dssl_buffer.cc49 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in EnsureCap()
64 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in EnsureCap()
105 static int dtls_read_buffer_next_packet(SSL *ssl) { in dtls_read_buffer_next_packet()
111 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in dtls_read_buffer_next_packet()
126 static int tls_read_buffer_extend_to(SSL *ssl, size_t len) { in tls_read_buffer_extend_to()
130 OPENSSL_PUT_ERROR(SSL, SSL_R_BUFFER_TOO_SMALL); in tls_read_buffer_extend_to()
150 int ssl_read_buffer_extend_to(SSL *ssl, size_t len) { in ssl_read_buffer_extend_to()
168 OPENSSL_PUT_ERROR(SSL, SSL_R_BIO_NOT_SET); in ssl_read_buffer_extend_to()
188 int ssl_handle_open_record(SSL *ssl, bool *out_retry, ssl_open_record_t ret, in ssl_handle_open_record()
240 static int tls_write_buffer_flush(SSL *ssl) { in tls_write_buffer_flush()
[all …]
Dd1_lib.cc88 bool dtls1_new(SSL *ssl) { in dtls1_new()
109 void dtls1_free(SSL *ssl) { in dtls1_free()
120 void dtls1_start_timer(SSL *ssl) { in dtls1_start_timer()
138 bool dtls1_is_timer_expired(SSL *ssl) { in dtls1_is_timer_expired()
155 static void dtls1_double_timeout(SSL *ssl) { in dtls1_double_timeout()
162 void dtls1_stop_timer(SSL *ssl) { in dtls1_stop_timer()
168 bool dtls1_check_timeout_num(SSL *ssl) { in dtls1_check_timeout_num()
183 OPENSSL_PUT_ERROR(SSL, SSL_R_READ_TIMEOUT_EXPIRED); in dtls1_check_timeout_num()
194 void DTLSv1_set_initial_timeout_duration(SSL *ssl, unsigned int duration_ms) { in DTLSv1_set_initial_timeout_duration()
198 int DTLSv1_get_timeout(const SSL *ssl, struct timeval *out) { in DTLSv1_get_timeout()
[all …]
Dhandshake_server.cc197 SSL *const ssl = hs->ssl; in negotiate_version()
205 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in negotiate_version()
258 OPENSSL_PUT_ERROR(SSL, SSL_R_INAPPROPRIATE_FALLBACK); in negotiate_version()
274 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_parse_client_cipher_list()
282 OPENSSL_PUT_ERROR(SSL, SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST); in ssl_parse_client_cipher_list()
288 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_parse_client_cipher_list()
332 SSL *const ssl = hs->ssl; in ssl3_choose_cipher()
507 SSL *const ssl = hs->ssl; in do_read_client_hello()
524 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_client_hello()
537 OPENSSL_PUT_ERROR(SSL, SSL_R_CONNECTION_REJECTED); in do_read_client_hello()
[all …]
Dd1_pkt.cc131 ssl_open_record_t dtls1_open_app_data(SSL *ssl, Span<uint8_t> *out, in dtls1_open_app_data()
151 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_HANDSHAKE_RECORD); in dtls1_open_app_data()
177 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_RECORD); in dtls1_open_app_data()
190 int dtls1_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, in dtls1_write_app_data()
196 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in dtls1_write_app_data()
201 OPENSSL_PUT_ERROR(SSL, SSL_R_DTLS_MESSAGE_TOO_BIG); in dtls1_write_app_data()
206 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_LENGTH); in dtls1_write_app_data()
222 int dtls1_write_record(SSL *ssl, int type, const uint8_t *in, size_t len, in dtls1_write_record()
232 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in dtls1_write_record()
253 int dtls1_dispatch_alert(SSL *ssl) { in dtls1_dispatch_alert()
Dssl_x509.cc163 static void check_ssl_x509_method(const SSL *ssl) { in check_ssl_x509_method()
288 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_crypto_x509_session_cache_objects()
296 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_crypto_x509_session_cache_objects()
306 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_crypto_x509_session_cache_objects()
313 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_crypto_x509_session_cache_objects()
317 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_crypto_x509_session_cache_objects()
380 OPENSSL_PUT_ERROR(SSL, ERR_R_X509_LIB); in ssl_crypto_x509_session_verify_cert_chain()
459 OPENSSL_PUT_ERROR(SSL, ERR_R_X509_LIB); in ssl_crypto_x509_ssl_auto_chain_if_needed()
466 OPENSSL_PUT_ERROR(SSL, ERR_R_X509_LIB); in ssl_crypto_x509_ssl_auto_chain_if_needed()
528 X509 *SSL_get_peer_certificate(const SSL *ssl) { in SSL_get_peer_certificate()
[all …]
Dt1_enc.cc167 static bool get_key_block_lengths(const SSL *ssl, size_t *out_mac_secret_len, in get_key_block_lengths()
173 OPENSSL_PUT_ERROR(SSL, SSL_R_CIPHER_OR_HASH_UNAVAILABLE); in get_key_block_lengths()
183 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in get_key_block_lengths()
192 int tls1_configure_aead(SSL *ssl, evp_aead_direction_t direction, in tls1_configure_aead()
256 const SSL *ssl = hs->ssl; in tls1_generate_master_secret()
284 size_t SSL_get_key_block_len(const SSL *ssl) { in SSL_get_key_block_len()
295 int SSL_generate_key_block(const SSL *ssl, uint8_t *out, size_t out_len) { in SSL_generate_key_block()
308 int SSL_export_keying_material(SSL *ssl, uint8_t *out, size_t out_len, in SSL_export_keying_material()
317 OPENSSL_PUT_ERROR(SSL, SSL_R_HANDSHAKE_NOT_COMPLETE); in SSL_export_keying_material()
335 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in SSL_export_keying_material()
[all …]
Dbio_ssl.cc15 static SSL *get_ssl(BIO *bio) { in get_ssl()
16 return reinterpret_cast<SSL *>(bio->ptr); in get_ssl()
20 SSL *ssl = get_ssl(bio); in ssl_read()
60 SSL *ssl = get_ssl(bio); in ssl_write()
94 SSL *ssl = get_ssl(bio); in ssl_ctrl()
141 SSL *ssl = get_ssl(bio); in ssl_free()
156 SSL *ssl = get_ssl(bio); in ssl_callback_ctrl()
177 long BIO_set_ssl(BIO *bio, SSL *ssl, int take_owership) { in BIO_set_ssl()
/external/curl/docs/
DSSL-PROBLEMS.md7 # SSL problems
9 First, let's establish that we often refer to TLS and SSL interchangeably as
10 SSL here. The current protocol is called TLS, it was called SSL a long time
13 There are several known reasons why a connection that involves SSL might
32 SSL servers are supposed to handle. This may cause the connection to fail
33 completely. Sometimes you may need to explicitly select a SSL version to use
36 An additional complication can be that modern SSL libraries sometimes are
37 built with support for older SSL and TLS versions disabled!
39 All versions of SSL are considered insecure and should be avoided. Use TLS.
48 ciphers from its default set (slightly depending on SSL backend in use).
[all …]

12345678910>>...23