summaryrefslogtreecommitdiff
path: root/src/file_client.c
diff options
context:
space:
mode:
authorJakub Sławiński2007-10-03 23:32:17 +0200
committerJoshua Judson Rosen2014-07-17 21:15:04 +0200
commitbe7cc5efd2c1ad8227794f77c27e3376f509ef4a (patch)
treecd0c80a493c4c8218c01772e8951b9039fbc6f8d /src/file_client.c
parentUpdate copyright statements. (diff)
downloadapf-be7cc5efd2c1ad8227794f77c27e3376f509ef4a.tar.gz
- Added (by Joshua Judson Rosen): certificate-based authentication
Diffstat (limited to 'src/file_client.c')
-rw-r--r--src/file_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_client.c b/src/file_client.c
index 13e26f5..672eeaf 100644
--- a/src/file_client.c
+++ b/src/file_client.c
@@ -197,6 +197,9 @@ cparsefile(char* name, int* status)
if ((strcmp(helpbuf1, "k") == 0) || (strcmp(helpbuf1, "keyfile") == 0)) {
ClientConfiguration_set_keysFile(cfg, helpbuf2);
}
+ else if ((strcmp(helpbuf1, "c") == 0) || (strcmp(helpbuf1, "certificate") == 0) || (strcmp(helpbuf1, "cerfile") == 0)) {
+ ClientConfiguration_set_certificateFile(cfg, helpbuf2);
+ }
else if ((strcmp(helpbuf1, "s") == 0) || (strcmp(helpbuf1, "storefile") == 0)) {
ClientConfiguration_set_storeFile(cfg, helpbuf2);
}