summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-02 17:32:12 +0000
committerDavid Troy <dave@popvox.com>2006-04-02 17:32:12 +0000
commit273e500c262b84c8cd9a2249ba8955e6f3ff8c74 (patch)
treea8252f62c8e1934a1bb63295a20c82ea0d12b983 /src/config.c
parent08192d2b732eaaff203012c0acda210b40261885 (diff)
downloadastmanproxy-273e500c262b84c8cd9a2249ba8955e6f3ff8c74.tar.gz
astmanproxy-273e500c262b84c8cd9a2249ba8955e6f3ff8c74.tar.xz
astmanproxy-273e500c262b84c8cd9a2249ba8955e6f3ff8c74.zip
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@59 f02b47b9-160a-0410-81a6-dc3441afb0ec
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 824043b..29213ad 100644
--- a/src/config.c
+++ b/src/config.c
@@ -105,6 +105,8 @@ void *processline(char *s) {
pc.acceptencryptedconnection = strcmp(value,"yes") ? 0 : 1;
else if (!strcmp(name,"acceptunencryptedconnection") )
pc.acceptunencryptedconnection = strcmp(value,"yes") ? 0 : 1;
+ else if (!strcmp(name,"certfile") )
+ strcpy(pc.certfile, value);
else if (!strcmp(name,"proxykey") )
strcpy(pc.key, value);
else if (!strcmp(name,"proc_user") )
@@ -217,7 +219,7 @@ int ReadConfig() {
/* Set nonzero config defaults */
pc.asteriskwritetimeout = 100;
pc.clientwritetimeout = 100;
- pc.sslclhellotimeout = 200;
+ pc.sslclhellotimeout = 500;
sprintf(cfn, "%s/%s", CDIR, CFILE);
FP = fopen( cfn, "r" );
@@ -238,6 +240,9 @@ int ReadConfig() {
fclose(FP);
+ /* initialize SSL layer with our server certfile */
+ init_secure(pc.certfile);
+
return 0;
}