[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.30 and 1.31

version 1.30, 2021/05/31 06:48:42 version 1.31, 2021/10/01 04:50:36
Line 277 
Line 277 
 {  {
 #ifdef WITH_OPENSSL  #ifdef WITH_OPENSSL
         u_int mdlen;          u_int mdlen;
   #else
           SHA2_CTX ctx;
 #endif  #endif
   
         if (dlen != 32)          if (dlen != 32)
Line 286 
Line 288 
         if (!EVP_Digest(m, mlen, d, &mdlen, EVP_sha256(), NULL))          if (!EVP_Digest(m, mlen, d, &mdlen, EVP_sha256(), NULL))
                 return -1;                  return -1;
 #else  #else
         SHA256Data(m, mlen, d);          SHA256Init(&ctx);
           SHA256Update(&ctx, (const uint8_t *)m, mlen);
           SHA256Final(d, &ctx);
 #endif  #endif
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31