| /freebsd/crypto/openssl/test/ssl-tests/ |
| H A D | 06-sni-ticket.cnf | 5 test-0 = 0-sni-session-ticket 6 test-1 = 1-sni-session-ticket 7 test-2 = 2-sni-session-ticket 8 test-3 = 3-sni-session-ticket 9 test-4 = 4-sni-session-ticket 10 test-5 = 5-sni-session-ticket 11 test-6 = 6-sni-session-ticket 12 test-7 = 7-sni-session-ticket 13 test-8 = 8-sni-session-ticket 14 test-9 = 9-sni-session-ticket [all …]
|
| H A D | 27-ticket-appdata.cnf | 5 test-0 = 0-session-ticket-app-data12 6 test-1 = 1-session-ticket-app-data12 7 test-2 = 2-session-ticket-app-data13 8 test-3 = 3-session-ticket-app-data13 11 [0-session-ticket-app-data12] 12 ssl_conf = 0-session-ticket-app-data12-ssl 14 [0-session-ticket-app-data12-ssl] 15 server = 0-session-ticket-app-data12-server 16 client = 0-session-ticket-app-data12-client 17 resume-server = 0-session-ticket-app-data12-server [all …]
|
| /freebsd/contrib/libpcap/rpcapd/ |
| H A D | daemon.c | 110 struct session { struct 136 uint32 plen, char *source, struct session **sessionp, argument 139 struct session *session); 142 struct session *session, uint32 plen); 143 static int daemon_unpackapplyfilter(PCAP_SOCKET sockctrl, SSL *, struct session *session, uint32 *p… 146 struct session *session, uint32 plen, struct pcap_stat *stats, 163 static void session_close(struct session *); 232 struct session *session = NULL; // struct session main variable in daemon_serviceloop() local 750 if ((!pars.isactive) && (session == NULL || session->sockdata == 0)) in daemon_serviceloop() 902 plen, source, &session, &samp_param, in daemon_serviceloop() [all …]
|
| /freebsd/crypto/openssl/test/recipes/ |
| H A D | 70-test_tlsextms.t | 95 (undef, my $session) = tempfile(); 97 $proxy->clientflags("-no_tls1_3 -sess_out ".$session); 100 $proxy->clientflags("-no_tls1_3 -sess_in ".$session); 103 unlink $session; 112 (undef, $session) = tempfile(); 114 $proxy->clientflags("-no_tls1_3 -sess_out ".$session); 117 $proxy->clientflags("-no_tls1_3 -sess_in ".$session); 121 unlink $session; 129 (undef, $session) = tempfile(); 131 $proxy->clientflags("-no_tls1_3 -sess_out ".$session); [all …]
|
| H A D | 70-test_sslsessiontick.t | 77 (undef, my $session) = tempfile(); 79 $proxy->clientflags("-no_tls1_3 -sess_out ".$session); 82 $proxy->clientflags("-no_tls1_3 -sess_in ".$session); 85 unlink $session; 91 (undef, $session) = tempfile(); 93 $proxy->clientflags("-no_tls1_3 -sess_out ".$session." -no_ticket"); 96 $proxy->clientflags("-no_tls1_3 -sess_in ".$session); 100 unlink $session; 113 (undef, $session) = tempfile(); 116 $proxy->clientflags("-no_tls1_3 -sess_out ".$session); [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | pkcs11.h | 980 typedef ck_rv_t (*ck_notify_t) (ck_session_handle_t session, 1025 (ck_session_handle_t session, unsigned char *pin, 1028 (ck_session_handle_t session, unsigned char *old_pin, 1035 ck_session_handle_t *session)); 1036 _CK_DECLARE_FUNCTION (C_CloseSession, (ck_session_handle_t session)); 1039 (ck_session_handle_t session, 1042 (ck_session_handle_t session, 1046 (ck_session_handle_t session, 1052 (ck_session_handle_t session, ck_user_type_t user_type, 1054 _CK_DECLARE_FUNCTION (C_Logout, (ck_session_handle_t session)); [all …]
|
| H A D | ssh-pkcs11.c | 60 CK_SESSION_HANDLE session; member 121 if (p->slotinfo[i].session && in pkcs11_provider_finalize() 123 p->slotinfo[i].session)) != CKR_OK) in pkcs11_provider_finalize() 199 CK_SESSION_HANDLE session; in pkcs11_find() local 205 session = p->slotinfo[slotidx].session; in pkcs11_find() 206 if ((rv = f->C_FindObjectsInit(session, attr, nattr)) != CKR_OK) { in pkcs11_find() 210 if ((rv = f->C_FindObjects(session, obj, 1, &nfound)) != CKR_OK || in pkcs11_find() 216 if ((rv = f->C_FindObjectsFinal(session)) != CKR_OK) in pkcs11_find() 249 rv = provider->function_list->C_Login(si->session, type, (u_char *)pin, in pkcs11_login_slot() 313 rv = f->C_GetAttributeValue(si->session, obj, &attr, 1); in pkcs11_check_obj_bool_attrib() [all …]
|
| H A D | sshd-debug.sh | 39 for i in sshd-session/obj/sshd-session sshd-session/sshd-session sshd-session; do 46 echo >&2 Debugging ${SSHD} auth ${SSHD_AUTH} session ${SSHD_SESSION}
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | SSL_CTX_set_session_cache_mode.pod | 5 SSL_CTX_set_session_cache_mode, SSL_CTX_get_session_cache_mode - enable/disable session caching 16 SSL_CTX_set_session_cache_mode() enables/disables session caching 28 In order to reuse a session, a client must send the session's id to the 30 agrees to reuse the session or it starts a full handshake (to create a new 31 session). 33 A server will look up the session in its internal session storage. If the 34 session is not found in internal storage or lookups for the internal storage 38 Since a client may try to reuse a session intended for use in a different 39 context, the session id context must be set by the server (see 42 The following session cache modes and modifiers are available: [all …]
|
| H A D | SSL_CTX_add_session.pod | 5 SSL_CTX_add_session, SSL_CTX_remove_session - manipulate session cache 17 SSL_CTX_add_session() adds the session B<c> to the context B<ctx>. The 18 reference count for session B<c> is incremented by 1. If a session with 19 the same session id already exists, the old session is removed by calling 22 SSL_CTX_remove_session() removes the session B<c> from the context B<ctx> and 27 When adding a new session to the internal session cache, it is examined 28 whether a session with the same session id already exists. In this case 29 it is assumed that both sessions are identical. If the same session is 30 stored in a different SSL_SESSION object, The old session is 31 removed and replaced by the new session. If the session is actually [all …]
|
| H A D | SSL_CTX_sess_set_get_cb.pod | 5 …e_cb, SSL_CTX_sess_get_get_cb - provide callback functions for server side external session caching 32 called whenever a new session was negotiated. 35 called whenever a session is removed by the SSL engine. For example, 36 this can occur because a session is considered faulty or has become obsolete 40 whenever a TLS client proposed to resume a session but the session 41 could not be found in the internal session cache (see 52 In order to allow external session caching, synchronization with the internal 53 session cache is realized via callback functions. Inside these callback 54 functions, session can be saved to disk or put into a database using the 57 The new_session_cb() is called whenever a new session has been negotiated and [all …]
|
| H A D | SSL_CTX_set_generate_session_id.pod | 7 - manipulate generation of SSL session IDs (server only) 24 new session ids for SSL/TLS sessions for B<ctx> to be B<cb>. 27 new session ids for SSL/TLS sessions for B<ssl> to be B<cb>. 29 SSL_has_matching_session_id() checks, whether a session with id B<id> 30 (of length B<id_len>) is already contained in the internal session cache 35 When a new session is established between client and server, the server 36 generates a session id. The session id is an arbitrary sequence of bytes. 37 The length of the session id is between 1 and 32 bytes. The session id is not 38 security critical but must be unique for the server. Additionally, the session id is 39 transmitted in the clear when reusing the session so it must not contain [all …]
|
| H A D | SSL_set_session.pod | 5 SSL_set_session - set a TLS/SSL session to be used during TLS/SSL connect 11 int SSL_set_session(SSL *ssl, SSL_SESSION *session); 15 SSL_set_session() sets B<session> to be used when the TLS/SSL connection 17 When the session is set, the reference count of B<session> is incremented 18 by 1. If the session is not reused, the reference count is decremented 19 again during SSL_connect(). Whether the session was reused can be queried 22 If there is already a session set inside B<ssl> (because it was set with 24 a connection), SSL_SESSION_free() will be called for that session. 25 This is also the case when B<session> is a NULL pointer. If that old 26 session is still B<open>, it is considered bad and will be removed from the [all …]
|
| H A D | SSL_get_session.pod | 5 SSL_get_session, SSL_get0_session, SSL_get1_session - retrieve TLS/SSL session data 28 The ssl session contains all information required to re-establish the 31 main handshake has occurred. The server will send the session information to the 34 in TLSv1.3 before the session has been established will still return an 35 SSL_SESSION object but that object cannot be used for resuming the session. See 40 session for a single connection. In that case, on the client side, the above 41 functions will only return information on the last session that was received. On 42 the server side they will only return information on the last session that was 43 sent, or if no session tickets were sent then the session for the current 47 to use a new session callback as described in L<SSL_CTX_sess_set_new_cb(3)>. [all …]
|
| H A D | SSL_CTX_set_session_id_context.pod | 5 SSL_CTX_set_session_id_context, SSL_set_session_id_context - set context within which session can b… 19 B<sid_ctx_len> within which a session can be reused for the B<ctx> object. 22 B<sid_ctx_len> within which a session can be reused for the B<ssl> object. 28 to re-import a session generated from another context (e.g. another 30 must set its own session id context B<sid_ctx> which is used to distinguish 36 The session id context becomes part of the session. The session id context 41 OpenSSL clients will check the session id context returned by the server 42 when reusing a session. 49 If the session id context is not set on an SSL/TLS server and client 54 If a server returns a different session id context to an OpenSSL client [all …]
|
| H A D | SSL_CTX_set_session_ticket_cb.pod | 9 SSL_CTX_decrypt_session_ticket_fn - manage session ticket application data 32 with a session, and placed into a session ticket. Either callback function may 35 B<gen_cb> is the application defined callback invoked when a session ticket is 37 at this time to add application data to the session ticket. The value of B<arg> 41 B<dec_cb> is the application defined callback invoked after session ticket 42 decryption has been attempted and any session ticket application data is 44 the session data. The B<keyname> and B<keyname_len> arguments identify the key 45 used to decrypt the session ticket. The B<status> argument is the result of the 51 B<data> and B<len> into B<ss> which is then placed into any generated session 52 tickets. It can be called at any time before a session ticket is created to [all …]
|
| /freebsd/crypto/heimdal/lib/hx509/ |
| H A D | test_soft_pkcs11.c | 42 find_object(CK_SESSION_HANDLE session, in find_object() argument 57 ret = (*func->C_FindObjectsInit)(session, search_data, num_search_data); in find_object() 61 ret = (*func->C_FindObjects)(session, object, 1, &object_count); in find_object() 69 ret = (*func->C_FindObjectsFinal)(session); in find_object() 89 CK_SESSION_HANDLE session; in main() local 123 NULL, NULL, &session); in main() 132 ret = (*func->C_Login)(session, CKU_USER, in main() 145 ret = find_object(session, "cert", CKO_PUBLIC_KEY, &public); in main() 148 ret = find_object(session, "cert", CKO_PRIVATE_KEY, &private); in main() 159 ret = (*func->C_SignInit)(session, &mechanism, private); in main() [all …]
|
| H A D | ks_p11.c | 50 CK_SESSION_HANDLE session; member 131 CK_SESSION_HANDLE session; in p11_rsa_private_encrypt() local 144 ret = p11_get_session(NULL, p11rsa->p, p11rsa->slot, NULL, &session); in p11_rsa_private_encrypt() 148 ret = P11FUNC(p11rsa->p, SignInit, (session, &mechanism, key)); in p11_rsa_private_encrypt() 150 p11_put_session(p11rsa->p, p11rsa->slot, session); in p11_rsa_private_encrypt() 155 (session, (CK_BYTE *)(intptr_t)from, flen, to, &ck_sigsize)); in p11_rsa_private_encrypt() 156 p11_put_session(p11rsa->p, p11rsa->slot, session); in p11_rsa_private_encrypt() 169 CK_SESSION_HANDLE session; in p11_rsa_private_decrypt() local 182 ret = p11_get_session(NULL, p11rsa->p, p11rsa->slot, NULL, &session); in p11_rsa_private_decrypt() 186 ret = P11FUNC(p11rsa->p, DecryptInit, (session, &mechanism, key)); in p11_rsa_private_decrypt() [all …]
|
| /freebsd/crypto/krb5/src/plugins/preauth/pkinit/ |
| H A D | pkcs11.h | 714 typedef ck_rv_t (*ck_notify_t) (ck_session_handle_t session, 750 (ck_session_handle_t session, unsigned char *pin, 753 (ck_session_handle_t session, unsigned char *old_pin, 760 ck_session_handle_t *session)); 761 _CK_DECLARE_FUNCTION (C_CloseSession, (ck_session_handle_t session)); 764 (ck_session_handle_t session, 767 (ck_session_handle_t session, 771 (ck_session_handle_t session, 777 (ck_session_handle_t session, ck_user_type_t user_type, 779 _CK_DECLARE_FUNCTION (C_Logout, (ck_session_handle_t session)); [all …]
|
| /freebsd/crypto/heimdal/lib/hx509/ref/ |
| H A D | pkcs11.h | 716 typedef ck_rv_t (*ck_notify_t) (ck_session_handle_t session, 752 (ck_session_handle_t session, unsigned char *pin, 755 (ck_session_handle_t session, unsigned char *old_pin, 762 ck_session_handle_t *session)); 763 _CK_DECLARE_FUNCTION (C_CloseSession, (ck_session_handle_t session)); 766 (ck_session_handle_t session, 769 (ck_session_handle_t session, 773 (ck_session_handle_t session, 779 (ck_session_handle_t session, ck_user_type_t user_type, 781 _CK_DECLARE_FUNCTION (C_Logout, (ck_session_handle_t session)); [all …]
|
| /freebsd/sys/opencrypto/ |
| H A D | cryptodev_if.m | 42 * @brief Probe to see if a crypto driver supports a session. 45 * creating a session for symmetric crypto operations to determine if 47 * session. 49 * If the driver does not support a session with the requested 52 * If the driver does support a session with the requested parameters, 63 * @param csp crypto session parameters 65 * @retval negative if the driver supports this session - the 67 * driver for the session 68 * @retval EINVAL if the driver does not support the session 77 * @brief Initialize a new crypto session object [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | crypto_os.c | 166 zfs_crypto_dispatch(freebsd_crypt_session_t *session, struct cryptop *crp) in zfs_crypto_dispatch() argument 170 crp->crp_opaque = session; in zfs_crypto_dispatch() 183 mtx_lock(&session->fs_lock); in zfs_crypto_dispatch() 184 while (session->fs_done == false) { in zfs_crypto_dispatch() 185 msleep(crp, &session->fs_lock, 0, in zfs_crypto_dispatch() 188 mtx_unlock(&session->fs_lock); in zfs_crypto_dispatch() 199 session->fs_done = false; in zfs_crypto_dispatch() 336 freebsd_crypt_session_t *session = NULL; in freebsd_crypt_uio() local 346 session = kmem_zalloc(sizeof (*session), KM_SLEEP); in freebsd_crypt_uio() 347 error = freebsd_crypt_newsession(session, c_info, key); in freebsd_crypt_uio() [all …]
|
| /freebsd/contrib/wpa/src/crypto/ |
| H A D | tls_gnutls.c | 46 gnutls_session_t session; member 68 static int tls_connection_verify_peer(gnutls_session_t session); 204 ret = gnutls_init(&conn->session, in tls_gnutls_init_session() 212 ret = gnutls_set_default_priority(conn->session); in tls_gnutls_init_session() 216 ret = gnutls_priority_set_direct(conn->session, "NORMAL:-VERS-SSL3.0", in tls_gnutls_init_session() 224 gnutls_transport_set_pull_function(conn->session, tls_pull_func); in tls_gnutls_init_session() 225 gnutls_transport_set_push_function(conn->session, tls_push_func); in tls_gnutls_init_session() 226 gnutls_transport_set_ptr(conn->session, (gnutls_transport_ptr_t) conn); in tls_gnutls_init_session() 227 gnutls_session_set_ptr(conn->session, conn); in tls_gnutls_init_session() 234 gnutls_deinit(conn->session); in tls_gnutls_init_session() [all …]
|
| /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 45 For B<NSS> output, the session ID and master key are reported in NSS "keylog" 50 This specifies the input filename to read session information from or standard 55 This specifies the output filename to write session information to or standard 65 If a certificate is present in the session it will be output using this option, 70 This option prevents output of the encoded version of the session. 74 This option can set the session id so the output session information uses the [all …]
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/ |
| H A D | ampdu.c | 469 void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session, in brcms_c_ampdu_reset_session() argument 472 session->wlc = wlc; in brcms_c_ampdu_reset_session() 473 skb_queue_head_init(&session->skb_list); in brcms_c_ampdu_reset_session() 474 session->max_ampdu_len = 0; /* determined from first MPDU */ in brcms_c_ampdu_reset_session() 475 session->max_ampdu_frames = 0; /* determined from first MPDU */ in brcms_c_ampdu_reset_session() 476 session->ampdu_len = 0; in brcms_c_ampdu_reset_session() 477 session->dma_len = 0; in brcms_c_ampdu_reset_session() 485 int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session, in brcms_c_ampdu_add_frame() argument 488 struct brcms_c_info *wlc = session->wlc; in brcms_c_ampdu_add_frame() 510 ampdu_frames = skb_queue_len(&session->skb_list); in brcms_c_ampdu_add_frame() [all …]
|