diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-08-28 19:43:03 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-08-28 19:43:03 +0000 |
commit | 057471f6debcf726ac515f029e71bf8af819a671 (patch) | |
tree | 18044d0bebe032964a920eeb64d33e83ca26cb2e /frm | |
parent | c255ceba0afb0830fa679c8849fbf6cf96ab81a7 (diff) | |
download | mailutils-057471f6debcf726ac515f029e71bf8af819a671.tar.gz mailutils-057471f6debcf726ac515f029e71bf8af819a671.tar.bz2 |
Use "tls" command line capability.
Diffstat (limited to 'frm')
-rw-r--r-- | frm/frm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -39,6 +39,7 @@ | |||
39 | #include <mailutils/stream.h> | 39 | #include <mailutils/stream.h> |
40 | #include <mailutils/url.h> | 40 | #include <mailutils/url.h> |
41 | #include <mailutils/nls.h> | 41 | #include <mailutils/nls.h> |
42 | #include <mailutils/tls.h> | ||
42 | 43 | ||
43 | static char* show_field; | 44 | static char* show_field; |
44 | static int show_to; | 45 | static int show_to; |
@@ -161,6 +162,9 @@ static const char *frm_argp_capa[] = { | |||
161 | "common", | 162 | "common", |
162 | "license", | 163 | "license", |
163 | "mailbox", | 164 | "mailbox", |
165 | #ifdef WITH_TLS | ||
166 | "tls", | ||
167 | #endif | ||
164 | NULL | 168 | NULL |
165 | }; | 169 | }; |
166 | 170 | ||
@@ -308,6 +312,9 @@ main(int argc, char **argv) | |||
308 | mu_init_nls (); | 312 | mu_init_nls (); |
309 | 313 | ||
310 | mu_argp_init (program_version, NULL); | 314 | mu_argp_init (program_version, NULL); |
315 | #ifdef WITH_TLS | ||
316 | mu_tls_init_client_argp (); | ||
317 | #endif | ||
311 | mu_argp_parse (&argp, &argc, &argv, 0, frm_argp_capa, &c, NULL); | 318 | mu_argp_parse (&argp, &argc, &argv, 0, frm_argp_capa, &c, NULL); |
312 | 319 | ||
313 | /* have an argument */ | 320 | /* have an argument */ |
@@ -323,6 +330,7 @@ main(int argc, char **argv) | |||
323 | registrar_get_list (&bookie); | 330 | registrar_get_list (&bookie); |
324 | list_append (bookie, mbox_record); | 331 | list_append (bookie, mbox_record); |
325 | list_append (bookie, path_record); | 332 | list_append (bookie, path_record); |
333 | list_append (bookie, mh_record); | ||
326 | list_append (bookie, pop_record); | 334 | list_append (bookie, pop_record); |
327 | list_append (bookie, imap_record); | 335 | list_append (bookie, imap_record); |
328 | } | 336 | } |