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

Diff for /src/usr.bin/ssh/ssh-ecdsa-sk.c between version 1.7 and 1.8

version 1.7, 2020/06/22 05:58:35 version 1.8, 2020/06/22 23:44:27
Line 79 
Line 79 
                 r = SSH_ERR_INVALID_FORMAT;                  r = SSH_ERR_INVALID_FORMAT;
                 goto out;                  goto out;
         }          }
   
           /*
            * Prepare the preamble to clientData that we expect, poking the
            * challenge and origin into their canonical positions in the
            * structure. The crossOrigin flag and any additional extension
            * fields present are ignored.
            */
 #define WEBAUTHN_0      "{\"type\":\"webauthn.get\",\"challenge\":\""  #define WEBAUTHN_0      "{\"type\":\"webauthn.get\",\"challenge\":\""
 #define WEBAUTHN_1      "\",\"origin\":\""  #define WEBAUTHN_1      "\",\"origin\":\""
 #define WEBAUTHN_2      "\""  #define WEBAUTHN_2      "\""
Line 95 
Line 102 
         fprintf(stderr, "%s: expected clientData premable:\n", __func__);          fprintf(stderr, "%s: expected clientData premable:\n", __func__);
         sshbuf_dump(m, stderr);          sshbuf_dump(m, stderr);
 #endif  #endif
         /* Check that the supplied clientData matches what we expect */          /* Check that the supplied clientData has the preamble we expect */
         if ((r = sshbuf_cmp(wrapper, 0, sshbuf_ptr(m), sshbuf_len(m))) != 0)          if ((r = sshbuf_cmp(wrapper, 0, sshbuf_ptr(m), sshbuf_len(m))) != 0)
                 goto out;                  goto out;
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8