27#ifndef __AST_SECURITY_EVENTS_DEFS_H__
28#define __AST_SECURITY_EVENTS_DEFS_H__
33#if defined(__cplusplus) || defined(c_plusplus)
139#define AST_SEC_EVT(e) ((struct ast_security_event_common *) e)
208 #define AST_SECURITY_EVENT_FAILED_ACL_VERSION 1
229 #define AST_SECURITY_EVENT_INVAL_ACCT_ID_VERSION 1
245 #define AST_SECURITY_EVENT_SESSION_LIMIT_VERSION 1
261 #define AST_SECURITY_EVENT_MEM_LIMIT_VERSION 1
277 #define AST_SECURITY_EVENT_LOAD_AVG_VERSION 1
293 #define AST_SECURITY_EVENT_REQ_NO_SUPPORT_VERSION 1
314 #define AST_SECURITY_EVENT_REQ_NOT_ALLOWED_VERSION 1
340 #define AST_SECURITY_EVENT_AUTH_METHOD_NOT_ALLOWED_VERSION 1
361 #define AST_SECURITY_EVENT_REQ_BAD_FORMAT_VERSION 1
387 #define AST_SECURITY_EVENT_SUCCESSFUL_AUTH_VERSION 1
408 #define AST_SECURITY_EVENT_UNEXPECTED_ADDR_VERSION 2
429 #define AST_SECURITY_EVENT_CHAL_RESP_FAILED_VERSION 1
460 #define AST_SECURITY_EVENT_INVAL_PASSWORD_VERSION 2
491 #define AST_SECURITY_EVENT_CHAL_SENT_VERSION 1
512 #define AST_SECURITY_EVENT_INVAL_TRANSPORT_VERSION 1
525#if defined(__cplusplus) || defined(c_plusplus)
Wrapper for network related headers, masking differences between various operating systems....
ast_security_event_severity
the severity of a security event
@ AST_SECURITY_EVENT_SEVERITY_ERROR
Something has gone wrong.
@ AST_SECURITY_EVENT_SEVERITY_INFO
Informational event, not something that has gone wrong.
ast_security_event_type
Security event types.
@ AST_SECURITY_EVENT_INVAL_TRANSPORT
An attempt to contact a peer on an invalid transport.
@ AST_SECURITY_EVENT_LOAD_AVG
Load Average limit reached.
@ AST_SECURITY_EVENT_INVAL_PASSWORD
An attempt at basic password authentication failed.
@ AST_SECURITY_EVENT_SESSION_LIMIT
Session limit reached.
@ AST_SECURITY_EVENT_REQ_NO_SUPPORT
A request was made that we understand, but do not support.
@ AST_SECURITY_EVENT_FAILED_ACL
Failed ACL.
@ AST_SECURITY_EVENT_NUM_TYPES
This must stay at the end.
@ AST_SECURITY_EVENT_UNEXPECTED_ADDR
An unexpected source address was seen for a session in progress.
@ AST_SECURITY_EVENT_MEM_LIMIT
Memory limit reached.
@ AST_SECURITY_EVENT_REQ_NOT_ALLOWED
A request was made that is not allowed.
@ AST_SECURITY_EVENT_CHAL_SENT
Challenge was sent out, informational.
@ AST_SECURITY_EVENT_CHAL_RESP_FAILED
An attempt at challenge/response authentication failed.
@ AST_SECURITY_EVENT_REQ_BAD_FORMAT
Request received with bad formatting.
@ AST_SECURITY_EVENT_SUCCESSFUL_AUTH
FYI FWIW, Successful authentication has occurred.
@ AST_SECURITY_EVENT_INVAL_ACCT_ID
Invalid Account ID.
@ AST_SECURITY_EVENT_AUTH_METHOD_NOT_ALLOWED
The attempted authentication method is not allowed.
Auth method used not allowed.
const char * auth_method
Auth method attempted.
struct ast_security_event_common common
Common security event descriptor elements.
An attempt at challenge/response auth failed.
const char * response
Response received.
struct ast_security_event_common common
Common security event descriptor elements.
const char * expected_response
Response expected to be received.
const char * challenge
Challenge provided.
A challenge was sent out.
struct ast_security_event_common common
Common security event descriptor elements.
const char * challenge
Challenge sent.
Common structure elements.
struct ast_security_event_ip_addr local_addr
Local address the request came in on.
struct ast_security_event_ip_addr remote_addr
Remote address the request came from.
const char * module
Module, Normally the AST_MODULE define.
const char * account_id
Account ID, specific to the service type.
const char * session_id
Session ID, specific to the service type.
enum ast_security_event_type event_type
The security event sub-type.
const struct timeval * session_tv
Session timeval, when the session started.
uint32_t version
security event version
const char * service
Service that generated the event.
Checking against an IP access control list failed.
struct ast_security_event_common common
Common security event descriptor elements.
const char * acl_name
ACL name, identifies which ACL was hit.
Invalid account ID specified (invalid username, for example)
struct ast_security_event_common common
Common security event descriptor elements.
An attempt at basic password auth failed.
struct ast_security_event_common common
Common security event descriptor elements.
const char * received_hash
Hash received.
const char * challenge
Challenge provided.
const char * received_challenge
Challenge received.
Attempt to contact peer on invalid transport.
const char * transport
Attempted transport.
struct ast_security_event_common common
Common security event descriptor elements.
const struct ast_sockaddr * addr
enum ast_transport transport
Request denied because of a load average limit.
struct ast_security_event_common common
Common security event descriptor elements.
Request denied because of a memory limit.
struct ast_security_event_common common
Common security event descriptor elements.
Request denied because we don't support it.
struct ast_security_event_common common
Common security event descriptor elements.
const char * request_type
Request type that was made.
Request denied because it's not allowed.
struct ast_security_event_common common
Common security event descriptor elements.
const char * request_params
Request type that was made.
const char * request_type
Request type that was made.
Request denied because of a session limit.
struct ast_security_event_common common
Common security event descriptor elements.
Successful authentication.
uint32_t using_password
Using password - if a password was used or not.
struct ast_security_event_common common
Common security event descriptor elements.
Unexpected source address for a session in progress.
struct ast_security_event_common common
Common security event descriptor elements.
struct ast_security_event_ip_addr expected_addr
Expected remote address.
Socket address structure.