X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=shadow.c;h=2569b586635646a79fe0d818c9ff5c66e08a1e24;hp=27053d3a5ac5aae941867b6409910ee5dcfc9d2f;hb=e8e8713b26723d2daf3de50b51d2ac209ad65716;hpb=6e3c6ba4af9c04ba7f59c859148864aa895851cc diff --git a/shadow.c b/shadow.c index 27053d3..2569b58 100644 --- a/shadow.c +++ b/shadow.c @@ -68,10 +68,10 @@ shadowauth(const char *myname, int persist) if (hash[0] == 'x' && hash[1] == '\0') { struct spwd *sp; if ((sp = getspnam(myname)) == NULL) - errx(1, "Authorization failed"); + errx(1, "Authentication failed"); hash = sp->sp_pwdp; } else if (hash[0] != '*') { - errx(1, "Authorization failed"); + errx(1, "Authentication failed"); } char host[HOST_NAME_MAX + 1]; @@ -91,12 +91,12 @@ shadowauth(const char *myname, int persist) err(1, "readpassphrase"); if ((encrypted = crypt(response, hash)) == NULL) { explicit_bzero(rbuf, sizeof(rbuf)); - errx(1, "Authorization failed"); + errx(1, "Authentication failed"); } explicit_bzero(rbuf, sizeof(rbuf)); if (strcmp(encrypted, hash) != 0) { syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed auth for %s", myname); - errx(1, "Authorization failed"); + errx(1, "Authentication failed"); } #ifdef USE_TIMESTAMP