| /freebsd/crypto/openssl/include/internal/ |
| H A D | quic_ssl.h | 23 __owur SSL *ossl_quic_new(SSL_CTX *ctx); 24 __owur SSL *ossl_quic_new_listener(SSL_CTX *ctx, uint64_t flags); 25 __owur SSL *ossl_quic_new_listener_from(SSL *ssl, uint64_t flags); 26 __owur SSL *ossl_quic_new_from_listener(SSL *ssl, uint64_t flags); 27 __owur SSL *ossl_quic_new_domain(SSL_CTX *ctx, uint64_t flags); 50 __owur int ossl_quic_init(SSL *s); 51 void ossl_quic_deinit(SSL *s); 52 void ossl_quic_free(SSL *s); 53 int ossl_quic_reset(SSL *s); 54 int ossl_quic_clear(SSL *s); [all …]
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | ssl.h | 278 typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data, 280 typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, 314 typedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type, 318 typedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type, 321 typedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type, 325 typedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type, 332 typedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type, 337 typedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type, 348 typedef int (*SSL_async_callback_fn)(SSL *s, void *arg); 624 uint64_t SSL_get_options(const SSL *s); [all …]
|
| H A D | ssl.h.in | 255 typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data, 257 typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, 291 typedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type, 295 typedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type, 298 typedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type, 302 typedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type, 309 typedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type, 314 typedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type, 324 /* Typedef for SSL async callback */ 325 typedef int (*SSL_async_callback_fn)(SSL *s, void *arg); [all …]
|
| /freebsd/crypto/openssl/test/helpers/ |
| H A D | ssltestlib.h | 27 int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, 28 SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio); 29 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want, 31 int create_bare_ssl_connection_ex(SSL *serverssl, SSL *clientssl, int want, 33 int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, 34 SSL **cssl, int sfd, int cfd); 37 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want); 38 int create_ssl_connection_ex(SSL *serverssl, SSL *clientssl, int want, 40 void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl); 85 SSL_SESSION *create_a_psk(SSL *ssl, size_t mdsize);
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | SSL_get0_connection.pod | 5 SSL_get0_connection, SSL_is_connection - get a QUIC connection SSL object from a 6 QUIC stream SSL object 12 SSL *SSL_get0_connection(SSL *ssl); 13 int SSL_is_connection(SSL *ssl); 17 The SSL_get0_connection() function, when called on a QUIC stream SSL object, 18 returns the QUIC connection SSL object which the QUIC stream SSL object belongs 21 When called on a QUIC connection SSL object, it returns the same object. 25 SSL_is_connection() returns 1 for QUIC connection SSL objects and for non-QUIC 26 SSL objects, but returns 0 for QUIC stream SSL objects. 30 SSL_get0_connection() returns the QUIC connection SSL object (for a QUIC stream [all …]
|
| 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_listener.pod | 9 SSL_ACCEPT_CONNECTION_NO_BLOCK - SSL object interface for abstracted connection 16 SSL *SSL_new_listener(SSL_CTX *ctx, uint64_t flags); 17 SSL *SSL_new_listener_from(SSL *ssl, uint64_t flags); 19 int SSL_is_listener(SSL *ssl); 20 SSL *SSL_get0_listener(SSL *ssl); 22 int SSL_listen(SSL *ssl); 25 SSL *SSL_accept_connection(SSL *ssl, uint64_t flags); 27 size_t SSL_get_accept_connection_queue_len(SSL *ssl); 29 SSL *SSL_new_from_listener(SSL *ssl, uint64_t flags); 33 The SSL_new_listener() function creates a listener SSL object. Listener SSL [all …]
|
| H A D | SSL_new_domain.pod | 8 - SSL object interface for managing QUIC event domains 14 SSL *SSL_new_domain(SSL_CTX *ctx, uint64_t flags); 16 int SSL_is_domain(SSL *ssl); 17 SSL *SSL_get0_domain(SSL *ssl); 22 SSL object. This is known as a QUIC domain SSL object (QDSO). The concept of a 34 A QUIC domain SSL object can be managed in the same way as any other SSL object, 35 in that it can be refcounted and freed normally. A QUIC domain SSL object is the 36 parent of a number of child objects such as QUIC listener SSL objects. Once a 37 QUIC domain SSL object has been created, a listener can be created under it 40 SSL_is_domain() returns 1 if a SSL object is a QUIC domain SSL object. [all …]
|
| H A D | SSL_get_stream_id.pod | 13 uint64_t SSL_get_stream_id(SSL *ssl); 19 int SSL_get_stream_type(SSL *ssl); 21 int SSL_is_stream_local(SSL *ssl); 26 SSL object, or for a QUIC connection SSL object which has a default stream 36 The SSL object is a QUIC connection SSL object without a default stream 41 The SSL object is a non-QUIC SSL object, or is a QUIC stream object (or QUIC 42 connection SSL object with a default stream attached), and that stream is a 47 The SSL object is a QUIC stream object (or QUIC connection SSL object with a 53 The SSL object is a QUIC stream object (or QUIC connection SSL object with a 82 SSL object which is not a QUIC SSL object, or if called on a QUIC connection SSL [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_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 50 SSL_set_ssl_method() cannot be used to change a non-QUIC SSL object to a QUIC 51 SSL object or vice versa, or change a QUIC SSL object from one QUIC method to
|
| H A D | SSL_set_blocking_mode.pod | 6 QUIC SSL object 12 int SSL_set_blocking_mode(SSL *s, int blocking); 13 int SSL_get_blocking_mode(SSL *s); 18 connection SSL object. By default, blocking is enabled, unless the SSL object is 33 These functions are only applicable to QUIC connection SSL objects. Other kinds 34 of SSL object, such as those for TLS, automatically function in blocking or 36 provided to the SSL object are themselves configured in nonblocking mode. 38 Where a QUIC connection SSL object is used in nonblocking mode, an application 39 is responsible for ensuring that the SSL object is ticked regularly; see 43 connection SSL object with a network BIO which cannot support blocking mode. To [all …]
|
| H A D | SSL_get_rpoll_descriptor.pod | 13 int SSL_get_rpoll_descriptor(SSL *s, BIO_POLL_DESCRIPTOR *desc); 14 int SSL_get_wpoll_descriptor(SSL *s, BIO_POLL_DESCRIPTOR *desc); 15 int SSL_net_read_desired(SSL *s); 16 int SSL_net_write_desired(SSL *s); 21 used to determine when an SSL object which represents a QUIC connection can 22 perform useful network I/O, so that an application using a QUIC connection SSL 29 depending on whether the SSL object is currently interested in receiving data 31 If an SSL object is not interested in reading data from the network at the 32 current time, SSL_net_read_desired() will return 0; likewise, if an SSL object is 38 I/O conditions which allow the SSL object to perform useful work. When such a [all …]
|
| H A D | SSL_accept_stream.pod | 14 SSL *SSL_accept_stream(SSL *ssl, uint64_t flags); 16 size_t SSL_get_accept_stream_queue_len(SSL *ssl); 21 given QUIC connection SSL object and returns the newly allocated QUIC stream SSL 30 SSL object; for more information, see L<SSL_free(3)>. 32 This function will block if the QUIC connection SSL object is configured in 53 SSL_accept_stream() returns a newly allocated QUIC stream SSL object, or NULL if 55 or if called on an SSL object other than a QUIC connection SSL object. 59 currently waiting in the accept queue, or 0 if called on an SSL object other than 60 a QUIC connection SSL object.
|
| 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_handle_events.pod | 11 int SSL_handle_events(SSL *ssl); 15 SSL_handle_events() performs any internal processing which is due on an SSL object. The 17 is being used with the given SSL object. For example, SSL_handle_events() may handle 20 SSL object. 28 SSL_handle_events() can be used only with the following types of SSL object: 32 =item DTLS SSL objects 34 Using SSL_handle_events() on an SSL object being used with a DTLS method allows timeout 42 automatically by calls to other SSL functions such as L<SSL_read(3)> or 46 =item QUIC connection SSL objects 48 Using SSL_handle_events() on an SSL object which represents a QUIC connection allows [all …]
|
| H A D | SSL_CTX_set_record_padding_callback.pod | 20 …void SSL_CTX_set_record_padding_callback(SSL_CTX *ctx, size_t (*cb)(SSL *s, int type, size_t len, … 21 …int SSL_set_record_padding_callback(SSL *ssl, size_t (*cb)(SSL *s, int type, size_t len, void *arg… 26 void SSL_set_record_padding_callback_arg(SSL *ssl, void *arg); 27 void *SSL_get_record_padding_callback_arg(const SSL *ssl); 30 int SSL_set_block_padding(SSL *ssl, size_t block_size); 32 int SSL_set_block_padding_ex(SSL *ssl, size_t app_block_size, size_t hs_block_size); 38 for TLS 1.3 records. The value set in B<ctx> is copied to a new SSL by SSL_new(). 40 function cannot be set if Kernel TLS is already configured for the current SSL object. 44 set in B<ctx> is copied to a new SSL by SSL_new(). 64 These functions cannot be used with QUIC SSL objects. [all …]
|
| /freebsd/crypto/openssl/apps/include/ |
| H A D | s_apps.h | 33 int ssl_print_sigalgs(BIO *out, SSL *s); 34 int ssl_print_point_formats(BIO *out, SSL *s); 35 int ssl_print_groups(BIO *out, SSL *s, int noshared); 36 int ssl_print_tmp_key(BIO *out, SSL *s); 42 void do_ssl_shutdown(SSL *ssl); 47 void apps_ssl_info_callback(const SSL *s, int where, int ret); 49 size_t len, SSL *ssl, void *arg); 50 void tlsext_cb(SSL *s, int client_server, int type, const unsigned char *data, 53 int generate_cookie_callback(SSL *ssl, unsigned char *cookie, 55 int verify_cookie_callback(SSL *ssl, const unsigned char *cookie, [all …]
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_tls_api.c | 18 SSL *s = (SSL *)arg; in crypto_send_cb() 29 SSL *s = (SSL *)arg; in crypto_recv_rcd_cb() 39 SSL *s = (SSL *)arg; in crypto_release_rcd_cb() 51 SSL *s = (SSL *)arg; in yield_secret_cb() 64 SSL *s = (SSL *)arg; in got_transport_params_cb() 74 SSL *s = (SSL *)arg; in alert_cb() 127 int SSL_set_quic_tls_cbs(SSL *s, const OSSL_DISPATCH *qtdis, void *arg) in SSL_set_quic_tls_cbs() 171 int SSL_set_quic_tls_transport_params(SSL *s, in SSL_set_quic_tls_transport_params() 188 int SSL_set_quic_tls_early_data_enabled(SSL *s, int enabled) in SSL_set_quic_tls_early_data_enabled()
|
| H A D | quic_impl.c | 43 static SSL *quic_conn_stream_new(QCTX *ctx, uint64_t flags, int need_lock); 208 static int wrong_type(const SSL *s, uint32_t flags) in wrong_type() 255 static int expect_quic_as(const SSL *s, QCTX *ctx, uint32_t flags) in expect_quic_as() 389 static int is_quic_c(const SSL *s, QCTX *ctx, int raiseerrs) in is_quic_c() 399 static int is_quic_cs(const SSL *s, QCTX *ctx, int raiseerrs) in is_quic_cs() 408 static int expect_quic_cs(const SSL *s, QCTX *ctx) in expect_quic_cs() 413 static int expect_quic_csl(const SSL *s, QCTX *ctx) in expect_quic_csl() 418 static int expect_quic_csld(const SSL *s, QCTX *ctx) in expect_quic_csld() 425 static int expect_quic_listener(const SSL *s, QCTX *ctx) in expect_quic_listener() 430 static int expect_quic_domain(const SSL *s, QCTX *ctx) in expect_quic_domain() [all …]
|
| /freebsd/crypto/openssl/ssl/ |
| H A D | ssl_lib.c | 89 SSL *s; 96 int (*func_read)(SSL *, void *, size_t, size_t *); 97 int (*func_write)(SSL *, const void *, size_t, size_t *); 98 int (*func_other)(SSL *); 567 int SSL_clear(SSL *s) in SSL_clear() 577 int ossl_ssl_connection_reset(SSL *s) in ossl_ssl_connection_reset() 690 SSL *SSL_new(SSL_CTX *ctx) in SSL_new() 703 int ossl_ssl_init(SSL *ssl, SSL_CTX *ctx, const SSL_METHOD *method, int type) in ossl_ssl_init() 731 SSL *ossl_ssl_connection_new_int(SSL_CTX *ctx, SSL *user_ssl, in ossl_ssl_connection_new_int() 735 SSL *ssl; in ossl_ssl_connection_new_int() [all …]
|
| H A D | ssl_local.h | 409 SSL *(*ssl_new)(SSL_CTX *ctx); 410 void (*ssl_free)(SSL *s); 411 int (*ssl_reset)(SSL *s); 412 int (*ssl_init)(SSL *s); 413 int (*ssl_clear)(SSL *s); 414 void (*ssl_deinit)(SSL *s); 415 int (*ssl_accept)(SSL *s); 416 int (*ssl_connect)(SSL *s); 417 int (*ssl_read)(SSL *s, void *buf, size_t len, size_t *readbytes); 418 int (*ssl_peek)(SSL *s, void *buf, size_t len, size_t *readbytes); [all …]
|
| /freebsd/crypto/openssl/doc/man7/ |
| H A D | ossl-guide-libssl-introduction.pod | 11 communications protocols. Specifically it provides SSL/TLS (SSLv3, TLSv1, 22 header file and will typically use two main data structures, i.e. B<SSL> and 25 An B<SSL> object is used to represent a connection to a remote peer. Once a 31 to arrive at all. In this case the B<SSL> object used for the connection is also 38 SSL/TLS only supports one stream of data per connection and it is always 39 bi-directional. In this case the B<SSL> object used for the connection also 44 uni- or bi-directional. In this case an B<SSL> object can represent the 46 a separate B<SSL> object is used for each one. See 49 An B<SSL_CTX> object is used to create the B<SSL> object for the underlying 51 (each represented by a separate B<SSL> object). Many API functions in libssl [all …]
|
| /freebsd/crypto/openssl/test/radix/ |
| H A D | quic_ops.c | 30 static int ssl_ctx_select_alpn(SSL *ssl, in ssl_ctx_select_alpn() 43 static void keylog_cb(const SSL *ssl, const char *line) in keylog_cb() 122 static int ssl_attach_bio_dgram(SSL *ssl, in ssl_attach_bio_dgram() 165 static SSL *pending_ssl_obj = NULL; 166 static SSL *client_hello_ssl_obj = NULL; 170 static int new_pending_cb(SSL_CTX *ctx, SSL *new_ssl, void *arg) in new_pending_cb() 177 static int client_hello_cb(SSL *s, int *al, void *arg) in client_hello_cb() 190 SSL *ssl; in DEF_FUNC() 246 SSL *domain, *listener; in DEF_FUNC() 277 SSL *ssl; in DEF_FUNC() [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
|