/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
H A D | 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 in eap_eke_dhcomp() 377 eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, const u8 *dhpriv, const u8 *peer_dhcomp) eap_eke_shared_secret() argument 422 eap_eke_derive_ke_ki(struct eap_eke_session *sess, const u8 *id_s, size_t id_s_len, const u8 *id_p, size_t id_p_len) eap_eke_derive_ke_ki() argument 476 eap_eke_derive_ka(struct eap_eke_session *sess, const u8 *id_s, size_t id_s_len, const u8 *id_p, size_t id_p_len, const u8 *nonce_p, const u8 *nonce_s) eap_eke_derive_ka() argument 521 eap_eke_derive_msk(struct eap_eke_session *sess, const u8 *id_s, size_t id_s_len, const u8 *id_p, size_t id_p_len, const u8 *nonce_p, const u8 *nonce_s, u8 *msk, u8 *emsk) eap_eke_derive_msk() argument 583 eap_eke_prot(struct eap_eke_session *sess, const u8 *data, size_t data_len, u8 *prot, size_t *prot_len) eap_eke_prot() argument 637 eap_eke_decrypt_prot(struct eap_eke_session *sess, const u8 *prot, size_t prot_len, u8 *data, size_t *data_len) eap_eke_decrypt_prot() argument 686 eap_eke_auth(struct eap_eke_session *sess, const char *label, const struct wpabuf *msgs, u8 *auth) eap_eke_auth() argument 699 eap_eke_session_init(struct eap_eke_session *sess, u8 dhgroup, u8 encr, u8 prf, u8 mac) eap_eke_session_init() argument 722 eap_eke_session_clean(struct eap_eke_session *sess) eap_eke_session_clean() argument [all...] |
H A D | 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...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
H A D | 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 in eap_eke_dhcomp() 377 eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, const u8 *dhpriv, const u8 *peer_dhcomp) eap_eke_shared_secret() argument 422 eap_eke_derive_ke_ki(struct eap_eke_session *sess, const u8 *id_s, size_t id_s_len, const u8 *id_p, size_t id_p_len) eap_eke_derive_ke_ki() argument 476 eap_eke_derive_ka(struct eap_eke_session *sess, const u8 *id_s, size_t id_s_len, const u8 *id_p, size_t id_p_len, const u8 *nonce_p, const u8 *nonce_s) eap_eke_derive_ka() argument 521 eap_eke_derive_msk(struct eap_eke_session *sess, const u8 *id_s, size_t id_s_len, const u8 *id_p, size_t id_p_len, const u8 *nonce_p, const u8 *nonce_s, u8 *msk, u8 *emsk) eap_eke_derive_msk() argument 583 eap_eke_prot(struct eap_eke_session *sess, const u8 *data, size_t data_len, u8 *prot, size_t *prot_len) eap_eke_prot() argument 637 eap_eke_decrypt_prot(struct eap_eke_session *sess, const u8 *prot, size_t prot_len, u8 *data, size_t *data_len) eap_eke_decrypt_prot() argument 686 eap_eke_auth(struct eap_eke_session *sess, const char *label, const struct wpabuf *msgs, u8 *auth) eap_eke_auth() argument 699 eap_eke_session_init(struct eap_eke_session *sess, u8 dhgroup, u8 encr, u8 prf, u8 mac) eap_eke_session_init() argument 722 eap_eke_session_clean(struct eap_eke_session *sess) eap_eke_session_clean() argument [all...] |
H A D | 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...] |
/foundation/multimodalinput/input/service/event_handler/src/ |
H A D | anr_manager.cpp | 59 SessionPtr sess = udsServer_->GetSessionByPid(pid); in MarkProcessed() local 60 if (sess == nullptr) { in MarkProcessed() 63 MMI_HILOGE("The sess is null, return value is %{public}d", RET_ERR); in MarkProcessed() 67 std::list<int32_t> timerIds = sess->DelEvents(eventType, eventId); in MarkProcessed() 79 void ANRManager::RemoveTimers(SessionPtr sess) in RemoveTimers() argument 81 CHKPV(sess); in RemoveTimers() 82 std::vector<int32_t> DispatchTimerIds = sess->GetTimerIds(ANR_DISPATCH); in RemoveTimers() 89 std::vector<int32_t> MonitorTimerIds = sess->GetTimerIds(ANR_MONITOR); in RemoveTimers() 98 void ANRManager::RemoveTimersByType(SessionPtr sess, int32_t type) in RemoveTimersByType() argument 100 CHKPV(sess); in RemoveTimersByType() 114 AddTimer(int32_t type, int32_t id, int64_t currentTime, SessionPtr sess) AddTimer() argument 163 TriggerANR(int32_t type, int64_t time, SessionPtr sess) TriggerANR() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/ |
H A D | 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 in srv_log() 516 struct radius_session *sess = client->sessions; radius_server_get_session() local 529 radius_server_session_free(struct radius_server_data *data, struct radius_session *sess) radius_server_session_free() argument 545 radius_server_session_remove(struct radius_server_data *data, struct radius_session *sess) radius_server_session_remove() argument 575 struct radius_session *sess = timeout_ctx; radius_server_session_remove_timeout() local 584 struct radius_session *sess = timeout_ctx; radius_server_session_timeout() local 595 struct radius_session *sess; radius_server_new_session() local 620 radius_server_testing_options_tls(struct radius_session *sess, const char *tls, struct eap_config *eap_conf) radius_server_testing_options_tls() argument 666 radius_server_testing_options(struct radius_session *sess, struct eap_config *eap_conf) radius_server_testing_options() argument 709 struct radius_session *sess; radius_server_get_new_session() local 832 radius_srv_hs20_t_c_pending(struct radius_session *sess) radius_srv_hs20_t_c_pending() argument 872 radius_server_add_session(struct radius_session *sess) radius_server_add_session() argument 902 db_update_last_msk(struct radius_session *sess, const char *msk) db_update_last_msk() argument 952 radius_server_is_sim_method(struct radius_session *sess) radius_server_is_sim_method() argument 1009 radius_server_sim_provisioning_session(struct radius_session *sess, const u8 *hash) radius_server_sim_provisioning_session() argument 1062 radius_server_encapsulate_eap(struct radius_server_data *data, struct radius_client *client, struct radius_session *sess, struct radius_msg *request) radius_server_encapsulate_eap() argument 1323 radius_server_macacl(struct radius_server_data *data, struct radius_client *client, struct radius_session *sess, struct radius_msg *request) radius_server_macacl() argument 1464 radius_server_hs20_t_c_check(struct radius_session *sess, struct radius_msg *msg) radius_server_hs20_t_c_check() argument 1520 struct radius_session *sess; radius_server_request() local 2705 struct radius_session *sess = ctx; radius_server_get_eap_user() local 2729 struct radius_session *sess = ctx; radius_server_get_eap_req_id_text() local 2738 struct radius_session *sess = ctx; radius_server_log_msg() local 2747 struct radius_session *sess = ctx; radius_server_get_erp_domain() local 2757 struct radius_session *sess = ctx; radius_server_erp_get_key() local 2766 struct radius_session *sess = ctx; radius_server_erp_add_key() local 2801 struct radius_session *s, *sess = NULL; radius_server_eap_pending_cb() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/ |
H A D | radius_server.c | 284 void srv_log(struct radius_session *sess, const char *fmt, ...) 287 void srv_log(struct radius_session *sess, const char *fmt, ...) in srv_log() argument 304 RADIUS_DEBUG("[0x%x %s] %s", sess->sess_id, sess->nas_ip, buf); in srv_log() 307 if (sess->server->db) { in srv_log() 314 sess->sess_id, sess->nas_ip, in srv_log() 315 sess->username, buf); in srv_log() 317 if (sqlite3_exec(sess->server->db, sql, NULL, NULL, in srv_log() 320 sqlite3_errmsg(sess in srv_log() 373 struct radius_session *sess = client->sessions; radius_server_get_session() local 386 radius_server_session_free(struct radius_server_data *data, struct radius_session *sess) radius_server_session_free() argument 402 radius_server_session_remove(struct radius_server_data *data, struct radius_session *sess) radius_server_session_remove() argument 432 struct radius_session *sess = timeout_ctx; radius_server_session_remove_timeout() local 441 struct radius_session *sess = timeout_ctx; radius_server_session_timeout() local 452 struct radius_session *sess; radius_server_new_session() local 477 radius_server_testing_options_tls(struct radius_session *sess, const char *tls, struct eap_session_data *eap_conf) radius_server_testing_options_tls() argument 523 radius_server_testing_options(struct radius_session *sess, struct eap_session_data *eap_conf) radius_server_testing_options() argument 566 struct radius_session *sess; radius_server_get_new_session() local 665 radius_srv_hs20_t_c_pending(struct radius_session *sess) radius_srv_hs20_t_c_pending() argument 705 radius_server_add_session(struct radius_session *sess) radius_server_add_session() argument 735 db_update_last_msk(struct radius_session *sess, const char *msk) db_update_last_msk() argument 785 radius_server_is_sim_method(struct radius_session *sess) radius_server_is_sim_method() argument 842 radius_server_sim_provisioning_session(struct radius_session *sess, const u8 *hash) radius_server_sim_provisioning_session() argument 895 radius_server_encapsulate_eap(struct radius_server_data *data, struct radius_client *client, struct radius_session *sess, struct radius_msg *request) radius_server_encapsulate_eap() argument 1156 radius_server_macacl(struct radius_server_data *data, struct radius_client *client, struct radius_session *sess, struct radius_msg *request) radius_server_macacl() argument 1297 radius_server_hs20_t_c_check(struct radius_session *sess, struct radius_msg *msg) radius_server_hs20_t_c_check() argument 1353 struct radius_session *sess; radius_server_request() local 2508 struct radius_session *sess = ctx; radius_server_get_eap_user() local 2532 struct radius_session *sess = ctx; radius_server_get_eap_req_id_text() local 2541 struct radius_session *sess = ctx; radius_server_log_msg() local 2550 struct radius_session *sess = ctx; radius_server_get_erp_domain() local 2560 struct radius_session *sess = ctx; radius_server_erp_get_key() local 2569 struct radius_session *sess = ctx; radius_server_erp_add_key() local 2604 struct radius_session *s, *sess = NULL; radius_server_eap_pending_cb() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/modes/ |
H A D | ocb128.c | 233 memset(&ctx->sess, 0, sizeof(ctx->sess)); in CRYPTO_ocb128_setiv() 255 ocb_block_lshift(stretch + (bottom / 8), shift, ctx->sess.offset.c); in CRYPTO_ocb128_setiv() 258 ctx->sess.offset.c[15] |= in CRYPTO_ocb128_setiv() 277 all_num_blocks = num_blocks + ctx->sess.blocks_hashed; in CRYPTO_ocb128_aad() 280 for (i = ctx->sess.blocks_hashed + 1; i <= all_num_blocks; i++) { in CRYPTO_ocb128_aad() 287 ocb_block16_xor(&ctx->sess.offset_aad, lookup, &ctx->sess.offset_aad); in CRYPTO_ocb128_aad() 293 ocb_block16_xor(&ctx->sess.offset_aad, &tmp, &tmp); in CRYPTO_ocb128_aad() 295 ocb_block16_xor(&tmp, &ctx->sess in CRYPTO_ocb128_aad() [all...] |
/third_party/openssl/crypto/modes/ |
H A D | ocb128.c | 233 memset(&ctx->sess, 0, sizeof(ctx->sess)); in CRYPTO_ocb128_setiv() 255 ocb_block_lshift(stretch + (bottom / 8), shift, ctx->sess.offset.c); in CRYPTO_ocb128_setiv() 258 ctx->sess.offset.c[15] |= in CRYPTO_ocb128_setiv() 277 all_num_blocks = num_blocks + ctx->sess.blocks_hashed; in CRYPTO_ocb128_aad() 280 for (i = ctx->sess.blocks_hashed + 1; i <= all_num_blocks; i++) { in CRYPTO_ocb128_aad() 287 ocb_block16_xor(&ctx->sess.offset_aad, lookup, &ctx->sess.offset_aad); in CRYPTO_ocb128_aad() 293 ocb_block16_xor(&ctx->sess.offset_aad, &tmp, &tmp); in CRYPTO_ocb128_aad() 295 ocb_block16_xor(&tmp, &ctx->sess in CRYPTO_ocb128_aad() [all...] |
/foundation/multimodalinput/input/service/event_handler/test/ |
H A D | anr_manager_test.cpp | 74 SessionPtr sess; in HWTEST_F() local 75 ASSERT_NO_FATAL_FAILURE(ANRMgr->RemoveTimers(sess)); in HWTEST_F() 170 SessionPtr sess = std::shared_ptr<OHOS::MMI::UDSSession>(); in HWTEST_F() local 171 ASSERT_NO_FATAL_FAILURE(ANRMgr->AddTimer(type, id, currentTime, sess)); in HWTEST_F() 186 SessionPtr sess = std::shared_ptr<OHOS::MMI::UDSSession>(); in HWTEST_F() local 187 ASSERT_NO_FATAL_FAILURE(ANRMgr->AddTimer(type, id, currentTime, sess)); in HWTEST_F() 201 SessionPtr sess = std::shared_ptr<OHOS::MMI::UDSSession>(); in HWTEST_F() local 202 bool result = ANRMgr->TriggerANR(type, time, sess); in HWTEST_F() 229 * <br> if (sess->GetTokenType() != TokenType::TOKEN_HAP || sess 241 SessionPtr sess = std::make_shared<UDSSession>(programName, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 262 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 281 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 298 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 321 SessionPtr sess = std::make_shared<UDSSession>(programName, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 351 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
H A D | 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 in eap_eke_build_confirm() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
H A D | 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 in eap_eke_build_confirm() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | 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, ke in eap_eke_process_commit() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | 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, ke in eap_eke_process_commit() [all...] |
/foundation/multimodalinput/input/service/message_handle/src/ |
H A D | server_msg_handler.cpp | 72 {MmiMessageId::DISPLAY_INFO, [this] (SessionPtr sess, NetPacket &pkt) { in Init() 73 return this->OnDisplayInfo(sess, pkt); }}, in Init() 75 {MmiMessageId::WINDOW_AREA_INFO, [this] (SessionPtr sess, NetPacket &pkt) { in Init() 76 return this->OnWindowAreaInfo(sess, pkt); }}, in Init() 78 {MmiMessageId::WINDOW_INFO, [this] (SessionPtr sess, NetPacket &pkt) { in Init() 79 return this->OnWindowGroupInfo(sess, pkt); }}, in Init() 80 {MmiMessageId::WINDOW_STATE_ERROR_CALLBACK, [this] (SessionPtr sess, NetPacket &pkt) { in Init() 81 return this->RegisterWindowStateErrorCallback(sess, pkt); }}, in Init() 83 {MmiMessageId::SCINFO_CONFIG, [this] (SessionPtr sess, NetPacket &pkt) { in Init() 84 return this->OnEnhanceConfig(sess, pk in Init() 97 OnMsgHandler(SessionPtr sess, NetPacket& pkt) OnMsgHandler() argument 510 OnDisplayInfo(SessionPtr sess, NetPacket &pkt) OnDisplayInfo() argument 559 OnWindowAreaInfo(SessionPtr sess, NetPacket &pkt) OnWindowAreaInfo() argument 577 OnWindowGroupInfo(SessionPtr sess, NetPacket &pkt) OnWindowGroupInfo() argument 607 RegisterWindowStateErrorCallback(SessionPtr sess, NetPacket &pkt) RegisterWindowStateErrorCallback() argument 617 OnEnhanceConfig(SessionPtr sess, NetPacket &pkt) OnEnhanceConfig() argument 645 OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, int32_t priority, uint32_t deviceTags) OnAddInputHandler() argument 667 OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, int32_t priority, uint32_t deviceTags) OnRemoveInputHandler() argument 690 OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType) OnAddInputHandler() argument 705 OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType) OnRemoveInputHandler() argument 723 OnAddGestureMonitor(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, TouchGestureType gestureType, int32_t fingers) OnAddGestureMonitor() argument 736 OnRemoveGestureMonitor(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, TouchGestureType gestureType, int32_t fingers) OnRemoveGestureMonitor() argument 751 OnMarkConsumed(SessionPtr sess, int32_t eventId) OnMarkConsumed() argument 783 auto sess = server->GetSessionByPid(pid); OnSubscribeKeyEvent() local 794 auto sess = server->GetSessionByPid(pid); OnUnsubscribeKeyEvent() local 806 auto sess = server->GetSessionByPid(pid); OnSubscribeHotkey() local 817 auto sess = server->GetSessionByPid(pid); OnUnsubscribeHotkey() local 831 auto sess = server->GetSessionByPid(pid); OnSubscribeSwitchEvent() local 842 auto sess = server->GetSessionByPid(pid); OnUnsubscribeSwitchEvent() local [all...] |
/foundation/multimodalinput/input/service/subscriber/test/ |
H A D | switch_subscriber_handler_test.cpp | 132 auto sess = std::make_shared<UDSSession>( in HWTEST_F() local 134 ASSERT_NE(sess, nullptr); in HWTEST_F() 136 SUBSCRIBER_ID, sess, SwitchEvent::SwitchType::SWITCH_PRIVACY); in HWTEST_F() 159 auto sess = std::make_shared<UDSSession>( in HWTEST_F() local 161 ASSERT_NE(sess, nullptr); in HWTEST_F() 164 sess, SUBSCRIBER_ID, SwitchEvent::SwitchType::SWITCH_PRIVACY), RET_OK); in HWTEST_F() 206 auto sess = std::make_shared<UDSSession>( in HWTEST_F() local 208 ASSERT_NE(sess, nullptr); in HWTEST_F() 220 ASSERT_EQ(switchSubscriberHandler->SubscribeSwitchEvent(sess, SUBSCRIBER_ID, in HWTEST_F() 223 ASSERT_EQ(switchSubscriberHandler->UnsubscribeSwitchEvent(sess, SUBSCRIBER_I in HWTEST_F() 234 auto sess = std::make_shared<UDSSession>( HWTEST_F() local 259 auto sess = std::make_shared<UDSSession>( HWTEST_F() local 284 auto sess = std::make_shared<UDSSession>( HWTEST_F() local 343 auto sess = std::make_shared<UDSSession>( HWTEST_F() local 392 auto sess = std::make_shared<UDSSession>( HWTEST_F() local [all...] |
H A D | key_subscriber_handler_test.cpp | 239 SessionPtr sess; in HWTEST_F() local 244 auto subscriber = std::make_shared<OHOS::MMI::KeySubscriberHandler::Subscriber>(1, sess, keyOption); in HWTEST_F() 268 SessionPtr sess = udsServer.GetSessionByPid(1); in HWTEST_F() local 270 ASSERT_EQ(keySubscriberHandler.SubscribeKeyEvent(sess, -1, keyOption), -1); in HWTEST_F() 273 ASSERT_NE(keySubscriberHandler.UnsubscribeKeyEvent(sess, 1), 0); in HWTEST_F() 343 SessionPtr sess; in HWTEST_F() local 345 int32_t ret = handler.SubscribeKeyEvent(sess, -1, keyOption); in HWTEST_F() 349 ret = handler.SubscribeKeyEvent(sess, 1, keyOption); in HWTEST_F() 363 SessionPtr sess; in HWTEST_F() local 364 int32_t ret = handler.RemoveSubscriber(sess, in HWTEST_F() 588 SessionPtr sess; HWTEST_F() local 740 SessionPtr sess = udsServer.GetSessionByPid(1); HWTEST_F() local 764 SessionPtr sess; HWTEST_F() local 784 SessionPtr sess; HWTEST_F() local 802 SessionPtr sess; HWTEST_F() local 838 SessionPtr sess; HWTEST_F() local 861 SessionPtr sess = udsServer.GetSessionByPid(1); HWTEST_F() local 901 SessionPtr sess; HWTEST_F() local 1124 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 1388 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 1729 SessionPtr sess; HWTEST_F() local 1784 SessionPtr sess; HWTEST_F() local 1827 SessionPtr sess; HWTEST_F() local 2127 SessionPtr sess; HWTEST_F() local 2145 SessionPtr sess; HWTEST_F() local 2181 SessionPtr sess; HWTEST_F() local 2217 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2257 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2276 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2297 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2356 SessionPtr sess; HWTEST_F() local 2382 SessionPtr sess; HWTEST_F() local 2404 SessionPtr sess; HWTEST_F() local 2435 SessionPtr sess; HWTEST_F() local 2465 SessionPtr sess; HWTEST_F() local 2487 SessionPtr sess; HWTEST_F() local 2513 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2531 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2550 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2569 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2591 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2613 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2634 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2661 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2681 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2701 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 2721 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local [all...] |
/foundation/multimodalinput/input/service/message_handle/include/ |
H A D | server_msg_handler.h | 49 typedef std::function<int32_t(SessionPtr sess, NetPacket& pkt)> ServerMsgFun; 57 void OnMsgHandler(SessionPtr sess, NetPacket& pkt); 59 int32_t OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, 61 int32_t OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, 63 int32_t OnAddGestureMonitor(SessionPtr sess, InputHandlerType handlerType, 65 int32_t OnRemoveGestureMonitor(SessionPtr sess, InputHandlerType handlerType, 67 int32_t OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType); 68 int32_t OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType); 71 int32_t OnMarkConsumed(SessionPtr sess, int32_t eventId); 116 int32_t RegisterWindowStateErrorCallback(SessionPtr sess, NetPacke [all...] |
/foundation/multimodalinput/input/service/subscriber/src/ |
H A D | key_subscriber_handler.cpp | 106 SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption) in SubscribeKeyEvent() 113 CHKPR(sess, ERROR_NULL_POINTER); in SubscribeKeyEvent() 127 keyOption->GetFinalKeyDownDuration(), sess->GetPid()); in SubscribeKeyEvent() 128 auto subscriber = std::make_shared<Subscriber>(subscribeId, sess, keyOption); in SubscribeKeyEvent() 146 int32_t KeySubscriberHandler::UnsubscribeKeyEvent(SessionPtr sess, int32_t subscribeId) in UnsubscribeKeyEvent() argument 148 CHKPR(sess, ERROR_NULL_POINTER); in UnsubscribeKeyEvent() 149 MMI_HILOGI("SubscribeId:%{public}d, pid:%{public}d", subscribeId, sess->GetPid()); in UnsubscribeKeyEvent() 150 int32_t ret = RemoveSubscriber(sess, subscribeId, true); in UnsubscribeKeyEvent() 152 ret = RemoveKeyGestureSubscriber(sess, subscribeId); in UnsubscribeKeyEvent() 157 int32_t KeySubscriberHandler::RemoveSubscriber(SessionPtr sess, int32_ argument 105 SubscribeKeyEvent( SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption) SubscribeKeyEvent() argument 211 RemoveKeyGestureSubscriber(SessionPtr sess, int32_t subscribeId) RemoveKeyGestureSubscriber() argument 285 SubscribeHotkey( SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption) SubscribeHotkey() argument 312 UnsubscribeHotkey(SessionPtr sess, int32_t subscribeId) UnsubscribeHotkey() argument 606 OnSessionDelete(SessionPtr sess) OnSessionDelete() argument 695 auto sess = item->sess_; IsMatchForegroundPid() local 728 auto sess = subscriber->sess_; NotifyKeyDownRightNow() local 751 auto sess = subscriber->sess_; NotifyKeyDownDelay() local 772 auto sess = subscriber->sess_; NotifyKeyUpSubscriber() local 801 auto sess = subscriber->sess_; NotifySubscriber() local 979 auto sess = subscriber->sess_; SubscriberNotifyNap() local [all...] |
H A D | switch_subscriber_handler.cpp | 76 int32_t SwitchSubscriberHandler::SubscribeSwitchEvent(SessionPtr sess, int32_t subscribeId, int32_t switchType) in SubscribeSwitchEvent() argument 87 CHKPR(sess, ERROR_NULL_POINTER); in SubscribeSwitchEvent() 90 auto subscriber = std::make_shared<Subscriber>(subscribeId, sess, switchType); in SubscribeSwitchEvent() 96 int32_t SwitchSubscriberHandler::UnsubscribeSwitchEvent(SessionPtr sess, int32_t subscribeId) in UnsubscribeSwitchEvent() argument 101 if ((*it)->id_ == subscribeId && (*it)->sess_ == sess) { in UnsubscribeSwitchEvent() 155 void SwitchSubscriberHandler::OnSessionDelete(SessionPtr sess) in OnSessionDelete() argument 158 CHKPV(sess); in OnSessionDelete() 160 if ((*it)->sess_ == sess) { in OnSessionDelete() 179 MMI_HILOGE("Subscriber's sess is null"); in NotifySubscriber() 205 [this] (SessionPtr sess) { retur in InitSessionDeleteCallback() [all...] |
/foundation/multimodalinput/input/service/message_handle/test/ |
H A D | server_msg_handler_test.cpp | 307 SessionPtr sess = nullptr; in HWTEST_F() local 312 EXPECT_EQ(servermsghandler.OnAddInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F() 326 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local 331 EXPECT_EQ(servermsghandler.OnAddInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F() 345 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local 350 EXPECT_EQ(servermsghandler.OnAddInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F() 364 SessionPtr sess = nullptr; in HWTEST_F() local 369 EXPECT_EQ(servermsghandler.OnRemoveInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F() 383 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local 388 EXPECT_EQ(servermsghandler.OnRemoveInputHandler(sess, handlerTyp in HWTEST_F() 402 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 421 SessionPtr sess = nullptr; HWTEST_F() local 436 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 451 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 470 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 488 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 506 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 524 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 591 SessionPtr sess = nullptr; HWTEST_F() local 615 SessionPtr sess = nullptr; HWTEST_F() local 1036 SessionPtr sess = nullptr; HWTEST_F() local 1064 SessionPtr sess = nullptr; HWTEST_F() local 1148 SessionPtr sess = nullptr; HWTEST_F() local 1175 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 1404 SessionPtr sess = nullptr; HWTEST_F() local 1430 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, HWTEST_F() local 1518 SessionPtr sess = nullptr; HWTEST_F() local 1544 SessionPtr sess = nullptr; HWTEST_F() local 1594 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local 1830 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local [all...] |
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | openssl-session.c | 211 lws_tls_session_new_cb(SSL *ssl, SSL_SESSION *sess) in lws_tls_session_new_cb() argument 238 ttl = SSL_SESSION_get_timeout(sess); in lws_tls_session_new_cb() 277 ts->session = sess; in lws_tls_session_new_cb() 283 sess, wsi->lc.gutag, disposition, tag, ttl, vh->name, in lws_tls_session_new_cb() 320 SSL_SESSION *sess; in lws_sess_cache_synth_cb() local 325 sess = SSL_get1_session(tls->ssl); in lws_sess_cache_synth_cb() 326 if (!sess) in lws_sess_cache_synth_cb() 329 if (!SSL_SESSION_is_resumable(sess) || /* not worth caching, or... */ in lws_sess_cache_synth_cb() 330 !lws_tls_session_new_cb(tls->ssl, sess)) { /* ...cb didn't keep it */ in lws_sess_cache_synth_cb() 336 SSL_SESSION_free(sess); in lws_sess_cache_synth_cb() 424 SSL_SESSION *sess = NULL; /* allow it to "bail" early */ lws_tls_session_dump_load() local [all...] |
/third_party/node/deps/openssl/openssl/engines/ |
H A D | e_devcrypto.c | 86 static int clean_devcrypto_session(session_op_t *sess) { in clean_devcrypto_session() argument 87 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session() 91 memset(sess, 0, sizeof(*sess)); in clean_devcrypto_session() 106 session_op_t sess; member 214 if (cipher_ctx->sess.ses != 0 && in cipher_init() 215 clean_devcrypto_session(&cipher_ctx->sess) == 0) in cipher_init() 218 cipher_ctx->sess.cipher = cipher_d->devcryptoid; in cipher_init() 219 cipher_ctx->sess.keylen = cipher_d->keylen; in cipher_init() 220 cipher_ctx->sess in cipher_init() 428 session_op_t sess; prepare_cipher_methods() local 675 session_op_t sess; global() member [all...] |
/third_party/openssl/engines/ |
H A D | e_devcrypto.c | 86 static int clean_devcrypto_session(session_op_t *sess) { in clean_devcrypto_session() argument 87 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session() 91 memset(sess, 0, sizeof(*sess)); in clean_devcrypto_session() 106 session_op_t sess; member 214 if (cipher_ctx->sess.ses != 0 && in cipher_init() 215 clean_devcrypto_session(&cipher_ctx->sess) == 0) in cipher_init() 218 cipher_ctx->sess.cipher = cipher_d->devcryptoid; in cipher_init() 219 cipher_ctx->sess.keylen = cipher_d->keylen; in cipher_init() 220 cipher_ctx->sess in cipher_init() 428 session_op_t sess; prepare_cipher_methods() local 675 session_op_t sess; global() member [all...] |
/foundation/multimodalinput/input/service/interceptor/test/ |
H A D | event_interceptor_handler_ex_test.cpp | 76 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID);
in HWTEST_F() local 78 deviceTags, sess);
in HWTEST_F() 104 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID);
in HWTEST_F() local 106 deviceTags, sess);
in HWTEST_F() 133 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID);
in HWTEST_F() local 135 deviceTags, sess);
in HWTEST_F() 162 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID);
in HWTEST_F() local 164 deviceTags, sess);
in HWTEST_F() 190 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID);
in HWTEST_F() local 191 EventInterceptorHandler::SessionHandler sessionHandler(handlerType, eventType, priority, deviceTags, sess);
in HWTEST_F() 218 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 247 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 277 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local 307 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local [all...] |