aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.h
diff options
context:
space:
mode:
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