mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-13 05:18:55 +00:00
Stasis: Update security events to use Stasis
Also moves ACL messages to the security topic and gets rid of the ACL topic (closes issue ASTERISK-21103) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2496/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#define __AST_SECURITY_EVENTS_DEFS_H__
|
||||
|
||||
#include "asterisk/network.h"
|
||||
#include "asterisk/netsock2.h"
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
@@ -140,20 +141,11 @@ enum ast_security_event_severity {
|
||||
AST_SECURITY_EVENT_SEVERITY_ERROR = (1 << 1),
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Transport types
|
||||
*/
|
||||
enum ast_security_event_transport_type {
|
||||
AST_SECURITY_EVENT_TRANSPORT_UDP,
|
||||
AST_SECURITY_EVENT_TRANSPORT_TCP,
|
||||
AST_SECURITY_EVENT_TRANSPORT_TLS,
|
||||
};
|
||||
|
||||
#define AST_SEC_EVT(e) ((struct ast_security_event_common *) e)
|
||||
|
||||
struct ast_security_event_ip_addr {
|
||||
const struct ast_sockaddr *addr;
|
||||
enum ast_security_event_transport_type transport;
|
||||
enum ast_transport transport;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user