static void done_openssl(struct module *module) { if (context) SSL_CTX_free(context); /* There is no function that undoes SSL_get_ex_new_index. */ } static struct option_info openssl_options[] = { INIT_OPT_BOOL("connection.ssl", N_("Verify certificates"), "cert_verify", 0, 0, N_("Verify the peer's SSL certificate. Note that this " "needs extensive configuration of OpenSSL by the user.")), INIT_OPT_TREE("connection.ssl", N_("Client Certificates"), "client_cert", OPT_SORT, N_("X509 client certificate options.")), INIT_OPT_BOOL("connection.ssl.client_cert", N_("Enable"), "enable", 0, 0, N_("Enable or not the sending of X509 client certificates " "to servers which request them.")), #ifdef CONFIG_NSS_COMPAT_OSSL INIT_OPT_STRING("connection.ssl.client_cert", N_("Certificate nickname"), "nickname", 0, "", N_("The nickname of the client certificate stored in NSS " "database. If this value is unset, the nickname from " "the X509_CLIENT_CERT variable is used instead. If you " "have a PKCS#12 file containing client certificate, you " "can import it into your NSS database with:\n"
#include "util/conv.h" #include "util/file.h" #include "util/memory.h" #include "util/string.h" enum mime_options { MIME_TREE, MIME_DEFAULT_TYPE, MIME_OPTIONS, }; static union option_info mime_options[] = { INIT_OPT_TREE("", N_("MIME"), "mime", OPT_SORT, N_("MIME-related options (handlers of various MIME types).")), INIT_OPT_STRING("mime", N_("Default MIME-type"), "default_type", 0, DEFAULT_MIME_TYPE, N_("Document MIME-type to assume by default " "(when we are unable to guess it properly " "from known information about the document).")), NULL_OPTION_INFO, }; #define get_opt_mime(which) mime_options[(which)].option #define get_default_mime_type() get_opt_mime(MIME_DEFAULT_TYPE).value.string /* Checks protocols headers for a suitable filename */
URI_REWRITE_DUMB_TREE, URI_REWRITE_DUMB_TEMPLATE, URI_REWRITE_SMART_TREE, URI_REWRITE_SMART_TEMPLATE, URI_REWRITE_OPTIONS, }; static union option_info uri_rewrite_options[] = { INIT_OPT_TREE("protocol", N_("URI rewriting"), "rewrite", OPT_SORT, N_("Rules for rewriting URIs entered in the goto dialog. " "It makes it possible to define a set of prefixes that will " "be expanded if they match a string entered in the goto " "dialog. The prefixes can be dumb, meaning that they work " "only like URI abbreviations, or smart ones, making it " "possible to pass arguments to them like search engine " "keywords.")), INIT_OPT_BOOL("protocol.rewrite", N_("Enable dumb prefixes"), "enable-dumb", 0, 1, N_("Enable dumb prefixes - simple URI abbreviations which " "can be written to the Goto URL dialog instead of actual URIs " "- i.e. if you write 'elinks' there, you are directed to " "http://elinks.cz/.")), INIT_OPT_BOOL("protocol.rewrite", N_("Enable smart prefixes"), "enable-smart", 0, 1, N_("Enable smart prefixes - URI templates triggered by "
#include "network/socket.h" #include "osdep/osdep.h" #include "protocol/common.h" #include "protocol/file/cgi.h" #include "protocol/file/file.h" #include "protocol/http/http.h" #include "protocol/uri.h" #include "util/conv.h" #include "util/file.h" #include "util/memory.h" #include "util/string.h" static union option_info file_options[] = { INIT_OPT_TREE("protocol", N_("Local files"), "file", 0, N_("Options specific to local browsing.")), INIT_OPT_BOOL("protocol.file", N_("Allow reading special files"), "allow_special_files", 0, 0, N_("Whether to allow reading from non-regular files. " "Note this can be dangerous; reading /dev/urandom or " "/dev/zero can ruin your day!")), INIT_OPT_BOOL("protocol.file", N_("Show hidden files in directory listing"), "show_hidden_files", 0, 1, N_("When set to false, files with name starting with a dot " "will be hidden in local directory listings.")), INIT_OPT_BOOL("protocol.file", N_("Try encoding extensions"), "try_encoding_extensions", 0, 1,