diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-03 21:04:30 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-03 21:04:30 +0000 |
commit | 59f9b53799063574462dae2a34ebf34a89bc8bbf (patch) | |
tree | 55923b88bf9631fe19d38670a707fd2b5a44c60c /options.c | |
parent | f6ef1ccd435fcb05c3d13086b0227741ff1dbba8 (diff) | |
download | fetchmail-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.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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")); |