From 59f9b53799063574462dae2a34ebf34a89bc8bbf Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 3 Mar 2001 21:04:30 +0000 Subject: Added sslproto. svn path=/trunk/; revision=3183 --- options.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'options.c') 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")); -- cgit v1.2.3