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
00031 #include <stdio.h>
00032 #include <osp/osp.h>
00033 #include "../../usr_avp.h"
00034 #include "osp_mod.h"
00035
00036 unsigned int _osp_sp_number;
00037 char* _osp_sp_uris[OSP_DEF_SPS];
00038 unsigned long _osp_sp_weights[OSP_DEF_SPS] = {
00039 OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT,
00040 OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT,
00041 OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT,
00042 OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT
00043 };
00044 char* _osp_device_ip = NULL;
00045 char* _osp_device_port = NULL;
00046 unsigned char* _osp_private_key = NULL;
00047 unsigned char* _osp_local_certificate = NULL;
00048 unsigned char* _osp_ca_certificate = NULL;
00049 int _osp_crypto_hw = OSP_DEF_HW;
00050 int _osp_validate_callid = OSP_DEF_CALLID;
00051 int _osp_token_format = OSP_DEF_TOKEN;
00052 int _osp_ssl_lifetime = OSP_DEF_SSLLIFE;
00053 int _osp_persistence = OSP_DEF_PERSISTENCE;
00054 int _osp_retry_delay = OSP_DEF_DELAY;
00055 int _osp_retry_limit = OSP_DEF_RETRY;
00056 int _osp_timeout = OSP_DEF_TIMEOUT;
00057 int _osp_max_dests = OSP_DEF_DESTS;
00058 int _osp_use_rpid = OSP_DEF_USERPID;
00059 int _osp_redir_uri = OSP_DEF_REDIRURI;
00060 char _osp_PRIVATE_KEY[OSP_KEYBUF_SIZE];
00061 char _osp_LOCAL_CERTIFICATE[OSP_KEYBUF_SIZE];
00062 char _osp_CA_CERTIFICATE[OSP_KEYBUF_SIZE];
00063 char* _osp_snid_avp = OSP_DEF_SNIDAVP;
00064 int_str _osp_snid_avpname;
00065 unsigned short _osp_snid_avptype;
00066
00067 OSPTPROVHANDLE _osp_provider = -1;
00068