Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-02-01 02:04:21 +0400
committerBen Straub <bs@github.com>2013-02-01 02:04:21 +0400
commitcf7038a65cb080a2946202fe6cbbe52aefae1fd4 (patch)
tree379e3be397c781f7af8e06d89f4fb024bd8c05db /src/netops.h
parent7602cb7c0ea0d69efd30640af234be20393bf57c (diff)
Enhance url parsing to include passwords
Diffstat (limited to 'src/netops.h')
-rw-r--r--src/netops.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/netops.h b/src/netops.h
index bb2624abe..d352bf3b6 100644
--- a/src/netops.h
+++ b/src/netops.h
@@ -66,6 +66,12 @@ int gitno_send(gitno_socket *socket, const char *msg, size_t len, int flags);
int gitno_close(gitno_socket *s);
int gitno_select_in(gitno_buffer *buf, long int sec, long int usec);
-int gitno_extract_host_and_port(char **host, char **port, char **username, const char *url, const char *default_port);
+int gitno_extract_url_parts(
+ char **host,
+ char **port,
+ char **username,
+ char **password,
+ const char *url,
+ const char *default_port);
#endif