Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
julek-wolfssl committed Oct 19, 2021
1 parent 00cfccd commit abbe1f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -19088,7 +19088,11 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
WOLFSSL_ENTER("DES_cbc_encrypt");

/* OpenSSL compat, no ret */
wc_Des_SetKey(&myDes, (const byte*)schedule, (const byte*)ivec, !enc);
if (wc_Des_SetKey(&myDes, (const byte*)schedule, (const byte*)ivec,
!enc) != 0) {
WOLFSSL_MSG("wc_Des_SetKey return error.");
return;
}
lb_sz = length%DES_BLOCK_SIZE;
blk = length/DES_BLOCK_SIZE;

Expand Down

0 comments on commit abbe1f7

Please sign in to comment.