
Data Structures | |
| struct | mansession_datastores |
Data Fields | |
| int | authenticated |
| time_t | authstart |
| struct ao2_container * | blackfilters |
| char | challenge [10] |
| struct mansession_session::mansession_datastores | datastores |
| FILE * | f |
| int | fd |
| char | inbuf [1025] |
| int | inlen |
| int | inuse |
| struct eventqent * | last_ev |
| struct { | |
| struct mansession_session * next | |
| } | list |
| uint32_t | managerid |
| unsigned long | nc |
| int | needdestroy |
| time_t | noncetime |
| unsigned long | oldnonce |
| int | pending_event |
| int | readperm |
| int | send_events |
| time_t | sessionstart |
| struct timeval | sessionstart_tv |
| time_t | sessiontimeout |
| struct sockaddr_in | sin |
| char | username [80] |
| pthread_t | waiting_thread |
| struct ao2_container * | whitefilters |
| int | writeperm |
| int | writetimeout |
| int authenticated |
Authentication status
Definition at line 960 of file manager.c.
Referenced by action_login(), process_events(), process_message(), get_input(), do_message(), session_do(), purge_sessions(), astman_is_authed(), generic_http_callback(), and auth_http_callback().
| time_t authstart |
Definition at line 969 of file manager.c.
Referenced by get_input(), do_message(), and session_do().
| struct ao2_container* blackfilters |
Definition at line 973 of file manager.c.
Referenced by session_destructor(), build_mansession(), authenticate(), and match_filter().
| char challenge[10] |
Authentication challenge
Definition at line 959 of file manager.c.
Referenced by report_failed_challenge_response(), authenticate(), and action_challenge().
Data stores on the session
Referenced by session_destructor(), session_do(), auth_http_callback(), astman_datastore_add(), astman_datastore_remove(), and astman_datastore_find().
| FILE* f |
fdopen() on the underlying fd
Definition at line 949 of file manager.c.
Referenced by session_destructor(), send_string(), astman_append(), process_events(), get_input(), session_do(), generic_http_callback(), and auth_http_callback().
| int fd |
descriptor used for output. Either the socket (AMI) or a temporary file (HTTP)
Definition at line 950 of file manager.c.
Referenced by build_mansession(), handle_showmanconn(), send_string(), action_waitevent(), get_input(), session_do(), generic_http_callback(), and auth_http_callback().
| char inbuf[1025] |
| int inlen |
| int inuse |
number of HTTP sessions using this entry
Definition at line 951 of file manager.c.
Referenced by check_manager_session_inuse(), handle_showmanconn(), purge_sessions(), find_session(), and generic_http_callback().
last event processed.
Definition at line 967 of file manager.c.
Referenced by session_destructor(), action_waitevent(), process_events(), session_do(), and auth_http_callback().
| struct { ... } list |
| uint32_t managerid |
Unique manager identifier, 0 for AMI sessions
Definition at line 954 of file manager.c.
Referenced by action_waitevent(), action_login(), find_session(), find_session_by_nonce(), astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), generic_http_callback(), and auth_http_callback().
| unsigned long nc |
incremental nonce counter
Definition at line 975 of file manager.c.
Referenced by auth_http_callback().
| int needdestroy |
Whether an HTTP session should be destroyed
Definition at line 952 of file manager.c.
Referenced by action_waitevent(), find_session(), generic_http_callback(), and auth_http_callback().
| struct mansession_session* next |
| time_t noncetime |
Timer for nonce value expiration
Definition at line 971 of file manager.c.
Referenced by auth_http_callback().
| unsigned long oldnonce |
Stale nonce value
Definition at line 974 of file manager.c.
Referenced by find_session_by_nonce(), and auth_http_callback().
| int pending_event |
Pending events indicator in case when waiting_thread is NULL
Definition at line 970 of file manager.c.
Referenced by get_input(), and __ast_manager_event_multichan().
| int readperm |
Authorization for reading
Definition at line 961 of file manager.c.
Referenced by handle_showmanconn(), authenticate(), action_waitevent(), process_events(), astman_verify_session_readpermissions(), and auth_http_callback().
| int send_events |
XXX what ?
Definition at line 966 of file manager.c.
Referenced by build_mansession(), set_eventmask(), action_waitevent(), action_login(), process_events(), and generic_http_callback().
| time_t sessionstart |
Session start time
Definition at line 955 of file manager.c.
Referenced by handle_showmanconn(), authenticate(), and auth_http_callback().
| struct timeval sessionstart_tv |
Session start time
Definition at line 956 of file manager.c.
Referenced by report_invalid_user(), report_failed_acl(), report_inval_password(), report_auth_success(), report_req_not_allowed(), report_req_bad_format(), report_failed_challenge_response(), report_session_limit(), and authenticate().
| time_t sessiontimeout |
Session timeout if HTTP
Definition at line 957 of file manager.c.
Referenced by action_waitevent(), purge_sessions(), generic_http_callback(), and auth_http_callback().
| struct sockaddr_in sin |
address we are connecting from
Definition at line 948 of file manager.c.
Referenced by build_mansession(), handle_showmanconn(), report_invalid_user(), report_failed_acl(), report_inval_password(), report_auth_success(), report_req_not_allowed(), report_req_bad_format(), report_failed_challenge_response(), report_session_limit(), authenticate(), action_login(), get_input(), do_message(), session_do(), purge_sessions(), generic_http_callback(), and auth_http_callback().
| char username[80] |
Logged in username
Definition at line 958 of file manager.c.
Referenced by mansession_cmp_fn(), manager_displayconnects(), handle_showmanconn(), report_auth_success(), report_req_not_allowed(), report_req_bad_format(), report_failed_challenge_response(), report_session_limit(), authenticate(), action_login(), session_do(), purge_sessions(), find_session_by_nonce(), generic_http_callback(), and auth_http_callback().
| pthread_t waiting_thread |
Sleeping thread using this descriptor
Definition at line 953 of file manager.c.
Referenced by build_mansession(), action_waitevent(), get_input(), __ast_manager_event_multichan(), and generic_http_callback().
| struct ao2_container* whitefilters |
Definition at line 972 of file manager.c.
Referenced by session_destructor(), build_mansession(), authenticate(), and match_filter().
| int writeperm |
Authorization for writing
Definition at line 962 of file manager.c.
Referenced by handle_showmanconn(), authenticate(), action_listcommands(), action_originate(), process_message(), astman_verify_session_writepermissions(), and auth_http_callback().
| int writetimeout |
Timeout for ast_carefulwrite()
Definition at line 968 of file manager.c.
Referenced by build_mansession(), send_string(), authenticate(), and auth_http_callback().