summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sshd.c b/sshd.c
index a738c3ab6..ba26287ba 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.514 2018/08/13 02:41:05 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.516 2018/09/21 12:23:17 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -493,8 +493,8 @@ demote_sensitive_data(void)
493 493
494 for (i = 0; i < options.num_host_key_files; i++) { 494 for (i = 0; i < options.num_host_key_files; i++) {
495 if (sensitive_data.host_keys[i]) { 495 if (sensitive_data.host_keys[i]) {
496 if ((r = sshkey_demote(sensitive_data.host_keys[i], 496 if ((r = sshkey_from_private(
497 &tmp)) != 0) 497 sensitive_data.host_keys[i], &tmp)) != 0)
498 fatal("could not demote host %s key: %s", 498 fatal("could not demote host %s key: %s",
499 sshkey_type(sensitive_data.host_keys[i]), 499 sshkey_type(sensitive_data.host_keys[i]),
500 ssh_err(r)); 500 ssh_err(r));
@@ -536,8 +536,7 @@ privsep_preauth_child(void)
536 536
537#ifdef GSSAPI 537#ifdef GSSAPI
538 /* Cache supported mechanism OIDs for later use */ 538 /* Cache supported mechanism OIDs for later use */
539 if (options.gss_authentication) 539 ssh_gssapi_prepare_supported_oids();
540 ssh_gssapi_prepare_supported_oids();
541#endif 540#endif
542 541
543 reseed_prngs(); 542 reseed_prngs();
@@ -1772,7 +1771,7 @@ main(int ac, char **av)
1772 error("Error loading host key \"%s\": %s", 1771 error("Error loading host key \"%s\": %s",
1773 options.host_key_files[i], ssh_err(r)); 1772 options.host_key_files[i], ssh_err(r));
1774 if (pubkey == NULL && key != NULL) 1773 if (pubkey == NULL && key != NULL)
1775 if ((r = sshkey_demote(key, &pubkey)) != 0) 1774 if ((r = sshkey_from_private(key, &pubkey)) != 0)
1776 fatal("Could not demote key: \"%s\": %s", 1775 fatal("Could not demote key: \"%s\": %s",
1777 options.host_key_files[i], ssh_err(r)); 1776 options.host_key_files[i], ssh_err(r));
1778 sensitive_data.host_keys[i] = key; 1777 sensitive_data.host_keys[i] = key;