/freebsd/crypto/openssl/ssl/statem/ |
H A D | statem_local.h | 62 typedef int (*confunc_f) (SSL *s, WPACKET *pkt); 64 int ssl3_take_mac(SSL *s); 65 int check_in_list(SSL *s, uint16_t group_id, const uint16_t *groups, 67 int create_synthetic_message_hash(SSL *s, const unsigned char *hashval, 70 int parse_ca_names(SSL *s, PACKET *pkt); 71 const STACK_OF(X509_NAME) *get_ca_names(SSL *s); 72 int construct_ca_names(SSL *s, const STACK_OF(X509_NAME) *ca_sk, WPACKET *pkt); 73 size_t construct_key_exchange_tbs(SSL *s, unsigned char **ptbs, 79 int ossl_statem_client_read_transition(SSL *s, int mt); 80 WRITE_TRAN ossl_statem_client_write_transition(SSL *s); [all …]
|
H A D | statem.h | 131 __owur int ossl_statem_accept(SSL *s); 132 __owur int ossl_statem_connect(SSL *s); 133 void ossl_statem_clear(SSL *s); 134 void ossl_statem_set_renegotiate(SSL *s); 135 void ossl_statem_send_fatal(SSL *s, int al); 136 void ossl_statem_fatal(SSL *s, int al, int reason, const char *fmt, ...); 145 int ossl_statem_in_error(const SSL *s); 146 void ossl_statem_set_in_init(SSL *s, int init); 147 int ossl_statem_get_in_handshake(SSL *s); 148 void ossl_statem_set_in_handshake(SSL *s, int inhand); [all …]
|
H A D | statem.c | 65 static int state_machine(SSL *s, int server); 66 static void init_read_state_machine(SSL *s); 67 static SUB_STATE_RETURN read_state_machine(SSL *s); 68 static void init_write_state_machine(SSL *s); 69 static SUB_STATE_RETURN write_state_machine(SSL *s); 71 OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl) in SSL_get_state() 76 int SSL_in_init(const SSL *s) in SSL_in_init() 81 int SSL_is_init_finished(const SSL *s) in SSL_is_init_finished() 86 int SSL_in_before(const SSL *s) in SSL_in_before() 102 void ossl_statem_clear(SSL *s) in ossl_statem_clear() [all …]
|
H A D | extensions.c | 22 static int final_renegotiate(SSL *s, unsigned int context, int sent); 23 static int init_server_name(SSL *s, unsigned int context); 24 static int final_server_name(SSL *s, unsigned int context, int sent); 25 static int final_ec_pt_formats(SSL *s, unsigned int context, int sent); 26 static int init_session_ticket(SSL *s, unsigned int context); 28 static int init_status_request(SSL *s, unsigned int context); 31 static int init_npn(SSL *s, unsigned int context); 33 static int init_alpn(SSL *s, unsigned int context); 34 static int final_alpn(SSL *s, unsigned int context, int sent); 35 static int init_sig_algs_cert(SSL *s, unsigned int context); [all …]
|
/freebsd/crypto/openssl/ssl/ |
H A D | ssl_local.h | 490 int (*ssl_new) (SSL *s); 491 int (*ssl_clear) (SSL *s); 492 void (*ssl_free) (SSL *s); 493 int (*ssl_accept) (SSL *s); 494 int (*ssl_connect) (SSL *s); 495 int (*ssl_read) (SSL *s, void *buf, size_t len, size_t *readbytes); 496 int (*ssl_peek) (SSL *s, void *buf, size_t len, size_t *readbytes); 497 int (*ssl_write) (SSL *s, const void *buf, size_t len, size_t *written); 498 int (*ssl_shutdown) (SSL *s); 499 int (*ssl_renegotiate) (SSL *s); [all …]
|
H A D | ssl_lib.c | 28 static int ssl_undefined_function_1(SSL *ssl, SSL3_RECORD *r, size_t s, int t, in ssl_undefined_function_1() 34 static int ssl_undefined_function_2(SSL *ssl, SSL3_RECORD *r, unsigned char *s, in ssl_undefined_function_2() 40 static int ssl_undefined_function_3(SSL *ssl, unsigned char *r, in ssl_undefined_function_3() 46 static int ssl_undefined_function_4(SSL *ssl, int r) in ssl_undefined_function_4() 51 static size_t ssl_undefined_function_5(SSL *ssl, const char *r, size_t s, in ssl_undefined_function_5() 62 static int ssl_undefined_function_7(SSL *ssl, unsigned char *r, size_t s, in ssl_undefined_function_7() 85 SSL *s; 90 int (*func_read) (SSL *, void *, size_t, size_t *); 91 int (*func_write) (SSL *, const void *, size_t, size_t *); 92 int (*func_other) (SSL *); [all …]
|
H A D | d1_lib.c | 17 static int dtls1_handshake_write(SSL *s); 67 int dtls1_new(SSL *s) in dtls1_new() 108 static void dtls1_clear_queues(SSL *s) in dtls1_clear_queues() 114 void dtls1_clear_received_buffer(SSL *s) in dtls1_clear_received_buffer() 126 void dtls1_clear_sent_buffer(SSL *s) in dtls1_clear_sent_buffer() 156 void dtls1_free(SSL *s) in dtls1_free() 172 int dtls1_clear(SSL *s) in dtls1_clear() 224 long dtls1_ctrl(SSL *s, int cmd, long larg, void *parg) in dtls1_ctrl() 260 void dtls1_start_timer(SSL *s) in dtls1_start_timer() 304 struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft) in dtls1_get_timeout() [all …]
|
H A D | tls_srp.c | 60 int ssl_srp_ctx_free_intern(SSL *s) in ssl_srp_ctx_free_intern() 79 int SSL_SRP_CTX_free(SSL *s) in SSL_SRP_CTX_free() 88 int ssl_srp_ctx_init_intern(SSL *s) in ssl_srp_ctx_init_intern() 157 int SSL_SRP_CTX_init(SSL *s) in SSL_SRP_CTX_init() 187 int ssl_srp_server_param_with_username_intern(SSL *s, int *ad) in ssl_srp_server_param_with_username_intern() 219 int SSL_srp_server_param_with_username(SSL *s, int *ad) in SSL_srp_server_param_with_username() 228 int SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass, in SSL_set_srp_server_param_pw() 248 int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g, in SSL_set_srp_server_param() 301 int srp_generate_server_master_secret(SSL *s) in srp_generate_server_master_secret() 331 int srp_generate_client_master_secret(SSL *s) in srp_generate_client_master_secret() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | ssl.h | 273 typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data, 275 typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, 306 typedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type, 310 typedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type, 313 typedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type, 318 typedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type, 325 typedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type, 330 typedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type, 341 typedef int (*SSL_async_callback_fn)(SSL *s, void *arg); 602 uint64_t SSL_get_options(const SSL *s); [all …]
|
H A D | ssl.h.in | 250 typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data, 252 typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, 283 typedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type, 287 typedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type, 290 typedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type, 295 typedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type, 302 typedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type, 307 typedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type, 317 /* Typedef for SSL async callback */ 318 typedef int (*SSL_async_callback_fn)(SSL *s, void *arg); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | BIO_f_ssl.pod | 10 BIO_ssl_shutdown - SSL BIO 21 long BIO_set_ssl(BIO *b, SSL *ssl, long c); 22 long BIO_get_ssl(BIO *b, SSL **sslp); 38 BIO_f_ssl() returns the SSL BIO method. This is a filter BIO which 39 is a wrapper round the OpenSSL SSL routines adding a BIO "flavour" to 40 SSL I/O. 42 I/O performed on an SSL BIO communicates using the SSL protocol with 43 the SSLs read and write BIOs. If an SSL connection is not established 46 If a BIO is appended to an SSL BIO using BIO_push() it is automatically 47 used as the SSL BIOs read and write BIOs. [all …]
|
H A D | SSL_new.pod | 5 SSL_dup, SSL_new, SSL_up_ref - create an SSL structure for a connection 11 SSL *SSL_dup(SSL *s); 12 SSL *SSL_new(SSL_CTX *ctx); 13 int SSL_up_ref(SSL *s); 17 SSL_new() creates a new B<SSL> structure which is needed to hold the 18 data for a TLS/SSL connection. The new structure inherits the settings 20 options, verification settings, timeout settings. An B<SSL> structure is 21 reference counted. Creating an B<SSL> structure for the first time increments 23 reference count drops to zero, any memory or resources allocated to the B<SSL> 27 existing B<SSL> structure. [all …]
|
H A D | SSL_want.pod | 7 SSL_want_client_hello_cb - obtain state information TLS/SSL I/O operation 13 int SSL_want(const SSL *ssl); 14 int SSL_want_nothing(const SSL *ssl); 15 int SSL_want_read(const SSL *ssl); 16 int SSL_want_write(const SSL *ssl); 17 int SSL_want_x509_lookup(const SSL *ssl); 18 int SSL_want_retry_verify(const SSL *ssl); 19 int SSL_want_async(const SSL *ssl); 20 int SSL_want_async_job(const SSL *ssl); 21 int SSL_want_client_hello_cb(const SSL *ssl); [all …]
|
H A D | SSL_CTX_set_ssl_version.pod | 6 - choose a new TLS/SSL method 15 int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method); 16 const SSL_METHOD *SSL_get_ssl_method(const SSL *ssl); 20 SSL_CTX_set_ssl_version() sets a new default TLS/SSL B<method> for SSL objects 23 which are reset to the default values. SSL objects already created from this 30 SSL_set_ssl_method() sets a new TLS/SSL B<method> for a particular B<ssl> 33 SSL_get_ssl_method() returns a pointer to the TLS/SSL method 42 an SSL object, the method of the SSL object is reset to the method currently
|
H A D | SSL_accept.pod | 5 SSL_accept - wait for a TLS/SSL client to initiate a TLS/SSL handshake 11 int SSL_accept(SSL *ssl); 15 SSL_accept() waits for a TLS/SSL client to initiate the TLS/SSL handshake. 46 The TLS/SSL handshake was not successful but was shut down controlled and 47 by the specifications of the TLS/SSL protocol. Call SSL_get_error() with the 52 The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been 57 The TLS/SSL handshake was not successful because a fatal error occurred either
|
H A D | SSL_CTX_set1_verify_cert_store.pod | 24 int SSL_set0_verify_cert_store(SSL *ctx, X509_STORE *st); 25 int SSL_set1_verify_cert_store(SSL *ctx, X509_STORE *st); 26 int SSL_set0_chain_cert_store(SSL *ctx, X509_STORE *st); 27 int SSL_set1_chain_cert_store(SSL *ctx, X509_STORE *st); 28 int SSL_get0_verify_cert_store(SSL *ctx, X509_STORE **st); 29 int SSL_get0_chain_cert_store(SSL *ctx, X509_STORE **st); 41 except they apply to SSL structure B<ssl>. 56 The stores pointers associated with an SSL_CTX structure are copied to any SSL 57 structures when SSL_new() is called. As a result SSL structures will not be 61 peer: that is an SSL/TLS client will use the verification store to verify [all …]
|
H A D | SSL_in_init.pod | 17 int SSL_in_init(const SSL *s); 18 int SSL_in_before(const SSL *s); 19 int SSL_is_init_finished(const SSL *s); 21 int SSL_in_connect_init(SSL *s); 22 int SSL_in_accept_init(SSL *s); 24 OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl); 28 SSL_in_init() returns 1 if the SSL/TLS state machine is currently processing or 31 SSL_in_before() returns 1 if no SSL/TLS handshake has yet been initiated, or 0 34 SSL_is_init_finished() returns 1 if the SSL/TLS connection is in a state where
|
/freebsd/crypto/openssl/ssl/record/ |
H A D | record.h | 130 /* The parent SSL structure */ 131 SSL *s; 202 void RECORD_LAYER_init(RECORD_LAYER *rl, SSL *s); 213 __owur size_t ssl3_pending(const SSL *s); 214 __owur int ssl3_write_bytes(SSL *s, int type, const void *buf, size_t len, 216 int do_ssl3_write(SSL *s, int type, const unsigned char *buf, 219 __owur int ssl3_read_bytes(SSL *s, int type, int *recvd_type, 222 __owur int ssl3_setup_buffers(SSL *s); 223 __owur int ssl3_enc(SSL *s, SSL3_RECORD *inrecs, size_t n_recs, int send, 225 __owur int n_ssl3_mac(SSL *ss [all...] |
H A D | record_local.h | 39 __owur int ssl3_read_n(SSL *s, size_t n, size_t max, int extend, int clearold, 42 DTLS1_BITMAP *dtls1_get_bitmap(SSL *s, SSL3_RECORD *rr, 44 int dtls1_process_buffered_records(SSL *s); 45 int dtls1_retrieve_buffered_record(SSL *s, record_pqueue *queue); 46 int dtls1_buffer_record(SSL *s, record_pqueue *q, unsigned char *priority); 51 int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap); 52 void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap); 74 __owur int ssl3_setup_read_buffer(SSL *s); 75 __owur int ssl3_setup_write_buffer(SSL *s, size_t numwpipes, size_t len); 76 int ssl3_release_read_buffer(SSL *s); [all …]
|
/freebsd/crypto/openssl/apps/include/ |
H A D | s_apps.h | 29 int ssl_print_sigalgs(BIO *out, SSL *s); 30 int ssl_print_point_formats(BIO *out, SSL *s); 31 int ssl_print_groups(BIO *out, SSL *s, int noshared); 32 int ssl_print_tmp_key(BIO *out, SSL *s); 37 void do_ssl_shutdown(SSL *ssl); 42 void apps_ssl_info_callback(const SSL *s, int where, int ret); 44 size_t len, SSL *ssl, void *arg); 45 void tlsext_cb(SSL *s, int client_server, int type, const unsigned char *data, 48 int generate_cookie_callback(SSL *ssl, unsigned char *cookie, 50 int verify_cookie_callback(SSL *ssl, const unsigned char *cookie, [all …]
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | ssltestlib.h | 19 int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, 20 SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio); 21 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want, 23 int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, 24 SSL **cssl, int sfd, int cfd); 26 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want); 27 void shutdown_ssl_connection(SSL *serverssl, SSL *clientss [all...] |
/freebsd/crypto/openssl/doc/man7/ |
H A D | ssl.pod | 5 ssl - OpenSSL SSL/TLS library 20 TLS/SSL enabled connections (see L<SSL_CTX_new(3)>). 25 B<SSL> object. After the B<SSL> object has been created using 30 When the TLS/SSL handshake is performed using 34 used to read and write data on the TLS/SSL connection. 36 TLS/SSL connection. 44 =item B<SSL_METHOD> (SSL Method) 50 =item B<SSL_CIPHER> (SSL Cipher) 53 are a core part of the SSL/TLS protocol. The available ciphers are configured 57 =item B<SSL_CTX> (SSL Context) [all …]
|
/freebsd/contrib/libpcap/ |
H A D | sslutils.h | 54 SSL *ssl_promotion(int is_server, PCAP_SOCKET s, char *errbuf, size_t errbuflen); 55 void ssl_finish(SSL *ssl); 56 int ssl_send(SSL *, char const *buffer, int size, char *errbuf, size_t errbuflen); 57 int ssl_recv(SSL *, char *buffer, int size, char *errbuf, size_t errbuflen); 65 #define SSL void const macro
|
/freebsd/crypto/openssl/test/ |
H A D | tls13secretstest.c | 129 int ssl3_digest_cached_records(SSL *s, int keep) in ssl3_digest_cached_records() 137 int ssl_handshake_hash(SSL *s, unsigned char *out, size_t outlen, in ssl_handshake_hash() 155 const EVP_MD *ssl_handshake_md(SSL *s) in ssl_handshake_md() 188 int ssl_log_secret(SSL *ssl, in ssl_log_secret() 201 void ossl_statem_send_fatal(SSL *s, int al) in ossl_statem_send_fatal() 205 void ossl_statem_fatal(SSL *s, int al, int reason, const char *fmt, ...) in ossl_statem_fatal() 209 int ossl_statem_export_allowed(SSL *s) in ossl_statem_export_allowed() 214 int ossl_statem_export_early_allowed(SSL *s) in ossl_statem_export_early_allowed() 229 static int test_secret(SSL *s, unsigned char *prk, in test_secret() 277 SSL *s = NULL; in test_handshake_secrets()
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-sess_id.pod.in | 6 openssl-sess_id - SSL/TLS session handling command 23 This command processes the encoded version of the SSL session 24 structure and optionally prints out SSL session details (for example 25 the SSL session master key) in human readable format. Since this is a 26 diagnostic tool that needs some knowledge of the SSL protocol to use 84 SSL-Session: 105 The cipher used this is the actual raw SSL or TLS cipher code, see the SSL 110 The SSL session ID in hex format. 118 This is the SSL session master key. 131 This is the return code when an SSL client certificate is verified. [all …]
|