aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-options.c')
-rw-r--r--src/setup/gnunet-setup-options.c279
1 files changed, 279 insertions, 0 deletions
diff --git a/src/setup/gnunet-setup-options.c b/src/setup/gnunet-setup-options.c
index 4f019121..9cee7276 100644
--- a/src/setup/gnunet-setup-options.c
+++ b/src/setup/gnunet-setup-options.c
@@ -901,6 +901,28 @@ static struct GNUNET_SETUP_VisibilitySpecification
901 901
902 902
903/** 903/**
904 * Hide "http-client" proxy options if proxy is not in use.
905 */
906static struct GNUNET_SETUP_VisibilitySpecification
907 hide_http_proxy_options[] = {
908 {"GNUNET_setup_transport_http_client_proxy_hostname_hbox", NULL, "NONE"},
909 {"GNUNET_setup_transport_http_client_proxy_username_hbox", NULL, "NONE"},
910 {"GNUNET_setup_transport_http_client_proxy_password_hbox", NULL, "NONE"},
911 {NULL, NULL, NULL}
912};
913
914/**
915 * Hide "https-client" proxy options if proxy is not in use.
916 */
917static struct GNUNET_SETUP_VisibilitySpecification
918 hide_https_proxy_options[] = {
919 {"GNUNET_setup_transport_https_client_proxy_hostname_hbox", NULL, "NONE"},
920 {"GNUNET_setup_transport_https_client_proxy_username_hbox", NULL, "NONE"},
921 {"GNUNET_setup_transport_https_client_proxy_password_hbox", NULL, "NONE"},
922 {NULL, NULL, NULL}
923};
924
925/**
904 * Hide "fs" tab if FS not active. 926 * Hide "fs" tab if FS not active.
905 */ 927 */
906static struct GNUNET_SETUP_VisibilitySpecification hide_fs_tab[] = { 928static struct GNUNET_SETUP_VisibilitySpecification hide_fs_tab[] = {
@@ -1706,6 +1728,263 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
1706 NULL, NULL, 1728 NULL, NULL,
1707 NULL}, 1729 NULL},
1708 1730
1731 {
1732 "GNUNET_setup_transport_http_client_proxy_type_none_radiobutton",
1733 "toggled",
1734 "transport-http_client",
1735 "PROXY_TYPE",
1736 gettext_noop ("Do not use a proxy to download hostlists"),
1737 "https://gnunet.org/configuration-http",
1738 &load_option_list /* abuse! */ ,
1739 &save_option_list /* abuse! */ , "NONE",
1740 NULL, NULL,
1741 hide_http_proxy_options
1742 },
1743
1744 {
1745 "GNUNET_setup_transport_http_client_proxy_type_http_radiobutton",
1746 "toggled",
1747 "transport-http_client",
1748 "PROXY_TYPE",
1749 gettext_noop ("Use an HTTP proxy"),
1750 "https://gnunet.org/configuration-http",
1751 &load_option_list /* abuse! */ ,
1752 &save_option_list /* abuse! */ , "HTTP",
1753 NULL, NULL,
1754 hide_http_proxy_options
1755 },
1756
1757 {
1758 "GNUNET_setup_transport_http_client_proxy_type_http_10_radiobutton",
1759 "toggled",
1760 "transport-http_client",
1761 "PROXY_TYPE",
1762 gettext_noop ("Use an HTTP v1.0 (only) proxy"),
1763 "https://gnunet.org/configuration-http",
1764 &load_option_list /* abuse! */ ,
1765 &save_option_list /* abuse! */ , "HTTP_1_0",
1766 NULL, NULL,
1767 hide_http_proxy_options
1768 },
1769
1770 {
1771 "GNUNET_setup_transport_http_client_proxy_type_socks4_radiobutton",
1772 "toggled",
1773 "transport-http_client",
1774 "PROXY_TYPE",
1775 gettext_noop ("Use a SOCKS v4 proxy"),
1776 "https://gnunet.org/configuration-http",
1777 &load_option_list /* abuse! */ ,
1778 &save_option_list /* abuse! */ , "SOCKS4",
1779 NULL, NULL,
1780 hide_http_proxy_options
1781 },
1782
1783 {
1784 "GNUNET_setup_transport_http_client_proxy_type_socks4a_radiobutton",
1785 "toggled",
1786 "transport-http_client",
1787 "PROXY_TYPE",
1788 gettext_noop ("Use a SOCKS v4a proxy"),
1789 "https://gnunet.org/configuration-http",
1790 &load_option_list /* abuse! */ ,
1791 &save_option_list /* abuse! */ , "SOCKS4a",
1792 NULL, NULL,
1793 hide_http_proxy_options
1794 },
1795
1796 {
1797 "GNUNET_setup_transport_http_client_proxy_type_socks5_radiobutton",
1798 "toggled",
1799 "transport-http_client",
1800 "PROXY_TYPE",
1801 gettext_noop ("Use a SOCKS v5 proxy"),
1802 "https://gnunet.org/configuration-http",
1803 &load_option_list /* abuse! */ ,
1804 &save_option_list /* abuse! */ , "SOCKS5",
1805 NULL, NULL,
1806 hide_http_proxy_options
1807 },
1808
1809 {
1810 "GNUNET_setup_transport_http_client_proxy_type_socks5_hostname_radiobutton",
1811 "toggled",
1812 "transport-http_client",
1813 "PROXY_TYPE",
1814 gettext_noop ("Use a SOCKS v5 proxy with hostname"),
1815 "https://gnunet.org/configuration-http",
1816 &load_option_list /* abuse! */ ,
1817 &save_option_list /* abuse! */ , "SOCKS5_HOSTNAME",
1818 NULL, NULL,
1819 hide_http_proxy_options
1820 },
1821
1822 {
1823 "GNUNET_setup_transport_http_client_proxy_hostname_entry",
1824 "changed",
1825 "transport-http_client",
1826 "PROXY",
1827 gettext_noop ("Specify hostname or IP (and optionally) port of the proxy"),
1828 "https://gnunet.org/configuration-http",
1829 &load_text,
1830 &save_text, NULL,
1831 NULL, NULL,
1832 NULL},
1833
1834 {
1835 "GNUNET_setup_transport_http_client_proxy_username_entry",
1836 "changed",
1837 "transport-http_client",
1838 "PROXY_USERNAME",
1839 gettext_noop ("Specify username for the proxy (if needed)"),
1840 "https://gnunet.org/configuration-http",
1841 &load_text,
1842 &save_text, NULL,
1843 NULL, NULL,
1844 NULL},
1845
1846 {
1847 "GNUNET_setup_transport_http_client_proxy_password_entry",
1848 "changed",
1849 "transport-http_client",
1850 "PROXY_PASSWORD",
1851 gettext_noop ("Specify password for the proxy (if needed)"),
1852 "https://gnunet.org/configuration-http",
1853 &load_text,
1854 &save_text, NULL,
1855 NULL, NULL,
1856 NULL},
1857
1858 /* HTTPS client */
1859
1860 {
1861 "GNUNET_setup_transport_http_client_proxy_type_none_radiobutton",
1862 "toggled",
1863 "transport-https_client",
1864 "PROXY_TYPE",
1865 gettext_noop ("Do not use a proxy to download hostlists"),
1866 "https://gnunet.org/configuration-http",
1867 &load_option_list /* abuse! */ ,
1868 &save_option_list /* abuse! */ , "NONE",
1869 NULL, NULL,
1870 hide_https_proxy_options
1871 },
1872
1873 {
1874 "GNUNET_setup_transport_http_client_proxy_type_http_radiobutton",
1875 "toggled",
1876 "transport-https_client",
1877 "PROXY_TYPE",
1878 gettext_noop ("Use an HTTP proxy"),
1879 "https://gnunet.org/configuration-http",
1880 &load_option_list /* abuse! */ ,
1881 &save_option_list /* abuse! */ , "HTTP",
1882 NULL, NULL,
1883 hide_https_proxy_options
1884 },
1885
1886 {
1887 "GNUNET_setup_transport_http_client_proxy_type_http_10_radiobutton",
1888 "toggled",
1889 "transport-https_client",
1890 "PROXY_TYPE",
1891 gettext_noop ("Use an HTTP v1.0 (only) proxy"),
1892 "https://gnunet.org/configuration-http",
1893 &load_option_list /* abuse! */ ,
1894 &save_option_list /* abuse! */ , "HTTP_1_0",
1895 NULL, NULL,
1896 hide_https_proxy_options
1897 },
1898
1899 {
1900 "GNUNET_setup_transport_http_client_proxy_type_socks4_radiobutton",
1901 "toggled",
1902 "transport-https_client",
1903 "PROXY_TYPE",
1904 gettext_noop ("Use a SOCKS v4 proxy"),
1905 "https://gnunet.org/configuration-http",
1906 &load_option_list /* abuse! */ ,
1907 &save_option_list /* abuse! */ , "SOCKS4",
1908 NULL, NULL,
1909 hide_https_proxy_options
1910 },
1911
1912 {
1913 "GNUNET_setup_transport_http_client_proxy_type_socks4a_radiobutton",
1914 "toggled",
1915 "transport-https_client",
1916 "PROXY_TYPE",
1917 gettext_noop ("Use a SOCKS v4a proxy"),
1918 "https://gnunet.org/configuration-http",
1919 &load_option_list /* abuse! */ ,
1920 &save_option_list /* abuse! */ , "SOCKS4a",
1921 NULL, NULL,
1922 hide_https_proxy_options
1923 },
1924
1925 {
1926 "GNUNET_setup_transport_http_client_proxy_type_socks5_radiobutton",
1927 "toggled",
1928 "transport-https_client",
1929 "PROXY_TYPE",
1930 gettext_noop ("Use a SOCKS v5 proxy"),
1931 "https://gnunet.org/configuration-http",
1932 &load_option_list /* abuse! */ ,
1933 &save_option_list /* abuse! */ , "SOCKS5",
1934 NULL, NULL,
1935 hide_https_proxy_options
1936 },
1937
1938 {
1939 "GNUNET_setup_transport_http_client_proxy_type_socks5_hostname_radiobutton",
1940 "toggled",
1941 "transport-https_client",
1942 "PROXY_TYPE",
1943 gettext_noop ("Use a SOCKS v5 proxy with hostname"),
1944 "https://gnunet.org/configuration-http",
1945 &load_option_list /* abuse! */ ,
1946 &save_option_list /* abuse! */ , "SOCKS5_HOSTNAME",
1947 NULL, NULL,
1948 hide_https_proxy_options
1949 },
1950
1951 {
1952 "GNUNET_setup_transport_http_client_proxy_hostname_entry",
1953 "changed",
1954 "transport-https_client",
1955 "PROXY",
1956 gettext_noop ("Specify hostname or IP (and optionally) port of the proxy"),
1957 "https://gnunet.org/configuration-http",
1958 &load_text,
1959 &save_text, NULL,
1960 NULL, NULL,
1961 NULL},
1962
1963 {
1964 "GNUNET_setup_transport_http_client_proxy_username_entry",
1965 "changed",
1966 "transport-https_client",
1967 "PROXY_USERNAME",
1968 gettext_noop ("Specify username for the proxy (if needed)"),
1969 "https://gnunet.org/configuration-http",
1970 &load_text,
1971 &save_text, NULL,
1972 NULL, NULL,
1973 NULL},
1974
1975 {
1976 "GNUNET_setup_transport_http_client_proxy_password_entry",
1977 "changed",
1978 "transport-https_client",
1979 "PROXY_PASSWORD",
1980 gettext_noop ("Specify password for the proxy (if needed)"),
1981 "https://gnunet.org/configuration-http",
1982 &load_text,
1983 &save_text, NULL,
1984 NULL, NULL,
1985 NULL},
1986
1987
1709 /* FS TAB */ 1988 /* FS TAB */
1710 1989
1711 { 1990 {