diff options
Diffstat (limited to 'auth2-hostbased.c')
-rw-r--r-- | auth2-hostbased.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2-hostbased.c b/auth2-hostbased.c index 92ac20d90..eddf797fe 100644 --- a/auth2-hostbased.c +++ b/auth2-hostbased.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-hostbased.c,v 1.27 2017/05/30 08:52:19 markus Exp $ */ | 1 | /* $OpenBSD: auth2-hostbased.c,v 1.28 2017/05/30 14:10:53 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -138,8 +138,8 @@ userauth_hostbased(Authctxt *authctxt) | |||
138 | /* test for allowed key and correct signature */ | 138 | /* test for allowed key and correct signature */ |
139 | authenticated = 0; | 139 | authenticated = 0; |
140 | if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) && | 140 | if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) && |
141 | PRIVSEP(key_verify(key, sig, slen, buffer_ptr(&b), | 141 | PRIVSEP(sshkey_verify(key, sig, slen, buffer_ptr(&b), |
142 | buffer_len(&b))) == 1) | 142 | buffer_len(&b), 0)) == 0) |
143 | authenticated = 1; | 143 | authenticated = 1; |
144 | 144 | ||
145 | buffer_free(&b); | 145 | buffer_free(&b); |