Lines Matching full:password
27 static char *password; variable
32 password = strdup(""); in unit_setup()
34 if(!password || !login) { in unit_setup()
35 Curl_safefree(password); in unit_setup()
44 Curl_safefree(password); in unit_stop()
59 result = Curl_parsenetrc("test.example.com", &login, &password,
62 abort_unless(password != NULL, "returned NULL!");
63 fail_unless(password[0] == 0, "password should not have been changed");
73 result = Curl_parsenetrc("example.com", &login, &password,
76 abort_unless(password != NULL, "returned NULL!");
77 fail_unless(password[0] == 0, "password should not have been changed");
78 fail_unless(!password_changed, "password should not have been changed");
90 result = Curl_parsenetrc("test.example.com", &login, &password,
93 abort_unless(password != NULL, "returned NULL!");
94 fail_unless(password[0] == 0, "password should not have been changed");
106 result = Curl_parsenetrc("example.com", &login, &password,
109 abort_unless(password != NULL, "returned NULL!");
110 fail_unless(password[0] == 0, "password should not have been changed");
111 fail_unless(!password_changed, "password should not have been changed");
124 result = Curl_parsenetrc("example.com", &login, &password,
127 abort_unless(password != NULL, "returned NULL!");
128 fail_unless(password[0] == 0, "password should not have been changed");
129 fail_unless(!password_changed, "password should not have been changed");
142 result = Curl_parsenetrc("example.com", &login, &password,
145 abort_unless(password != NULL, "returned NULL!");
146 fail_unless(strncmp(password, "passwd", 6) == 0,
147 "password should be 'passwd'");
148 fail_unless(password_changed, "password should have been changed");
157 free(password);
158 password = strdup("");
159 abort_unless(password != NULL, "returned NULL!");
160 result = Curl_parsenetrc("example.com", &login, &password,
163 abort_unless(password != NULL, "returned NULL!");
164 fail_unless(strncmp(password, "passwd", 6) == 0,
165 "password should be 'passwd'");
166 fail_unless(password_changed, "password should have been changed");
175 free(password);
176 password = strdup("");
177 abort_unless(password != NULL, "returned NULL!");
181 result = Curl_parsenetrc("curl.example.com", &login, &password,
184 abort_unless(password != NULL, "returned NULL!");
185 fail_unless(strncmp(password, "none", 4) == 0,
186 "password should be 'none'");
187 fail_unless(password_changed, "password should have been changed");
196 free(password);
197 password = strdup("");
198 abort_unless(password != NULL, "returned NULL!");
199 result = Curl_parsenetrc("curl.example.com", &login, &password,
202 abort_unless(password != NULL, "returned NULL!");
203 fail_unless(strncmp(password, "none", 4) == 0,
204 "password should be 'none'");
205 fail_unless(password_changed, "password should have been changed");
211 * Test over the size limit password / login!