Skip to content

Commit

Permalink
upstream commit
Browse files Browse the repository at this point in the history
switch auth2-pubkey.c to modern APIs; with & ok djm@

Upstream-ID: 8f08d4316eb1b0c4ffe4a206c05cdd45ed1daf07
  • Loading branch information
mfriedl authored and djmdjm committed May 31, 2017
1 parent 54d90ac commit 00ed75c
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 112 deletions.
6 changes: 3 additions & 3 deletions auth2-hostbased.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: auth2-hostbased.c,v 1.27 2017/05/30 08:52:19 markus Exp $ */
/* $OpenBSD: auth2-hostbased.c,v 1.28 2017/05/30 14:10:53 markus Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
Expand Down Expand Up @@ -138,8 +138,8 @@ userauth_hostbased(Authctxt *authctxt)
/* test for allowed key and correct signature */
authenticated = 0;
if (PRIVSEP(hostbased_key_allowed(authctxt->pw, cuser, chost, key)) &&
PRIVSEP(key_verify(key, sig, slen, buffer_ptr(&b),
buffer_len(&b))) == 1)
PRIVSEP(sshkey_verify(key, sig, slen, buffer_ptr(&b),
buffer_len(&b), 0)) == 0)
authenticated = 1;

buffer_free(&b);
Expand Down
Loading

0 comments on commit 00ed75c

Please sign in to comment.