| /dragonfly/sbin/iscontrol/ |
| HD | fsm.c | 70 tcpConnect(isess_t *sess) in tcpConnect() argument 72 isc_opt_t *op = sess->op; in tcpConnect() 78 if(sess->flags & (SESS_RECONNECT|SESS_REDIRECT)) { in tcpConnect() 79 syslog(LOG_INFO, "%s", (sess->flags & SESS_RECONNECT) in tcpConnect() 82 debug(1, "%s", (sess->flags & SESS_RECONNECT) ? "Reconnect": "Redirected"); in tcpConnect() 83 shutdown(sess->soc, SHUT_RDWR); in tcpConnect() 85 sess->soc = -1; in tcpConnect() 87 sess->flags &= ~SESS_CONNECTED; in tcpConnect() 88 if(sess->flags & SESS_REDIRECT) { in tcpConnect() 89 sess->redirect_cnt++; in tcpConnect() [all …]
|
| HD | login.c | 117 handleTgtResp(isess_t *sess, pdu_t *pp) in handleTgtResp() argument 119 isc_opt_t *op = sess->op; in handleTgtResp() 151 processParams(isess_t *sess, pdu_t *pp) in processParams() argument 153 isc_opt_t *op = sess->op; in processParams() 208 mp->func(sess, ptr+kp->len+1, GET); in processParams() 220 handleLoginResp(isess_t *sess, pdu_t *pp) in handleLoginResp() argument 255 processParams(sess, pp); in handleLoginResp() 256 setOptions(sess, 0); // XXX: just in case ... in handleLoginResp() 259 isc_opt_t *op = sess->op; in handleLoginResp() 261 if(sess->csg == SN_PHASE && (op->tgtChapDigest != NULL)) in handleLoginResp() [all …]
|
| HD | iscontrol.h | 46 typedef int auth_t(void *sess); 138 typedef int handler_t(isess_t *sess, pdu_t *pp); 140 int authenticateLogin(isess_t *sess); 142 int sendPDU(isess_t *sess, pdu_t *pp, handler_t *hdlr); 145 int xmitpdu(isess_t *sess, pdu_t *pp); 146 int recvpdu(isess_t *sess, pdu_t *pp); 163 int negotiateOPV(isess_t *sess); 164 int setOptions(isess_t *sess, int flag); 166 int loginPhase(isess_t *sess);
|
| HD | pdu.c | 47 xmitpdu(isess_t *sess, pdu_t *pp) in xmitpdu() argument 49 if(ioctl(sess->fd, ISCSISEND, pp)) { in xmitpdu() 60 recvpdu(isess_t *sess, pdu_t *pp) in recvpdu() argument 62 if(ioctl(sess->fd, ISCSIRECV, pp)) { in recvpdu() 75 sendPDU(isess_t *sess, pdu_t *pp, handler_t *hdlr) in sendPDU() argument 77 if(xmitpdu(sess, pp)) in sendPDU() 88 if((res = recvpdu(sess, pp)) != 0) { in sendPDU() 92 res = hdlr(sess, pp); in sendPDU()
|
| /dragonfly/contrib/wpa_supplicant/src/eap_common/ |
| HD | eap_eke_common.c | 303 int eap_eke_derive_key(struct eap_eke_session *sess, in eap_eke_derive_key() argument 314 os_memset(zeros, 0, sess->prf_len); in eap_eke_derive_key() 315 if (eap_eke_prf(sess->prf, zeros, sess->prf_len, in eap_eke_derive_key() 319 temp, sess->prf_len); in eap_eke_derive_key() 329 if (eap_eke_prfplus(sess->prf, temp, sess->prf_len, in eap_eke_derive_key() 342 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub, in eap_eke_dhcomp() argument 349 dh_len = eap_eke_dh_len(sess->dhgroup); in eap_eke_dhcomp() 359 if (sess->encr != EAP_EKE_ENCR_AES128_CBC) in eap_eke_dhcomp() 377 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, in eap_eke_shared_secret() argument 386 dh = eap_eke_dh_group(sess->dhgroup); in eap_eke_shared_secret() [all …]
|
| HD | eap_eke_common.h | 81 int eap_eke_session_init(struct eap_eke_session *sess, u8 dhgroup, u8 encr, 83 void eap_eke_session_clean(struct eap_eke_session *sess); 85 int eap_eke_derive_key(struct eap_eke_session *sess, 89 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub, 91 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, 93 int eap_eke_derive_ke_ki(struct eap_eke_session *sess, 96 int eap_eke_derive_ka(struct eap_eke_session *sess, 100 int eap_eke_derive_msk(struct eap_eke_session *sess, 105 int eap_eke_prot(struct eap_eke_session *sess, 108 int eap_eke_decrypt_prot(struct eap_eke_session *sess, [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/radius/ |
| HD | radius_server.c | 427 void srv_log(struct radius_session *sess, const char *fmt, ...) 430 void srv_log(struct radius_session *sess, const char *fmt, ...) in srv_log() argument 447 RADIUS_DEBUG("[0x%x %s] %s", sess->sess_id, sess->nas_ip, buf); in srv_log() 450 if (sess->server->db) { in srv_log() 457 sess->sess_id, sess->nas_ip, in srv_log() 458 sess->username, buf); in srv_log() 460 if (sqlite3_exec(sess->server->db, sql, NULL, NULL, in srv_log() 463 sqlite3_errmsg(sess->server->db)); in srv_log() 516 struct radius_session *sess = client->sessions; in radius_server_get_session() local 518 while (sess) { in radius_server_get_session() [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/eap_server/ |
| HD | eap_server_eke.c | 29 struct eap_eke_session sess; member 104 eap_eke_session_clean(&data->sess); in eap_eke_reset() 253 if (eap_eke_derive_key(&data->sess, sm->user->password, in eap_eke_build_commit() 262 msg = eap_eke_build_msg(data, id, data->sess.dhcomp_len, in eap_eke_build_commit() 277 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_build_commit() 283 if (eap_eke_dhcomp(&data->sess, data->key, pub, in eap_eke_build_commit() 284 wpabuf_put(msg, data->sess.dhcomp_len)) in eap_eke_build_commit() 313 plen = data->sess.pnonce_ps_len + data->sess.prf_len; in eap_eke_build_confirm() 320 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm() 326 data->nonce_s, data->sess.nonce_len); in eap_eke_build_confirm() [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/eap_peer/ |
| HD | eap_eke.c | 27 struct eap_eke_session sess; member 136 eap_eke_session_clean(&data->sess); in eap_eke_deinit() 209 eap_eke_session_clean(&data->sess); in eap_eke_build_fail() 283 if (eap_eke_session_init(&data->sess, prop[0], prop[1], prop[2], in eap_eke_process_id() 387 if (pos + data->sess.dhcomp_len > end) { in eap_eke_process_commit() 394 pos, data->sess.dhcomp_len); in eap_eke_process_commit() 396 pos += data->sess.dhcomp_len; in eap_eke_process_commit() 403 if (eap_eke_derive_key(&data->sess, password, password_len, in eap_eke_process_commit() 415 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_process_commit() 422 if (eap_eke_shared_secret(&data->sess, key, data->dh_priv, dhcomp) < 0) in eap_eke_process_commit() [all …]
|
| /dragonfly/crypto/libressl/ssl/ |
| HD | ssl_sess.c | 162 SSL_SESSION *sess; in SSL_get1_session() local 170 sess = ssl->session; in SSL_get1_session() 171 if (sess) in SSL_get1_session() 172 sess->references++; in SSL_get1_session() 175 return (sess); in SSL_get1_session() 430 SSL_SESSION *sess; in ssl_session_from_cache() local 446 sess = lh_SSL_SESSION_retrieve(s->session_ctx->internal->sessions, &data); in ssl_session_from_cache() 447 if (sess != NULL) in ssl_session_from_cache() 448 CRYPTO_add(&sess->references, 1, CRYPTO_LOCK_SSL_SESSION); in ssl_session_from_cache() 451 if (sess == NULL) in ssl_session_from_cache() [all …]
|
| HD | t1_lib.c | 982 SSL_SESSION *sess = NULL; in tls_decrypt_ticket() local 1106 if ((sess = d2i_SSL_SESSION(NULL, &p, slen)) == NULL) in tls_decrypt_ticket() 1108 *psess = sess; in tls_decrypt_ticket() 1109 sess = NULL; in tls_decrypt_ticket() 1129 SSL_SESSION_free(sess); in tls_decrypt_ticket()
|
| /dragonfly/sys/kern/ |
| HD | kern_kinfo.c | 119 struct session *sess; in fill_kinfo_proc() local 124 sess = pgrp ? pgrp->pg_session : NULL; in fill_kinfo_proc() 176 if (sess) { in fill_kinfo_proc() 177 kp->kp_sid = sess->s_sid; in fill_kinfo_proc() 178 bcopy(sess->s_login, kp->kp_login, MAXLOGNAME); in fill_kinfo_proc() 179 if (sess->s_ttyvp != NULL) in fill_kinfo_proc() 184 if (sess && (p->p_flags & P_CONTROLT) != 0 && sess->s_ttyp != NULL) { in fill_kinfo_proc() 185 kp->kp_tdev = devid_from_dev(sess->s_ttyp->t_dev); in fill_kinfo_proc() 186 if (sess->s_ttyp->t_pgrp != NULL) in fill_kinfo_proc() 187 kp->kp_tpgid = sess->s_ttyp->t_pgrp->pg_id; in fill_kinfo_proc() [all …]
|
| HD | kern_proc.c | 237 sessinsertinit(struct session *sess) in sessinsertinit() argument 239 LIST_INSERT_HEAD(&procglob[ALLPROC_HASH(sess->s_sid)].allsess, in sessinsertinit() 240 sess, s_list); in sessinsertinit() 772 struct session *sess; in enterpgrp() local 777 sess = kmalloc(sizeof(struct session), M_SESSION, in enterpgrp() 780 sess->s_prg = prg; in enterpgrp() 781 sess->s_leader = p; in enterpgrp() 782 sess->s_sid = p->p_pid; in enterpgrp() 783 sess->s_count = 1; in enterpgrp() 784 sess->s_ttyvp = NULL; in enterpgrp() [all …]
|
| HD | subr_prf.c | 175 tprintf_close(tpr_t sess) in tprintf_close() argument 177 if (sess) in tprintf_close() 178 sess_rele((struct session *) sess); in tprintf_close() 188 struct session *sess = (struct session *)tpr; in tprintf() local 195 if (sess && sess->s_ttyvp && ttycheckoutq(sess->s_ttyp, 0)) { in tprintf() 197 tp = sess->s_ttyp; in tprintf()
|
| HD | vfs_vnops.c | 1026 struct session *sess; in vn_ioctl() local 1034 sess = p->p_session; in vn_ioctl() 1036 if (sess->s_ttyvp == vp) { in vn_ioctl() 1043 ovp = sess->s_ttyvp; in vn_ioctl() 1045 sess->s_ttyvp = vp; in vn_ioctl()
|
| /dragonfly/lib/libdmsg/ |
| HD | crypto.c | 511 assert(sizeof(handtx.verf) * 4 == sizeof(handtx.sess)); in dmsg_crypto_negotiate() 517 for (i = 0; i < sizeof(handtx.sess); ++i) in dmsg_crypto_negotiate() 518 handtx.verf[i / 4] ^= handtx.sess[i]; in dmsg_crypto_negotiate() 617 for (i = 0; i < sizeof(handrx.sess); ++i) in dmsg_crypto_negotiate() 618 handrx.verf[i / 4] ^= handrx.sess[i]; in dmsg_crypto_negotiate() 632 (char*)handrx.sess, in dmsg_crypto_negotiate() 634 (char*)handrx.sess + crypto_algos[DMSG_CRYPTO_ALGO].keylen, in dmsg_crypto_negotiate() 635 sizeof(handrx.sess) - crypto_algos[DMSG_CRYPTO_ALGO].keylen, in dmsg_crypto_negotiate() 641 (char*)handtx.sess, in dmsg_crypto_negotiate() 643 (char*)handtx.sess + crypto_algos[DMSG_CRYPTO_ALGO].keylen, in dmsg_crypto_negotiate() [all …]
|
| /dragonfly/sys/vfs/procfs/ |
| HD | procfs_status.c | 68 struct session *sess; in procfs_dostatus() local 85 sess = p->p_pgrp->pg_session; in procfs_dostatus() 86 sid = sess->s_leader ? sess->s_leader->p_pid : 0; in procfs_dostatus() 102 if ((p->p_flags & P_CONTROLT) && (tp = sess->s_ttyp)) in procfs_dostatus() 111 if (sess->s_ttyvp) { in procfs_dostatus()
|
| /dragonfly/contrib/wpa_supplicant/src/crypto/ |
| HD | tls_wolfssl.c | 176 static void remove_session_cb(WOLFSSL_CTX *ctx, WOLFSSL_SESSION *sess) in remove_session_cb() argument 180 buf = wolfSSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb() 185 buf, sess); in remove_session_cb() 188 wolfSSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb() 2144 WOLFSSL_SESSION *sess; in tls_connection_remove_session() local 2146 sess = wolfSSL_get_session(conn->ssl); in tls_connection_remove_session() 2147 if (!sess) in tls_connection_remove_session() 2150 wolfSSL_SSL_SESSION_set_timeout(sess, 0); in tls_connection_remove_session() 2159 WOLFSSL_SESSION *sess; in tls_connection_set_success_data() local 2164 sess = wolfSSL_get_session(conn->ssl); in tls_connection_set_success_data() [all …]
|
| HD | tls_openssl.c | 933 static void remove_session_cb(SSL_CTX *ctx, SSL_SESSION *sess) in remove_session_cb() argument 939 buf = SSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb() 944 buf, sess); in remove_session_cb() 947 SSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb() 4058 SSL_SESSION *sess; in tls_connection_get_eap_fast_key() local 4082 sess = SSL_get_session(ssl); in tls_connection_get_eap_fast_key() 4083 if (!ver || !sess) in tls_connection_get_eap_fast_key() 4102 master_key_len = SSL_SESSION_get_master_key(sess, master_key, in tls_connection_get_eap_fast_key() 5456 SSL_SESSION *sess; in tls_connection_set_success_data() local 5461 sess = SSL_get_session(conn->ssl); in tls_connection_set_success_data() [all …]
|
| /dragonfly/usr.bin/who/ |
| HD | who.c | 59 uint16_t term, uint16_t xit, uint16_t sess, uint16_t type); 276 ep->term, ep->exit, ep->sess, ep->type); in eprint() 281 pid_t pid, uint16_t term, uint16_t xit, uint16_t sess, uint16_t type) in print() argument 335 (void)printf(" sess=%d", sess); in print()
|
| HD | utmpentry.h | 46 uint16_t sess; member
|
| HD | utmpentry.c | 203 e->sess = up->ut_session; in getentryx()
|
| /dragonfly/lib/libkvm/ |
| HD | kvm_proc.c | 203 struct session sess; in kvm_proclist() local 276 if (KREAD(kd, (u_long)pgrp.pg_session, &sess)) { in kvm_proclist() 281 pgrp.pg_session = &sess; in kvm_proclist() 283 if ((proc.p_flags & P_CONTROLT) && sess.s_ttyp != NULL) { in kvm_proclist() 284 if (KREAD(kd, (u_long)sess.s_ttyp, &tty)) { in kvm_proclist() 286 "can't read tty at %p", sess.s_ttyp); in kvm_proclist() 289 sess.s_ttyp = &tty; in kvm_proclist()
|
| /dragonfly/crypto/libressl/include/openssl/ |
| HD | ssl.h | 593 int (*new_session_cb)(struct ssl_st *ssl, SSL_SESSION *sess)); 595 SSL_SESSION *sess); 597 void (*remove_session_cb)(struct ssl_ctx_st *ctx, SSL_SESSION *sess)); 599 SSL_SESSION *sess); 650 const unsigned char **id, size_t *idlen, SSL_SESSION **sess); 1232 uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *sess); 1233 int SSL_SESSION_set_max_early_data(SSL_SESSION *sess, uint32_t max_early_data);
|
| /dragonfly/crypto/libressl/apps/openssl/ |
| HD | s_client.c | 1084 SSL_SESSION *sess; in s_client_main() local 1092 sess = PEM_read_bio_SSL_SESSION(stmp, NULL, 0, NULL); in s_client_main() 1094 if (!sess) { in s_client_main() 1100 SSL_set_session(con, sess); in s_client_main() 1101 SSL_SESSION_free(sess); in s_client_main()
|