diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -18,7 +18,7 @@ agent connections. | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "includes.h" | 20 | #include "includes.h" |
21 | RCSID("$Id: sshd.c,v 1.22 1999/11/17 06:29:08 damien Exp $"); | 21 | RCSID("$Id: sshd.c,v 1.23 1999/11/17 22:28:11 damien Exp $"); |
22 | 22 | ||
23 | #include "xmalloc.h" | 23 | #include "xmalloc.h" |
24 | #include "rsa.h" | 24 | #include "rsa.h" |
@@ -1422,11 +1422,12 @@ do_authloop(struct passwd *pw) | |||
1422 | n = BN_new(); | 1422 | n = BN_new(); |
1423 | packet_get_bignum(n, &nlen); | 1423 | packet_get_bignum(n, &nlen); |
1424 | packet_integrity_check(plen, nlen, type); | 1424 | packet_integrity_check(plen, nlen, type); |
1425 | |||
1425 | authenticated = auth_rsa(pw, n); | 1426 | authenticated = auth_rsa(pw, n); |
1426 | BN_clear_free(n); | ||
1427 | log("RSA authentication %s for %.100s.", | 1427 | log("RSA authentication %s for %.100s.", |
1428 | authenticated ? "accepted" : "failed", | 1428 | authenticated ? "accepted" : "failed", |
1429 | pw->pw_name); | 1429 | pw->pw_name); |
1430 | BN_clear_free(n); | ||
1430 | break; | 1431 | break; |
1431 | 1432 | ||
1432 | case SSH_CMSG_AUTH_PASSWORD: | 1433 | case SSH_CMSG_AUTH_PASSWORD: |
@@ -1459,6 +1460,9 @@ do_authloop(struct passwd *pw) | |||
1459 | #else /* HAVE_LIBPAM */ | 1460 | #else /* HAVE_LIBPAM */ |
1460 | /* Try authentication with the password. */ | 1461 | /* Try authentication with the password. */ |
1461 | authenticated = auth_password(pw, password); | 1462 | authenticated = auth_password(pw, password); |
1463 | log("Password authentication %s for %.100s.", | ||
1464 | authenticated ? "accepted" : "failed", | ||
1465 | pw->pw_name); | ||
1462 | 1466 | ||
1463 | memset(password, 0, strlen(password)); | 1467 | memset(password, 0, strlen(password)); |
1464 | xfree(password); | 1468 | xfree(password); |