| /dragonfly/crypto/libressl/ssl/ |
| HD | ssl_locl.h | 380 DH *(*dhe_params_cb)(SSL *ssl, int is_export, int keysize); 383 int (*security_cb)(const SSL *s, const SSL_CTX *ctx, int op, int bits, 421 int (*ssl_new)(SSL *s); 422 void (*ssl_clear)(SSL *s); 423 void (*ssl_free)(SSL *s); 425 int (*ssl_accept)(SSL *s); 426 int (*ssl_connect)(SSL *s); 427 int (*ssl_shutdown)(SSL *s); 429 int (*ssl_renegotiate)(SSL *s); 430 int (*ssl_renegotiate_check)(SSL *s); [all …]
|
| HD | dtls_locl.h | 179 int dtls1_do_write(SSL *s, int type); 180 int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); 181 void dtls1_set_message_header(SSL *s, unsigned char mt, unsigned long len, 183 void dtls1_set_message_header_int(SSL *s, unsigned char mt, 187 int do_dtls1_write(SSL *s, int type, const unsigned char *buf, 190 int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf, int len); 191 int dtls1_write_bytes(SSL *s, int type, const void *buf, int len); 193 int dtls1_read_failed(SSL *s, int code); 194 int dtls1_buffer_message(SSL *s, int ccs); 195 int dtls1_retransmit_message(SSL *s, unsigned short seq, [all …]
|
| HD | ssl_lib.c | 170 SSL_clear(SSL *s) in SSL_clear() 239 SSL * 242 SSL *s; in SSL_new() 377 SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx, in SSL_set_session_id_context() 400 SSL_set_generate_session_id(SSL *ssl, GEN_SESSION_CB cb) in SSL_set_generate_session_id() 409 SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id, in SSL_has_matching_session_id() 441 SSL_set_purpose(SSL *s, int purpose) in SSL_set_purpose() 453 SSL_set_trust(SSL *s, int trust) in SSL_set_trust() 459 SSL_set1_host(SSL *s, const char *hostname) in SSL_set1_host() 473 SSL_set_hostflags(SSL *s, unsigned int flags) in SSL_set_hostflags() [all …]
|
| HD | ssl_tlsext.c | 40 tlsext_alpn_client_needs(SSL *s, uint16_t msg_type) in tlsext_alpn_client_needs() 48 tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_alpn_client_build() 87 tlsext_alpn_server_parse(SSL *s, uint16_t msg_types, CBS *cbs, int *alert) in tlsext_alpn_server_parse() 136 tlsext_alpn_server_needs(SSL *s, uint16_t msg_type) in tlsext_alpn_server_needs() 142 tlsext_alpn_server_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_alpn_server_build() 163 tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) in tlsext_alpn_client_parse() 193 tlsext_supportedgroups_client_needs(SSL *s, uint16_t msg_type) in tlsext_supportedgroups_client_needs() 200 tlsext_supportedgroups_client_build(SSL *s, uint16_t msg_type, CBB *cbb) in tlsext_supportedgroups_client_build() 230 tlsext_supportedgroups_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, in tlsext_supportedgroups_server_parse() 291 tlsext_supportedgroups_server_needs(SSL *s, uint16_t msg_type) in tlsext_supportedgroups_server_needs() [all …]
|
| HD | ssl_seclevel.c | 34 ssl_security_normalize_level(const SSL_CTX *ctx, const SSL *ssl, int *out_level) in ssl_security_normalize_level() 76 ssl_security_level_and_minimum_bits(const SSL_CTX *ctx, const SSL *ssl, in ssl_security_level_and_minimum_bits() 95 ssl_security_secop_cipher(const SSL_CTX *ctx, const SSL *ssl, int bits, in ssl_security_secop_cipher() 142 ssl_security_secop_version(const SSL_CTX *ctx, const SSL *ssl, int version) in ssl_security_secop_version() 159 ssl_security_secop_compression(const SSL_CTX *ctx, const SSL *ssl) in ssl_security_secop_compression() 165 ssl_security_secop_tickets(const SSL_CTX *ctx, const SSL *ssl) in ssl_security_secop_tickets() 176 ssl_security_secop_tmp_dh(const SSL_CTX *ctx, const SSL *ssl, int bits) in ssl_security_secop_tmp_dh() 192 ssl_security_secop_default(const SSL_CTX *ctx, const SSL *ssl, int bits) in ssl_security_secop_default() 203 ssl_security_default_cb(const SSL *ssl, const SSL_CTX *ctx, int secop, int bits, in ssl_security_default_cb() 232 ssl_security(const SSL *ssl, int secop, int bits, int nid, void *other) in ssl_security() [all …]
|
| HD | ssl_transcript.c | 24 tls1_transcript_hash_init(SSL *s) in tls1_transcript_hash_init() 64 tls1_transcript_hash_update(SSL *s, const unsigned char *buf, size_t len) in tls1_transcript_hash_update() 73 tls1_transcript_hash_value(SSL *s, unsigned char *out, size_t len, in tls1_transcript_hash_value() 110 tls1_transcript_hash_free(SSL *s) in tls1_transcript_hash_free() 117 tls1_transcript_init(SSL *s) in tls1_transcript_init() 131 tls1_transcript_free(SSL *s) in tls1_transcript_free() 138 tls1_transcript_reset(SSL *s) in tls1_transcript_reset() 146 tls1_transcript_append(SSL *s, const unsigned char *buf, size_t len) in tls1_transcript_append() 158 tls1_transcript_data(SSL *s, const unsigned char **data, size_t *len) in tls1_transcript_data() 176 tls1_transcript_freeze(SSL *s) in tls1_transcript_freeze() [all …]
|
| HD | d1_lib.c | 76 static int dtls1_listen(SSL *s, struct sockaddr *client); 79 dtls1_new(SSL *s) in dtls1_new() 139 dtls1_clear_queues(SSL *s) in dtls1_clear_queues() 148 dtls1_free(SSL *s) in dtls1_free() 170 dtls1_clear(SSL *s) in dtls1_clear() 212 dtls1_ctrl(SSL *s, int cmd, long larg, void *parg) in dtls1_ctrl() 258 dtls1_start_timer(SSL *s) in dtls1_start_timer() 276 dtls1_get_timeout(SSL *s, struct timeval* timeleft) in dtls1_get_timeout() 318 dtls1_is_timer_expired(SSL *s) in dtls1_is_timer_expired() 337 dtls1_double_timeout(SSL *s) in dtls1_double_timeout() [all …]
|
| HD | ssl_rsa.c | 69 static int ssl_get_password_cb_and_arg(SSL_CTX *ctx, SSL *ssl, 71 static int ssl_set_cert(SSL_CTX *ctx, SSL *ssl, X509 *x509); 72 static int ssl_set_pkey(SSL_CTX *ctx, SSL *ssl, EVP_PKEY *pkey); 73 static int ssl_use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in); 74 static int ssl_use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, 78 SSL_use_certificate(SSL *ssl, X509 *x) in SSL_use_certificate() 88 SSL_use_certificate_file(SSL *ssl, const char *file, int type) in SSL_use_certificate_file() 131 SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len) in SSL_use_certificate_ASN1() 148 SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa) in SSL_use_RSAPrivateKey() 171 ssl_set_pkey(SSL_CTX *ctx, SSL *ssl, EVP_PKEY *pkey) in ssl_set_pkey() [all …]
|
| HD | s3_lib.c | 1442 ssl3_pending(const SSL *s) in ssl3_pending() 1452 ssl3_handshake_msg_hdr_len(SSL *s) in ssl3_handshake_msg_hdr_len() 1459 ssl3_handshake_msg_start(SSL *s, CBB *handshake, CBB *body, uint8_t msg_type) in ssl3_handshake_msg_start() 1484 ssl3_handshake_msg_finish(SSL *s, CBB *handshake) in ssl3_handshake_msg_finish() 1528 ssl3_handshake_write(SSL *s) in ssl3_handshake_write() 1534 ssl3_record_write(SSL *s, int type) in ssl3_record_write() 1543 ssl3_new(SSL *s) in ssl3_new() 1554 ssl3_free(SSL *s) in ssl3_free() 1591 ssl3_clear(SSL *s) in ssl3_clear() 1666 _SSL_get_shared_group(SSL *s, long n) in _SSL_get_shared_group() [all …]
|
| HD | ssl_tlsext.h | 37 int tlsext_client_build(SSL *s, uint16_t msg_type, CBB *cbb); 38 int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); 40 int tlsext_server_build(SSL *s, uint16_t msg_type, CBB *cbb); 41 int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); 43 int tlsext_extension_seen(SSL *s, uint16_t);
|
| HD | tls13_legacy.c | 24 tls13_legacy_wire_read(SSL *ssl, uint8_t *buf, size_t len) in tls13_legacy_wire_read() 63 tls13_legacy_wire_write(SSL *ssl, const uint8_t *buf, size_t len) in tls13_legacy_wire_write() 100 tls13_legacy_wire_flush(SSL *ssl) in tls13_legacy_wire_flush() 124 tls13_legacy_error(SSL *ssl) in tls13_legacy_error() 163 tls13_legacy_return_code(SSL *ssl, ssize_t ret) in tls13_legacy_return_code() 208 tls13_legacy_pending(const SSL *ssl) in tls13_legacy_pending() 224 tls13_legacy_read_bytes(SSL *ssl, int type, unsigned char *buf, int len, int peek) in tls13_legacy_read_bytes() 258 tls13_legacy_write_bytes(SSL *ssl, int type, const void *vbuf, int len) in tls13_legacy_write_bytes() 319 SSL *s = ctx->ssl; in tls13_use_legacy_stack() 384 SSL *s = ctx->ssl; in tls13_use_legacy_client() [all …]
|
| HD | d1_pkt.c | 180 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap, 182 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap, 184 static DTLS1_BITMAP *dtls1_get_bitmap(SSL *s, SSL3_RECORD_INTERNAL *rr, 186 static int dtls1_buffer_record(SSL *s, record_pqueue *q, 188 static int dtls1_process_record(SSL *s); 192 dtls1_copy_record(SSL *s, DTLS1_RECORD_DATA_INTERNAL *rdata) in dtls1_copy_record() 205 dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) in dtls1_buffer_record() 252 dtls1_retrieve_buffered_record(SSL *s, record_pqueue *queue) in dtls1_retrieve_buffered_record() 270 dtls1_process_buffered_record(SSL *s) in dtls1_process_buffered_record() 294 dtls1_process_record(SSL *s) in dtls1_process_record() [all …]
|
| HD | t1_lib.c | 124 static int tls_decrypt_ticket(SSL *s, CBS *ticket, int *alert, 128 tls1_new(SSL *s) in tls1_new() 137 tls1_free(SSL *s) in tls1_free() 147 tls1_clear(SSL *s) in tls1_clear() 398 tls1_get_formatlist(const SSL *s, int client_formats, const uint8_t **pformats, in tls1_get_formatlist() 421 tls1_get_group_list(const SSL *s, int client_groups, const uint16_t **pgroups, in tls1_get_group_list() 445 tls1_get_group_lists(const SSL *ssl, const uint16_t **pref, size_t *preflen, in tls1_get_group_lists() 475 tls1_count_shared_groups(const SSL *ssl, size_t *out_count) in tls1_count_shared_groups() 500 tls1_group_by_index(const SSL *ssl, size_t n, int *out_nid, in tls1_group_by_index() 501 int (*ssl_security_fn)(const SSL *, uint16_t)) in tls1_group_by_index() argument [all …]
|
| HD | ssl_sess.c | 153 SSL_get_session(const SSL *ssl) in SSL_get_session() 160 SSL_get1_session(SSL *ssl) in SSL_get1_session() 293 def_generate_session_id(const SSL *ssl, unsigned char *id, unsigned int *id_len) in def_generate_session_id() 318 ssl_get_new_session(SSL *s, int session) in ssl_get_new_session() 428 ssl_session_from_cache(SSL *s, CBS *session_id) in ssl_session_from_cache() 458 ssl_session_from_callback(SSL *s, CBS *session_id) in ssl_session_from_callback() 495 ssl_session_by_id(SSL *s, CBS *session_id) in ssl_session_by_id() 530 ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block, int *alert) in ssl_get_prev_session() 786 SSL_set_session(SSL *s, SSL_SESSION *session) in SSL_set_session() 939 SSL_set_session_secret_cb(SSL *s, int (*tls_session_secret_cb)(SSL *s, in SSL_set_session_secret_cb() [all …]
|
| HD | tls12_lib.c | 21 tls12_finished_verify_data(SSL *s, const char *finished_label, in tls12_finished_verify_data() 52 tls12_client_finished_verify_data(SSL *s, uint8_t *verify_data, in tls12_client_finished_verify_data() 61 tls12_server_finished_verify_data(SSL *s, uint8_t *verify_data, in tls12_server_finished_verify_data() 70 tls12_derive_finished(SSL *s) in tls12_derive_finished() 84 tls12_derive_peer_finished(SSL *s) in tls12_derive_peer_finished() 98 tls12_derive_master_secret(SSL *s, uint8_t *premaster_secret, in tls12_derive_master_secret()
|
| HD | tls13_quic.c | 26 SSL *ssl = ctx->ssl; in tls13_quic_wire_read_cb() 36 SSL *ssl = ctx->ssl; in tls13_quic_wire_write_cb() 46 SSL *ssl = ctx->ssl; in tls13_quic_wire_flush_cb() 71 SSL *ssl = ctx->ssl; in tls13_quic_handshake_write_cb() 87 SSL *ssl = ctx->ssl; in tls13_quic_set_read_traffic_key() 111 SSL *ssl = ctx->ssl; in tls13_quic_set_write_traffic_key() 134 SSL *ssl = ctx->ssl; in tls13_quic_alert_send_cb()
|
| HD | ssl_versions.c | 128 ssl_enabled_tls_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver) in ssl_enabled_tls_version_range() 197 ssl_supported_tls_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver) in ssl_supported_tls_version_range() 233 ssl_effective_tls_version(SSL *s) in ssl_effective_tls_version() 242 ssl_max_supported_version(SSL *s, uint16_t *max_ver) in ssl_max_supported_version() 262 ssl_max_legacy_version(SSL *s, uint16_t *max_ver) in ssl_max_legacy_version() 280 ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver) in ssl_max_shared_version() 349 ssl_check_version_from_server(SSL *s, uint16_t server_version) in ssl_check_version_from_server() 374 ssl_legacy_stack_version(SSL *s, uint16_t version) in ssl_legacy_stack_version()
|
| HD | ssl_both.c | 135 ssl3_do_write(SSL *s, int type) in ssl3_do_write() 165 ssl3_send_finished(SSL *s, int state_a, int state_b) in ssl3_send_finished() 209 ssl3_get_finished(SSL *s, int a, int b) in ssl3_get_finished() 268 ssl3_send_change_cipher_spec(SSL *s, int a, int b) in ssl3_send_change_cipher_spec() 337 ssl3_output_cert_chain(SSL *s, CBB *cbb, SSL_CERT_PKEY *cpk) in ssl3_output_cert_chain() 399 ssl3_get_message(SSL *s, int st1, int stn, int mt, long max) in ssl3_get_message() 604 ssl3_setup_init_buffer(SSL *s) in ssl3_setup_init_buffer() 625 ssl3_release_init_buffer(SSL *s) in ssl3_release_init_buffer() 635 ssl3_setup_read_buffer(SSL *s) in ssl3_setup_read_buffer() 665 ssl3_setup_write_buffer(SSL *s) in ssl3_setup_write_buffer() [all …]
|
| HD | bio_ssl.c | 80 SSL *ssl; /* The ssl handle :-) */ 148 SSL *ssl; in ssl_read() 220 SSL *ssl; in ssl_write() 284 SSL **sslp, *ssl; in ssl_ctrl() 344 ssl = (SSL *)ptr; in ssl_ctrl() 357 sslp = (SSL **)ptr; in ssl_ctrl() 451 void (**fptr)(const SSL *xssl, int type, int val); in ssl_ctrl() 453 fptr = (void (**)(const SSL *xssl, int type, int val)) in ssl_ctrl() 468 SSL *ssl; in ssl_callback_ctrl() 480 (void (*)(const SSL *, int, int))fp); in ssl_callback_ctrl() [all …]
|
| HD | d1_both.c | 162 static void dtls1_fix_message_header(SSL *s, unsigned long frag_off, 166 static long dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, 211 dtls1_do_write(SSL *s, int type) in dtls1_do_write() 372 dtls1_get_message(SSL *s, int st1, int stn, int mt, long max) in dtls1_get_message() 435 dtls1_preprocess_fragment(SSL *s, struct hm_header_st *msg_hdr, int max) in dtls1_preprocess_fragment() 484 dtls1_retrieve_buffered_fragment(SSL *s, long max, int *ok) in dtls1_retrieve_buffered_fragment() 542 dtls1_max_handshake_message_len(const SSL *s) in dtls1_max_handshake_message_len() 553 dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok) in dtls1_reassemble_fragment() 653 dtls1_process_out_of_seq_message(SSL *s, struct hm_header_st* msg_hdr, int *ok) in dtls1_process_out_of_seq_message() 740 dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) in dtls1_get_message_fragment() [all …]
|
| HD | ssl_pkt.c | 122 static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, 124 static int ssl3_get_record(SSL *s); 131 ssl_force_want_read(SSL *s) in ssl_force_want_read() 151 ssl3_read_n(SSL *s, int n, int max, int extend) in ssl3_read_n() 287 ssl3_packet_read(SSL *s, int plen) in ssl3_packet_read() 301 ssl3_packet_extend(SSL *s, int plen) in ssl3_packet_extend() 328 ssl3_get_record(SSL *s) in ssl3_get_record() 474 ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) in ssl3_write_bytes() 532 do_ssl3_write(SSL *s, int type, const unsigned char *buf, unsigned int len) in do_ssl3_write() 643 ssl3_write_pending(SSL *s, int type, const unsigned char *buf, unsigned int len) in ssl3_write_pending() [all …]
|
| /dragonfly/crypto/libressl/include/openssl/ |
| HD | ssl.h | 378 typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data, 380 typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, 506 int version, int content_type, const void *buf, size_t len, SSL *ssl, 508 void SSL_set_msg_callback(SSL *ssl, void (*cb)(int write_p, int version, 509 int content_type, const void *buf, size_t len, SSL *ssl, void *arg)); 512 typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line); 515 int SSL_set_num_tickets(SSL *s, size_t num_tickets); 516 size_t SSL_get_num_tickets(const SSL *s); 519 STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s); 543 typedef int (*GEN_SESSION_CB)(const SSL *ssl, unsigned char *id, [all …]
|
| /dragonfly/crypto/libressl/apps/openssl/ |
| HD | s_apps.h | 131 int ssl_print_tmp_key(BIO *out, SSL *s); 141 void apps_ssl_info_callback(const SSL *s, int where, int ret); 143 size_t len, SSL *ssl, void *arg); 144 void tlsext_cb(SSL *s, int client_server, int type, unsigned char *data, 148 int generate_cookie_callback(SSL *ssl, unsigned char *cookie, 150 int verify_cookie_callback(SSL *ssl, const unsigned char *cookie,
|
| /dragonfly/contrib/libpcap/ |
| HD | sslutils.h | 48 SSL *ssl_promotion(int is_server, SOCKET s, char *errbuf, size_t errbuflen); 49 void ssl_finish(SSL *ssl); 50 int ssl_send(SSL *, char const *buffer, int size, char *errbuf, size_t errbuflen); 51 int ssl_recv(SSL *, char *buffer, int size, char *errbuf, size_t errbuflen); 59 #define SSL void const macro
|
| HD | sslutils.c | 136 SSL *ssl_promotion(int is_server, SOCKET s, char *errbuf, size_t errbuflen) in ssl_promotion() 142 SSL *ssl = SSL_new(ctx); // TODO: also a DTLS context in ssl_promotion() 164 void ssl_finish(SSL *ssl) in ssl_finish() 183 int ssl_send(SSL *ssl, char const *buffer, int size, char *errbuf, size_t errbuflen) in ssl_send() 211 int ssl_recv(SSL *ssl, char *buffer, int size, char *errbuf, size_t errbuflen) in ssl_recv()
|