Asterisk - The Open Source Telephony Project  18.5.0
channels/sip/include/security_events.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2011, Digium, Inc.
5  *
6  * Michael L. Young <[email protected]>
7  *
8  * See http://www.asterisk.org for more information about
9  * the Asterisk project. Please do not directly contact
10  * any of the maintainers of this project for assistance;
11  * the project provides a web site, mailing lists and IRC
12  * channels for your use.
13  *
14  * This program is free software, distributed under the terms of
15  * the GNU General Public License Version 2. See the LICENSE file
16  * at the top of the source tree.
17  */
18 
19 /*!
20  * \file
21  *
22  * \brief Generate security events in the SIP channel
23  *
24  * \author Michael L. Young <[email protected]>
25  */
26 
27 #include "sip.h"
28 
29 #ifndef _SIP_SECURITY_EVENTS_H
30 #define _SIP_SECURITY_EVENTS_H
31 
32 void sip_report_invalid_peer(const struct sip_pvt *p);
33 void sip_report_failed_acl(const struct sip_pvt *p, const char *aclname);
34 void sip_report_inval_password(const struct sip_pvt *p, const char *responsechallenge, const char *responsehash);
35 void sip_report_auth_success(const struct sip_pvt *p, uint32_t using_password);
36 void sip_report_session_limit(const struct sip_pvt *p);
37 void sip_report_failed_challenge_response(const struct sip_pvt *p, const char *response, const char *expected_response);
38 void sip_report_chal_sent(const struct sip_pvt *p);
39 void sip_report_inval_transport(const struct sip_pvt *p, const char *transport);
40 void sip_digest_parser(char *c, struct digestkeys *keys);
41 int sip_report_security_event(const char *peer, struct ast_sockaddr *addr, const struct sip_pvt *p,
42  const struct sip_request *req, const int res);
43 
44 #endif
chan_sip header file
void sip_report_invalid_peer(const struct sip_pvt *p)
static struct test_val c
void sip_report_failed_challenge_response(const struct sip_pvt *p, const char *response, const char *expected_response)
void sip_report_failed_acl(const struct sip_pvt *p, const char *aclname)
void sip_report_chal_sent(const struct sip_pvt *p)
Socket address structure.
Definition: netsock2.h:97
void sip_digest_parser(char *c, struct digestkeys *keys)
Takes the digest response and parses it.
Definition: chan_sip.c:17309
void sip_report_inval_transport(const struct sip_pvt *p, const char *transport)
void sip_report_inval_password(const struct sip_pvt *p, const char *responsechallenge, const char *responsehash)
Structure used for each SIP dialog, ie. a call, a registration, a subscribe. Created and initialized ...
Definition: sip.h:1005
void sip_report_session_limit(const struct sip_pvt *p)
sip_request: The data grabbed from the UDP socket
Definition: sip.h:829
int sip_report_security_event(const char *peer, struct ast_sockaddr *addr, const struct sip_pvt *p, const struct sip_request *req, const int res)
void sip_report_auth_success(const struct sip_pvt *p, uint32_t using_password)