Skip to content

Commit da2dabf

Browse files
cameronrichigrr
cameronrich
authored andcommitted
* RC4 only used if PKCS12 is used.
* Buffer sizes tightned up. * Buffer check on client handshake due to some incompatibilities. git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@270 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
1 parent 822e866 commit da2dabf

File tree

4 files changed

+9632
-3
lines changed

4 files changed

+9632
-3
lines changed

crypto/rc4.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
#include "os_port.h"
3838
#include "crypto.h"
3939

40+
/* only used for PKCS12 now */
41+
#ifdef CONFIG_SSL_USE_PKCS12
42+
4043
/**
4144
* Get ready for an encrypt/decrypt operation
4245
*/
@@ -90,3 +93,5 @@ void RC4_crypt(RC4_CTX *ctx, const uint8_t *msg, uint8_t *out, int length)
9093
ctx->x = x;
9194
ctx->y = y;
9295
}
96+
97+
#endif

0 commit comments

Comments
 (0)