diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-10-27 00:15:14 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-10-27 00:15:14 +0000 |
commit | 0d1e69ae10af5eba7cd3426e802d40d17b6db218 (patch) | |
tree | d838573a667ed2ba75e04797f87eb9f45f1df05f /options.c | |
parent | 8d293a3b12a5e2c4ecc6f70bcd59b862294458c8 (diff) | |
download | fetchmail-0d1e69ae10af5eba7cd3426e802d40d17b6db218.tar.gz fetchmail-0d1e69ae10af5eba7cd3426e802d40d17b6db218.tar.bz2 fetchmail-0d1e69ae10af5eba7cd3426e802d40d17b6db218.zip |
This preliminary SSL patch goes to Mike.
svn path=/trunk/; revision=2643
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -71,6 +71,12 @@ #define LA_CONFIGDUMP 47 #define LA_YYDEBUG 48 +#ifdef SSL_ENABLE +#define LA_SSL 49 +#define LA_SSLKEY 50 +#define LA_SSLCERT 51 +#endif + /* options still left: CDgGhHjJoORwWxXYz */ static const char *shortoptions = "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:Z:b:B:e:m:T:I:M:yw:"; @@ -130,6 +136,12 @@ static const struct option longoptions[] = { {"netsec", required_argument, (int *) 0, LA_NETSEC }, #endif /* INET6 */ +#ifdef SSL_ENABLE + {"ssl", no_argument, (int *) 0, LA_SSL }, + {"sslkey", required_argument, (int *) 0, LA_SSLKEY }, + {"sslcert", required_argument, (int *) 0, LA_SSLCERT }, +#endif + #if (defined(linux) && !INET6) || defined(__FreeBSD__) {"interface", required_argument, (int *) 0, LA_INTERFACE }, {"monitor", required_argument, (int *) 0, LA_MONITOR }, @@ -523,6 +535,20 @@ struct query *ctl; /* option record to be initialized */ ctl->server.plugout = xstrdup(optarg); break; +#ifdef SSL_ENABLE + case LA_SSL: + ctl->use_ssl = FLAG_TRUE; + break; + + case LA_SSLKEY: + ctl->sslkey = xstrdup(optarg); + break; + + case LA_SSLCERT: + ctl->sslcert = xstrdup(optarg); + break; +#endif + case 'y': case LA_YYDEBUG: yydebug = TRUE; @@ -578,6 +604,11 @@ struct query *ctl; /* option record to be initialized */ P(_(" -I, --interface interface required specification\n")); P(_(" -M, --monitor monitor interface for activity\n")); #endif +#if defined( SSL_ENABLE ) + P(_(" --ssl enable ssl encrypted session\n")); + P(_(" --sslkey ssl private key file\n")); + P(_(" --sslcert ssl client certificate\n")); +#endif P(_(" --plugin specify external command to open connection\n")); P(_(" --plugout specify external command to open smtp connection\n")); |