aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-03 21:04:30 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-03 21:04:30 +0000
commit59f9b53799063574462dae2a34ebf34a89bc8bbf (patch)
tree55923b88bf9631fe19d38670a707fd2b5a44c60c /options.c
parentf6ef1ccd435fcb05c3d13086b0227741ff1dbba8 (diff)
downloadfetchmail-59f9b53799063574462dae2a34ebf34a89bc8bbf.tar.gz
fetchmail-59f9b53799063574462dae2a34ebf34a89bc8bbf.tar.bz2
fetchmail-59f9b53799063574462dae2a34ebf34a89bc8bbf.zip
Added sslproto.
svn path=/trunk/; revision=3183
Diffstat (limited to 'options.c')
-rw-r--r--options.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/options.c b/options.c
index 88366aae..a817e541 100644
--- a/options.c
+++ b/options.c
@@ -76,10 +76,11 @@
#define LA_SSL 50
#define LA_SSLKEY 51
#define LA_SSLCERT 52
+#define LA_SSLPROTO 53
#endif
-#define LA_SHOWDOTS 53
-#define LA_PRINCIPAL 54
+#define LA_SHOWDOTS 54
+#define LA_PRINCIPAL 55
/* options still left: CDgGhHjJoORwWxXYz */
static const char *shortoptions =
@@ -146,6 +147,7 @@ static const struct option longoptions[] = {
{"ssl", no_argument, (int *) 0, LA_SSL },
{"sslkey", required_argument, (int *) 0, LA_SSLKEY },
{"sslcert", required_argument, (int *) 0, LA_SSLCERT },
+ {"sslproto", required_argument, (int *) 0, LA_SSLPROTO },
#endif
{"principal", required_argument, (int *) 0, LA_PRINCIPAL },
@@ -548,6 +550,10 @@ struct query *ctl; /* option record to be initialized */
case LA_SSLCERT:
ctl->sslcert = xstrdup(optarg);
break;
+
+ case LA_SSLPROTO:
+ ctl->sslproto = xstrdup(optarg);
+ break;
#endif
case LA_PRINCIPAL:
@@ -613,6 +619,7 @@ struct query *ctl; /* option record to be initialized */
P(_(" --ssl enable ssl encrypted session\n"));
P(_(" --sslkey ssl private key file\n"));
P(_(" --sslcert ssl client certificate\n"));
+ P(_(" --sslproto force ssl protocol (ssl2/ssl3/tls1)\n"));
#endif
P(_(" --plugin specify external command to open connection\n"));
P(_(" --plugout specify external command to open smtp connection\n"));