aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-03-12 13:26:41 +0000
committerWerner Koch <[email protected]>2014-03-12 13:33:51 +0000
commit3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a (patch)
treeee2db8a4ea0b577b62873bc09938f7eb61dc83b3 /common/http.h
parentscd: writekey support of ECC. (diff)
downloadgnupg-3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a.tar.gz
gnupg-3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a.zip
http: Add a flag to the URL parser indicating a literal v6 address.
* common/http.h (struct parsed_uri_t): Add field v6lit. * common/http.c (do_parse_uri): Set v6lit.
Diffstat (limited to '')
-rw-r--r--common/http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/http.h b/common/http.h
index 75d64d146..bea9f07f1 100644
--- a/common/http.h
+++ b/common/http.h
@@ -51,6 +51,7 @@ struct parsed_uri_s
unsigned int is_http:1; /* This is a HTTP style URI. */
unsigned int use_tls:1; /* Whether TLS should be used. */
unsigned int opaque:1;/* Unknown scheme; PATH has the rest. */
+ unsigned int v6lit:1; /* Host was given as a literal v6 address. */
char *auth; /* username/password for basic auth. */
char *host; /* Host (converted to lowercase). */
unsigned short port; /* Port (always set if the host is set). */