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

Diff for /src/usr.bin/ssh/monitor.c between version 1.144 and 1.145

version 1.144, 2015/02/16 22:13:32 version 1.145, 2015/02/20 22:17:21
Line 599 
Line 599 
         u_char *signature;          u_char *signature;
         size_t datlen, siglen;          size_t datlen, siglen;
         int r, keyid, is_proof = 0;          int r, keyid, is_proof = 0;
         const char proof_req[] = "hostkeys-prove@openssh.com";          const char proof_req[] = "hostkeys-prove-00@openssh.com";
   
         debug3("%s", __func__);          debug3("%s", __func__);
   
Line 629 
Line 629 
                         fatal("%s: no hostkey for index %d", __func__, keyid);                          fatal("%s: no hostkey for index %d", __func__, keyid);
                 if ((sigbuf = sshbuf_new()) == NULL)                  if ((sigbuf = sshbuf_new()) == NULL)
                         fatal("%s: sshbuf_new", __func__);                          fatal("%s: sshbuf_new", __func__);
                 if ((r = sshbuf_put_string(sigbuf, session_id2,                  if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 ||
                       (r = sshbuf_put_string(sigbuf, session_id2,
                     session_id2_len) != 0) ||                      session_id2_len) != 0) ||
                     (r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 ||  
                     (r = sshkey_puts(key, sigbuf)) != 0)                      (r = sshkey_puts(key, sigbuf)) != 0)
                         fatal("%s: couldn't prepare private key "                          fatal("%s: couldn't prepare private key "
                             "proof buffer: %s", __func__, ssh_err(r));                              "proof buffer: %s", __func__, ssh_err(r));

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145