[BACK]Return to sshd.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshd.c between version 1.556 and 1.557

version 1.556, 2020/06/05 06:18:07 version 1.557, 2020/06/18 23:34:19
Line 1726 
Line 1726 
                     &pubkey, NULL)) != 0 && r != SSH_ERR_SYSTEM_ERROR)                      &pubkey, NULL)) != 0 && r != SSH_ERR_SYSTEM_ERROR)
                         do_log2(ll, "Unable to load host key \"%s\": %s",                          do_log2(ll, "Unable to load host key \"%s\": %s",
                             options.host_key_files[i], ssh_err(r));                              options.host_key_files[i], ssh_err(r));
                 if (pubkey == NULL && key != NULL)                  if (pubkey != NULL && key != NULL) {
                           if (!sshkey_equal(pubkey, key)) {
                                   error("Public key for %s does not match "
                                       "private key", options.host_key_files[i]);
                                   sshkey_free(pubkey);
                                   pubkey = NULL;
                           }
                   }
                   if (pubkey == NULL && key != NULL) {
                         if ((r = sshkey_from_private(key, &pubkey)) != 0)                          if ((r = sshkey_from_private(key, &pubkey)) != 0)
                                 fatal("Could not demote key: \"%s\": %s",                                  fatal("Could not demote key: \"%s\": %s",
                                     options.host_key_files[i], ssh_err(r));                                      options.host_key_files[i], ssh_err(r));
                   }
                 sensitive_data.host_keys[i] = key;                  sensitive_data.host_keys[i] = key;
                 sensitive_data.host_pubkeys[i] = pubkey;                  sensitive_data.host_pubkeys[i] = pubkey;
   

Legend:
Removed from v.1.556  
changed lines
  Added in v.1.557