diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |
@@ -1772,7 +1772,7 @@ main(int ac, char **av) | |||
1772 | error("Error loading host key \"%s\": %s", | 1772 | error("Error loading host key \"%s\": %s", |
1773 | options.host_key_files[i], ssh_err(r)); | 1773 | options.host_key_files[i], ssh_err(r)); |
1774 | if (pubkey == NULL && key != NULL) | 1774 | if (pubkey == NULL && key != NULL) |
1775 | if ((r = sshkey_demote(key, &pubkey)) != 0) | 1775 | if ((r = sshkey_from_private(key, &pubkey)) != 0) |
1776 | fatal("Could not demote key: \"%s\": %s", | 1776 | fatal("Could not demote key: \"%s\": %s", |
1777 | options.host_key_files[i], ssh_err(r)); | 1777 | options.host_key_files[i], ssh_err(r)); |
1778 | sensitive_data.host_keys[i] = key; | 1778 | sensitive_data.host_keys[i] = key; |