diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-09-13 02:08:33 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-09-13 12:12:33 +1000 |
commit | 482d23bcacdd3664f21cc82a5135f66fc598275f (patch) | |
tree | 362f697a94da0a765d1dabcfbf33370b2a4df121 /auth2.c | |
parent | d70d061828730a56636ab6f1f24fe4a8ccefcfc1 (diff) |
upstream: hold our collective noses and use the openssl-1.1.x API in
OpenSSH; feedback and ok tb@ jsing@ markus@
OpenBSD-Commit-ID: cacbcac87ce5da0d3ca7ef1b38a6f7fb349e4417
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -706,7 +706,7 @@ auth2_record_key(Authctxt *authctxt, int authenticated, | |||
706 | struct sshkey **tmp, *dup; | 706 | struct sshkey **tmp, *dup; |
707 | int r; | 707 | int r; |
708 | 708 | ||
709 | if ((r = sshkey_demote(key, &dup)) != 0) | 709 | if ((r = sshkey_from_private(key, &dup)) != 0) |
710 | fatal("%s: copy key: %s", __func__, ssh_err(r)); | 710 | fatal("%s: copy key: %s", __func__, ssh_err(r)); |
711 | sshkey_free(authctxt->auth_method_key); | 711 | sshkey_free(authctxt->auth_method_key); |
712 | authctxt->auth_method_key = dup; | 712 | authctxt->auth_method_key = dup; |
@@ -715,7 +715,7 @@ auth2_record_key(Authctxt *authctxt, int authenticated, | |||
715 | return; | 715 | return; |
716 | 716 | ||
717 | /* If authenticated, make sure we don't accept this key again */ | 717 | /* If authenticated, make sure we don't accept this key again */ |
718 | if ((r = sshkey_demote(key, &dup)) != 0) | 718 | if ((r = sshkey_from_private(key, &dup)) != 0) |
719 | fatal("%s: copy key: %s", __func__, ssh_err(r)); | 719 | fatal("%s: copy key: %s", __func__, ssh_err(r)); |
720 | if (authctxt->nprev_keys >= INT_MAX || | 720 | if (authctxt->nprev_keys >= INT_MAX || |
721 | (tmp = recallocarray(authctxt->prev_keys, authctxt->nprev_keys, | 721 | (tmp = recallocarray(authctxt->prev_keys, authctxt->nprev_keys, |