Home
last modified time | relevance | path

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

12345678910>>...18

/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 …]
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 …]
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);
423 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW);
498 uint16_t ssl_protocol_version(const SSL *ssl);
914 size_t ssl_record_prefix_len(const SSL *ssl);
947 enum ssl_open_record_t tls_open_record(SSL *ssl, uint8_t *out_type,
954 enum ssl_open_record_t dtls_open_record(SSL *ssl, uint8_t *out_type,
969 size_t ssl_seal_align_prefix_len(const SSL *ssl);
982 bool tls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out,
[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()
256 SSL *const ssl = hs->ssl; in ssl_private_key_decrypt()
266 OPENSSL_PUT_ERROR(SSL, SSL_R_PRIVATE_KEY_OPERATION_FAILED); in ssl_private_key_decrypt()
275 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_private_key_decrypt()
[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 …]
Ds3_both.cc137 static bool add_record_to_flight(SSL *ssl, uint8_t type, in add_record_to_flight()
154 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in add_record_to_flight()
171 bool ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in ssl3_init_message()
176 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl3_init_message()
184 bool ssl3_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in ssl3_finish_message()
188 bool ssl3_add_message(SSL *ssl, Array<uint8_t> msg) { in ssl3_add_message()
244 bool tls_flush_pending_hs_data(SSL *ssl) { in tls_flush_pending_hs_data()
256 OPENSSL_PUT_ERROR(SSL, SSL_R_QUIC_INTERNAL_ERROR); in tls_flush_pending_hs_data()
265 bool ssl3_add_change_cipher_spec(SSL *ssl) { in ssl3_add_change_cipher_spec()
283 int ssl3_flush_flight(SSL *ssl) { in ssl3_flush_flight()
[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 …]
Ds3_pkt.cc128 static int do_ssl3_write(SSL *ssl, int type, const uint8_t *in, unsigned len);
130 int ssl3_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, in ssl3_write_app_data()
138 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in ssl3_write_app_data()
156 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_LENGTH); in ssl3_write_app_data()
205 static int ssl3_write_pending(SSL *ssl, int type, const uint8_t *in, in ssl3_write_pending()
211 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_WRITE_RETRY); in ssl3_write_pending()
224 static int do_ssl3_write(SSL *ssl, int type, const uint8_t *in, unsigned len) { in do_ssl3_write()
232 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in do_ssl3_write()
250 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in do_ssl3_write()
303 ssl_open_record_t ssl3_open_app_data(SSL *ssl, Span<uint8_t> *out, in ssl3_open_app_data()
[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()
499 SSL *const ssl = hs->ssl; in do_read_hello_verify_request()
519 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_hello_verify_request()
543 SSL *const ssl = hs->ssl; in do_read_server_hello()
[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()
198 SSL *const ssl = hs->ssl; in do_send_second_client_hello()
218 SSL *const ssl = hs->ssl; in do_read_server_hello()
[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 …]
Dt1_lib.cc206 bool ssl_client_hello_init(const SSL *ssl, SSL_CLIENT_HELLO *out, in ssl_client_hello_init()
209 out->ssl = const_cast<SSL *>(ssl); in ssl_client_hello_init()
307 SSL *const ssl = hs->ssl; in tls1_get_shared_group()
506 static SSLSignatureAlgorithmList tls12_get_verify_sigalgs(const SSL *ssl, in tls12_get_verify_sigalgs()
521 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs) { in tls12_add_verify_sigalgs()
532 bool tls12_check_peer_sigalg(const SSL *ssl, uint8_t *out_alert, in tls12_check_peer_sigalg()
542 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_SIGNATURE_TYPE); in tls12_check_peer_sigalg()
547 bool tls12_has_different_verify_sigalgs_for_certs(const SSL *ssl) { in tls12_has_different_verify_sigalgs_for_certs()
585 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in forbid_parse_serverhello()
607 SSL *const ssl = hs->ssl; in ext_sni_add_clienthello()
[all …]
Dhandshake.cc127 SSL_HANDSHAKE::SSL_HANDSHAKE(SSL *ssl_arg) in SSL_HANDSHAKE()
167 UniquePtr<SSL_HANDSHAKE> ssl_handshake_new(SSL *ssl) { in ssl_handshake_new()
180 bool ssl_check_message_type(SSL *ssl, const SSLMessage &msg, int type) { in ssl_check_message_type()
183 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_MESSAGE); in ssl_check_message_type()
191 bool ssl_add_message_cbb(SSL *ssl, CBB *cbb) { in ssl_add_message_cbb()
201 size_t ssl_max_handshake_message_len(const SSL *ssl) { in ssl_max_handshake_message_len()
255 OPENSSL_PUT_ERROR(SSL, SSL_R_PARSE_TLSEXT); in ssl_parse_extensions()
272 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in ssl_parse_extensions()
279 OPENSSL_PUT_ERROR(SSL, SSL_R_DUPLICATE_EXTENSION); in ssl_parse_extensions()
292 SSL *const ssl = hs->ssl; in ssl_verify_peer_cert()
[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()
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()
508 SSL *const ssl = hs->ssl; in extract_sni()
555 SSL *const ssl = hs->ssl; in do_read_client_hello()
568 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in do_read_client_hello()
[all …]
Dssl_versions.cc130 OPENSSL_PUT_ERROR(SSL, SSL_R_UNKNOWN_SSL_VERSION); in set_version_bound()
187 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_get_version_range()
234 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_SUPPORTED_VERSIONS_ENABLED); in ssl_get_version_range()
243 static uint16_t ssl_version(const SSL *ssl) { in ssl_version()
251 uint16_t ssl_protocol_version(const SSL *ssl) { in ssl_protocol_version()
264 SSL *const ssl = hs->ssl; in ssl_supports_version()
309 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_negotiate_version()
321 OPENSSL_PUT_ERROR(SSL, SSL_R_UNSUPPORTED_PROTOCOL); in ssl_negotiate_version()
346 int SSL_set_min_proto_version(SSL *ssl, uint16_t version) { in SSL_set_min_proto_version()
353 int SSL_set_max_proto_version(SSL *ssl, uint16_t version) { in SSL_set_max_proto_version()
[all …]
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()
390 OPENSSL_PUT_ERROR(SSL, ERR_R_X509_LIB); in ssl_crypto_x509_session_verify_cert_chain()
455 OPENSSL_PUT_ERROR(SSL, ERR_R_X509_LIB); in ssl_crypto_x509_ssl_auto_chain_if_needed()
462 OPENSSL_PUT_ERROR(SSL, ERR_R_X509_LIB); in ssl_crypto_x509_ssl_auto_chain_if_needed()
524 X509 *SSL_get_peer_certificate(const SSL *ssl) { in SSL_get_peer_certificate()
[all …]
/external/python/pyopenssl/examples/simple/
Dserver.py18 from OpenSSL import SSL, crypto
37 ctx = SSL.Context(SSL.SSLv23_METHOD)
38 ctx.set_options(SSL.OP_NO_SSLv2)
39 ctx.set_options(SSL.OP_NO_SSLv3)
41 SSL.VERIFY_PEER | SSL.VERIFY_FAIL_IF_NO_PEER_CERT, verify_cb
48 server = SSL.Connection(ctx, socket.socket(socket.AF_INET, socket.SOCK_STREAM))
88 except (SSL.WantReadError,
89 SSL.WantWriteError,
90 SSL.WantX509LookupError):
92 except SSL.ZeroReturnError:
[all …]
Dclient.py15 from OpenSSL import SSL, crypto
36 ctx = SSL.Context(SSL.SSLv23_METHOD)
37 ctx.set_options(SSL.OP_NO_SSLv2)
38 ctx.set_options(SSL.OP_NO_SSLv3)
39 ctx.set_verify(SSL.VERIFY_PEER, verify_cb) # Demand a certificate
45 sock = SSL.Connection(ctx, socket.socket(socket.AF_INET, socket.SOCK_STREAM))
56 except SSL.Error:

12345678910>>...18