Skip to content

Commit 759bcbd

Browse files
authored
Merge pull request #766 from night1rider/AES_BLOCK_SIZE_opensslcoexist
Adding define for wc_aes_block_size
2 parents a267687 + bcbddd0 commit 759bcbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wolfssh/internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@ WOLFSSH_LOCAL const char* IdToName(byte id);
459459
WOLFSSH_LOCAL const char* NameByIndexType(byte type, word32* index);
460460

461461

462+
/* For cases when openssl coexist is used */
463+
#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE
464+
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
465+
#endif
466+
462467
#define STATIC_BUFFER_LEN AES_BLOCK_SIZE
463468
/* This is one AES block size. We always grab one
464469
* block size first to decrypt to find the size of

0 commit comments

Comments
 (0)