X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Foptions.h;h=48c8fd005a6e93038446e69350d4ad4e135122a0;hp=d4140a0c534cdd39990b8b95cb10b5b4d60c9993;hb=4edde35100bc055357f426c81b98a3edb12f4c09;hpb=72549063a969e1e23c5f10fff6f2a1b2f42e67b1 diff --git a/src/options.h b/src/options.h index d4140a0c..48c8fd00 100644 --- a/src/options.h +++ b/src/options.h @@ -157,17 +157,29 @@ struct options int page_requisites; /* Whether we need to download all files necessary to display a page properly. */ char *bind_address; /* What local IP address to bind to. */ + #ifdef HAVE_SSL - char *sslcadir; /* CA directory (hash files) */ - char *sslcafile; /* CA File to use */ - char *sslcertfile; /* external client cert to use. */ - char *sslcertkey; /* the keyfile for this certificate + enum { + secure_protocol_auto, + secure_protocol_sslv2, + secure_protocol_sslv3, + secure_protocol_tlsv1 + } secure_protocol; /* type of secure protocol to use. */ + int check_cert; /* whether to validate the server's cert */ + char *cert_file; /* external client certificate to use. */ + char *cert_key; /* the keyfile for this certificate (if not internal) included in the certfile. */ - int sslcerttype; /* 0 = PEM / 1=ASN1 (DER) */ - int sslcheckcert; /* 0 do not check / 1 check server cert */ - char *sslegdsock; /* optional socket of the egd daemon */ - int sslprotocol; /* 0 = auto / 1 = v2 / 2 = v3 / 3 = TLSv1 */ + enum { + cert_type_pem, + cert_type_asn1 + } cert_type; /* type of client certificate */ + + char *ca_directory; /* CA directory (hash files) */ + char *ca_cert; /* CA certificate file to use */ + + + char *egd_file; /* file name of the egd daemon socket */ #endif /* HAVE_SSL */ int cookies; /* whether cookies are used. */