defs.h

Go to the documentation of this file.
00001 #ifndef DIAMETER_DEFS 
00002 #define  DIAMETER_DEFS
00003 
00004 #define vendorID  0
00005 
00006 #define AA_REQUEST 265
00007 #define AA_ANSWER  265
00008 
00009 #define SERVICE_LEN  1
00010 #define SIP_AUTHENTICATION "6"
00011 #define SIP_GROUP_CHECK    "8"
00012 
00013 #define SIP_AUTH_SERVICE   '6'
00014 #define SIP_GROUP_SERVICE  '8'
00015 #define SIP_ACC_SERVICE    '9'
00016 
00017 #define AAA_CHALENGE        1
00018 #define AAA_AUTHORIZED      0
00019 #define AAA_NOT_AUTHORIZED  2
00020 #define AAA_SRVERR          3
00021 
00022 #define AAA_ERROR       -1
00023 #define AAA_CONN_CLOSED    -2
00024 #define AAA_TIMEOUT        -3
00025 #define AAA_USER_IN_GROUP   0 
00026 
00027 #define AAA_NO_CONNECTION  -1
00028 
00029 #define WWW_AUTH_CHALLENGE_LEN      18
00030 #define PROXY_AUTH_CHALLENGE_LEN    20
00031       
00032 #define WWW_AUTH_CHALLENGE    "WWW-Authenticate: "
00033 #define PROXY_AUTH_CHALLENGE  "Proxy-Authenticate: "
00034 
00035 #define MESSAGE_401 "Unauthorized"
00036 #define MESSAGE_407 "Proxy Authentication Required"
00037 #define MESSAGE_400 "Bad Request"
00038 #define MESSAGE_500 "Server Internal Error"
00039 
00040 #define separator ","
00041 
00042 /* information needed for reading messages from tcp connection */
00043 typedef struct rd_buf
00044 {
00045    /* used to return a parsed response */
00046    int ret_code;
00047    unsigned int chall_len; 
00048    unsigned char *chall;
00049 
00050    /* used to read the message*/
00051    unsigned int first_4bytes;
00052    unsigned int buf_len;
00053    unsigned char *buf;
00054 } rd_buf_t;
00055 
00056 #endif

Generated on Tue May 22 16:00:26 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6