Loading lib/netrc.c +0 −5 Original line number Diff line number Diff line Loading @@ -61,11 +61,6 @@ enum host_lookup_state { HOSTEND /* LAST enum */ }; /* make sure we have room for at least this size: */ #define LOGINSIZE 64 #define PASSWORDSIZE 64 /* returns -1 on failure, 0 if the host is found, 1 is the host isn't found */ int Curl_parsenetrc(const char *host, char *login, char *password, Loading lib/netrc.h +7 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -21,6 +21,12 @@ * KIND, either express or implied. * ***************************************************************************/ /* Make sure we have room for at least this size: */ #define LOGINSIZE 64 #define PASSWORDSIZE 64 /* returns -1 on failure, 0 if the host is found, 1 is the host isn't found */ int Curl_parsenetrc(const char *host, char *login, char *password, Loading tests/data/Makefile.am +2 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test569 test570 test571 test572 test804 test805 test806 test807 test573 \ test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \ test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \ test1303 test320 test321 test322 test323 test324 test1121 test581 test580 test1303 test320 test321 test322 test323 test324 test1121 test581 test580 \ test1304 filecheck: @mkdir test-place; \ Loading tests/data/test1304 0 → 100644 +31 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> unittest netrc </keywords> </info> # # Client-side <client> <server> none </server> <features> unittest netrc_debug </features> <name> netrc parsing unit tests </name> <tool> unit1304 </tool> <file name="log/netrc"> machine example.com login admin password passwd machine curl.example.com login none password none </file> </client> </testcase> tests/unit/Makefile.inc +2 −1 Original line number Diff line number Diff line Loading @@ -3,9 +3,10 @@ UNITFILES = curlcheck.h # These are all unit test programs noinst_PROGRAMS = unit1300 unit1301 unit1302 unit1303 noinst_PROGRAMS = unit1300 unit1301 unit1302 unit1303 unit1304 unit1300_SOURCES = unit1300.c $(UNITFILES) unit1301_SOURCES = unit1301.c $(UNITFILES) unit1302_SOURCES = unit1302.c $(UNITFILES) unit1303_SOURCES = unit1303.c $(UNITFILES) unit1304_SOURCES = unit1304.c $(UNITFILES) Loading
lib/netrc.c +0 −5 Original line number Diff line number Diff line Loading @@ -61,11 +61,6 @@ enum host_lookup_state { HOSTEND /* LAST enum */ }; /* make sure we have room for at least this size: */ #define LOGINSIZE 64 #define PASSWORDSIZE 64 /* returns -1 on failure, 0 if the host is found, 1 is the host isn't found */ int Curl_parsenetrc(const char *host, char *login, char *password, Loading
lib/netrc.h +7 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -21,6 +21,12 @@ * KIND, either express or implied. * ***************************************************************************/ /* Make sure we have room for at least this size: */ #define LOGINSIZE 64 #define PASSWORDSIZE 64 /* returns -1 on failure, 0 if the host is found, 1 is the host isn't found */ int Curl_parsenetrc(const char *host, char *login, char *password, Loading
tests/data/Makefile.am +2 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test569 test570 test571 test572 test804 test805 test806 test807 test573 \ test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \ test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \ test1303 test320 test321 test322 test323 test324 test1121 test581 test580 test1303 test320 test321 test322 test323 test324 test1121 test581 test580 \ test1304 filecheck: @mkdir test-place; \ Loading
tests/data/test1304 0 → 100644 +31 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> unittest netrc </keywords> </info> # # Client-side <client> <server> none </server> <features> unittest netrc_debug </features> <name> netrc parsing unit tests </name> <tool> unit1304 </tool> <file name="log/netrc"> machine example.com login admin password passwd machine curl.example.com login none password none </file> </client> </testcase>
tests/unit/Makefile.inc +2 −1 Original line number Diff line number Diff line Loading @@ -3,9 +3,10 @@ UNITFILES = curlcheck.h # These are all unit test programs noinst_PROGRAMS = unit1300 unit1301 unit1302 unit1303 noinst_PROGRAMS = unit1300 unit1301 unit1302 unit1303 unit1304 unit1300_SOURCES = unit1300.c $(UNITFILES) unit1301_SOURCES = unit1301.c $(UNITFILES) unit1302_SOURCES = unit1302.c $(UNITFILES) unit1303_SOURCES = unit1303.c $(UNITFILES) unit1304_SOURCES = unit1304.c $(UNITFILES)