diff options
Diffstat (limited to 'src/util/net.h')
-rw-r--r-- | src/util/net.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/net.h b/src/util/net.h index 17f0bc4f0..c9a84cb6c 100644 --- a/src/util/net.h +++ b/src/util/net.h @@ -9,6 +9,23 @@ #include "git2_util.h" +/* + * Hostname handling + */ + +/* + * See if a given hostname matches a certificate name pattern, according + * to RFC2818 rules (which specifies HTTP over TLS). Mainly, an asterisk + * matches anything, but is limited to a single url component. + */ +extern bool git_net_hostname_matches_cert( + const char *hostname, + const char *pattern); + +/* + * URL handling + */ + typedef struct git_net_url { char *scheme; char *host; |