diff options
author | Ben Straub <bs@github.com> | 2013-02-01 02:04:21 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-02-01 02:04:21 +0400 |
commit | cf7038a65cb080a2946202fe6cbbe52aefae1fd4 (patch) | |
tree | 379e3be397c781f7af8e06d89f4fb024bd8c05db /src/netops.h | |
parent | 7602cb7c0ea0d69efd30640af234be20393bf57c (diff) |
Enhance url parsing to include passwords
Diffstat (limited to 'src/netops.h')
-rw-r--r-- | src/netops.h | 8 |
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 |