aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-02 20:54:51 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-02 20:54:51 +0000
commitff2354195a8ed1ea2e9c781d7c4421742b0df4d0 (patch)
tree2cb08c47004138f88f49850b0af2e9185acb4e82 /src/transport/plugin_transport_http_common.h
parent75b02f33ec88d5b2db25d31a1b6fffc82290f38c (diff)
downloadgnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.tar.gz
gnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.zip
adding TCP_STEALTH support to TCP plugin
Diffstat (limited to 'src/transport/plugin_transport_http_common.h')
-rw-r--r--src/transport/plugin_transport_http_common.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h
index 1fb1bd1ed..79c671862 100644
--- a/src/transport/plugin_transport_http_common.h
+++ b/src/transport/plugin_transport_http_common.h
@@ -57,9 +57,21 @@
57#define HTTP_DEFAULT_PORT 80 57#define HTTP_DEFAULT_PORT 80
58#define HTTPS_DEFAULT_PORT 443 58#define HTTPS_DEFAULT_PORT 443
59 59
60enum HTTP_ADDRESS_OPTIONS 60/**
61 * Bits in the `options` field of HTTP addresses.
62 */
63enum HttpAddressOptions
61{ 64{
65 /**
66 * No bits set.
67 */
62 HTTP_OPTIONS_NONE = 0, 68 HTTP_OPTIONS_NONE = 0,
69
70 /**
71 * Verify X509 server certificate, it should be valid.
72 * (if this bit is not set, it is probably just self-
73 * signed and not expected to be verified).
74 */
63 HTTP_OPTIONS_VERIFY_CERTIFICATE = 1 75 HTTP_OPTIONS_VERIFY_CERTIFICATE = 1
64}; 76};
65 77
@@ -73,6 +85,7 @@ struct HttpAddress
73{ 85{
74 /** 86 /**
75 * Address options 87 * Address options
88 * see `enum HttpAddressOptions`
76 */ 89 */
77 uint32_t options; 90 uint32_t options;
78 91