Added autotests for credentials handling.

This commit is contained in:
Jan Vidar Krey
2010-07-29 11:21:43 +02:00
parent f9abd40ff9
commit dbf790bb93
3 changed files with 26 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ int auth_string_to_cred(const char* str, enum auth_credentials* out)
return 0;
case 4:
if (!strcasecmp(str, "none")) { *out = auth_cred_none; return 1; }
if (!strcasecmp(str, "user")) { *out = auth_cred_user; return 1; }
if (!strcasecmp(str, "link")) { *out = auth_cred_link; return 1; }
return 0;