aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-05-14 06:54:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-05-14 06:54:37 +0000
commitc5a58c018e5a8207bd39a63aedcd8ef206c9d8ab (patch)
tree0bf23b7047e5dfb584f97a32db1e1714304fcaf4 /options.c
parentc346e09c465f8365b8d91041f10f56f3c8227213 (diff)
downloadfetchmail-c5a58c018e5a8207bd39a63aedcd8ef206c9d8ab.tar.gz
fetchmail-c5a58c018e5a8207bd39a63aedcd8ef206c9d8ab.tar.bz2
fetchmail-c5a58c018e5a8207bd39a63aedcd8ef206c9d8ab.zip
SSL certification handling.
svn path=/trunk/; revision=3314
Diffstat (limited to 'options.c')
-rw-r--r--options.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/options.c b/options.c
index 71003d21..7b7c4799 100644
--- a/options.c
+++ b/options.c
@@ -77,10 +77,13 @@
#define LA_SSLKEY 51
#define LA_SSLCERT 52
#define LA_SSLPROTO 53
+#define LA_SSLCERTCK 54
+#define LA_SSLCERTPATH 55
+#define LA_SSLFINGERPRINT 56
#endif
-#define LA_SHOWDOTS 54
-#define LA_PRINCIPAL 55
+#define LA_SHOWDOTS 57
+#define LA_PRINCIPAL 58
/* options still left: CDgGhHjJoORwWxXYz */
static const char *shortoptions =
@@ -148,6 +151,9 @@ static const struct option longoptions[] = {
{"sslkey", required_argument, (int *) 0, LA_SSLKEY },
{"sslcert", required_argument, (int *) 0, LA_SSLCERT },
{"sslproto", required_argument, (int *) 0, LA_SSLPROTO },
+ {"sslcertck", no_argument, (int *) 0, LA_SSLCERTCK },
+ {"sslcertpath", required_argument, (int *) 0, LA_SSLCERTPATH },
+ {"sslfingerprint", required_argument, (int *) 0, LA_SSLFINGERPRINT },
#endif
{"principal", required_argument, (int *) 0, LA_PRINCIPAL },
@@ -568,6 +574,18 @@ struct query *ctl; /* option record to be initialized */
case LA_SSLPROTO:
ctl->sslproto = xstrdup(optarg);
break;
+
+ case LA_SSLCERTCK:
+ ctl->sslcertck = FLAG_TRUE;
+ break;
+
+ case LA_SSLCERTPATH:
+ ctl->sslcertpath = xstrdup(optarg);
+ break;
+
+ case LA_SSLFINGERPRINT:
+ ctl->sslfingerprint = xstrdup(optarg);
+ break;
#endif
case LA_PRINCIPAL: