auth_diameter/authorize.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef DIAMETER_AUTHORIZE_H
00031 #define DIAMETER_AUTHORIZE_H
00032
00033 #include "diameter_msg.h"
00034 #include "../../parser/digest/digest_parser.h"
00035 #include "../../parser/hf.h"
00036 #include "../../pvar.h"
00037 #include "../../str.h"
00038 #include "../auth/api.h"
00039 #include "defs.h"
00040
00041 int get_uri(struct sip_msg* m, str** uri);
00042
00043 int get_realm(struct sip_msg* m, int hftype, struct sip_uri* u);
00044
00045 auth_result_t diam_pre_auth(struct sip_msg* m, str* realm, int hftype,
00046 struct hdr_field** h);
00047
00048 int find_credentials(struct sip_msg* m, str* realm, int hftype,
00049 struct hdr_field** h);
00050
00051 int authorize(struct sip_msg* msg, pv_elem_t* realm, int hftype);
00052
00053 int diameter_authorize(struct hdr_field* cred, str* p_method,
00054 struct sip_uri uri, struct sip_uri ruri,
00055 unsigned int m_id, rd_buf_t *response);
00056
00057 int srv_response(struct sip_msg* msg, rd_buf_t* rb, int hftype);
00058
00059 int send_resp(struct sip_msg* _m, int _code, str* _reason,
00060 char* _hdr, int _hdr_len);
00061
00062 #endif
00063