Changeset 392:8e260030f32c in freeDiameter for extensions/app_sip/diamsip.h
- Timestamp:
- Jul 6, 2010, 7:50:52 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_sip/diamsip.h
r368 r392 48 48 #define DIGEST_LEN 16 49 49 50 //SQL configuration 51 #define DB_USERNAME "diamsip" 52 #define DB_PASSWORD "BAVpzCUhULVHayFr" 53 #define DB_SERVER "pineapple.tera.ics.keio.ac.jp" 54 #define DB_DATABASE "diamsip" 50 51 /* Mode for the extension */ 52 #define MODE_DSSERVER 0x1 53 #define MODE_SL 0x2 54 55 56 /* The module configuration */ 57 struct as_conf { 58 int mode; /* default MODE_DSSERVER | MODE_SL */ 59 enum {ASMYSQL} datasource; 60 char * mysql_login; 61 char * mysql_password; 62 char * mysql_database; 63 char * mysql_server; 64 uint16_t mysql_port; 65 66 }; 67 extern struct as_conf * as_conf; 68 69 /* Parse the configuration file */ 70 int as_conf_handle(char * conffile); 71 55 72 56 73 extern MYSQL *conn; … … 61 78 void clear_digest(char * digest, char * readable_digest, int digestlength); 62 79 struct avp_hdr * walk_digest(struct avp *avp, int avp_code); 63 int start_mysql_connection( char *server,char *user, char *password, char *database);80 int start_mysql_connection(); 64 81 void request_mysql(char *query); 65 82 void close_mysql_connection(); 66 /*67 typedef struct noncechain noncechain;68 struct noncechain69 {70 int timestamp;71 char * nonce;72 noncechain *next;73 };74 75 76 //Global variable which points to chained list of nonce77 noncechain* listnonce;78 79 void nonce_add_element(char * nonce);80 int nonce_check_element(char * nonce);81 void nonce_deletelistnonce();82 */83 83 84 84
Note: See TracChangeset
for help on using the changeset viewer.