diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-05-14 06:54:37 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-05-14 06:54:37 +0000 |
commit | c5a58c018e5a8207bd39a63aedcd8ef206c9d8ab (patch) | |
tree | 0bf23b7047e5dfb584f97a32db1e1714304fcaf4 /options.c | |
parent | c346e09c465f8365b8d91041f10f56f3c8227213 (diff) | |
download | fetchmail-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.c | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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: |