mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +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:
		| @@ -39,22 +39,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") | ||||
|  | ||||
| /*! \brief Determine transport type used to receive request*/ | ||||
|  | ||||
| static enum ast_security_event_transport_type security_event_get_transport(const struct sip_pvt *p) | ||||
| static enum ast_transport security_event_get_transport(const struct sip_pvt *p) | ||||
| { | ||||
| 	int res = 0; | ||||
|  | ||||
| 	switch (p->socket.type) { | ||||
| 	case SIP_TRANSPORT_UDP: | ||||
| 		return AST_SECURITY_EVENT_TRANSPORT_UDP; | ||||
| 	case SIP_TRANSPORT_TCP: | ||||
| 	case SIP_TRANSPORT_WS: | ||||
| 		return AST_SECURITY_EVENT_TRANSPORT_TCP; | ||||
| 	case SIP_TRANSPORT_TLS: | ||||
| 	case SIP_TRANSPORT_WSS: | ||||
| 		return AST_SECURITY_EVENT_TRANSPORT_TLS; | ||||
| 	} | ||||
|  | ||||
| 	return res; | ||||
| 	return p->socket.type; | ||||
| } | ||||
|  | ||||
| void sip_report_invalid_peer(const struct sip_pvt *p) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user