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

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

version 1.7, 2019/11/18 16:08:57 version 1.8, 2019/12/30 09:19:52
Line 52 
Line 52 
 #define SK_VERSION_MAJOR        0x00020000 /* current API version */  #define SK_VERSION_MAJOR        0x00020000 /* current API version */
   
 /* Flags */  /* Flags */
 #define SK_USER_PRESENCE_REQD   0x01  #define SK_USER_PRESENCE_REQD           0x01
   #define SK_USER_VERIFICATION_REQD       0x04
   #define SK_RESIDENT_KEY                 0x20
   
 /* Algs */  /* Algs */
 #define SK_ECDSA                0x00  #define SK_ECDSA                0x00
Line 406 
Line 408 
         int r;          int r;
         char *device = NULL;          char *device = NULL;
   
         (void)flags; /* XXX; unused */  
 #ifdef SK_DEBUG  #ifdef SK_DEBUG
         fido_init(FIDO_DEBUG);          fido_init(FIDO_DEBUG);
 #endif  #endif
Line 446 
Line 447 
             challenge_len)) != FIDO_OK) {              challenge_len)) != FIDO_OK) {
                 skdebug(__func__, "fido_cred_set_clientdata_hash: %s",                  skdebug(__func__, "fido_cred_set_clientdata_hash: %s",
                     fido_strerr(r));                      fido_strerr(r));
                   goto out;
           }
           if ((r = fido_cred_set_rk(cred, (flags & SK_RESIDENT_KEY) != 0 ?
               FIDO_OPT_TRUE : FIDO_OPT_OMIT)) != FIDO_OK) {
                   skdebug(__func__, "fido_cred_set_rk: %s", fido_strerr(r));
                 goto out;                  goto out;
         }          }
         if ((r = fido_cred_set_user(cred, user_id, sizeof(user_id),          if ((r = fido_cred_set_user(cred, user_id, sizeof(user_id),

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