summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Troy <dave@popvox.com>2006-04-04 16:22:54 +0000
committerDavid Troy <dave@popvox.com>2006-04-04 16:22:54 +0000
commitb93c5589c08ed90bb318557a32f7cae649727c1d (patch)
tree958ca148217f419f8b32f9cc6b58e60c9ca8f43c
parent4af218734ff2ac7da1a6bdd55fde1ea71848fee7 (diff)
downloadastmanproxy-b93c5589c08ed90bb318557a32f7cae649727c1d.zip
astmanproxy-b93c5589c08ed90bb318557a32f7cae649727c1d.tar.gz
astmanproxy-b93c5589c08ed90bb318557a32f7cae649727c1d.tar.xz
git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@78 f02b47b9-160a-0410-81a6-dc3441afb0ec
-rw-r--r--src/config.c5
-rw-r--r--src/include/astmanproxy.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 29213ad..02d76ec 100644
--- a/src/config.c
+++ b/src/config.c
@@ -41,10 +41,13 @@ void *add_server(char *srvspec) {
case 4:
strncat(srv->ast_events, s, 1);
break;
+ case 5:
+ srv->use_ssl = strcmp(s,"yes") ? 0 : 1;
+ break;
}
} while (*(s++));
- if (!srv->ast_host || !srv->ast_port || !srv->ast_user || !srv->ast_pass || !srv->ast_events) {
+ if (!srv->ast_host || !srv->ast_port || !srv->ast_user || !srv->ast_pass || !srv->ast_events || !srv->use_ssl) {
fprintf(stderr, "Aborting! Server spec incomplete: %s!\n", srvspec);
free(srv);
exit(1);
diff --git a/src/include/astmanproxy.h b/src/include/astmanproxy.h
index f888191..1d7ec47 100644
--- a/src/include/astmanproxy.h
+++ b/src/include/astmanproxy.h
@@ -40,7 +40,7 @@ struct ast_server {
char ast_user[80];
char ast_pass[80];
char ast_events[10];
- char use_ssl[5];
+ int use_ssl; /* Use SSL when Connecting to Server? */
int status; /* TODO: have this mean something */
struct ast_server *next;
};