auto-tools and wc_ updates

This commit is contained in:
kaleb-himes
2014-12-31 10:01:32 -07:00
parent 62a5548009
commit 59eb83c6e9
6 changed files with 39 additions and 48 deletions
+1 -1
View File
@@ -1859,7 +1859,7 @@ static int Decrypt(SSL* ssl, byte* output, const byte* input, word32 sz)
switch (ssl->specs.bulk_cipher_algorithm) {
#ifdef BUILD_ARC4
case wolfssl_rc4:
Arc4Process(ssl->decrypt.arc4, output, input, sz);
wc_Arc4Process(ssl->decrypt.arc4, output, input, sz);
break;
#endif
+4 -4
View File
@@ -2548,12 +2548,12 @@ static int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff,
word32 idx = 0;
ecc_key key;
ecc_init(&key);
if (EccPrivateKeyDecode(der.buffer,&idx,&key,der.length) != 0) {
ecc_free(&key);
wc_ecc_init(&key);
if (wc_EccPrivateKeyDecode(der.buffer,&idx,&key,der.length) != 0) {
wc_ecc_free(&key);
return SSL_BAD_FILE;
}
ecc_free(&key);
wc_ecc_free(&key);
eccKey = 1;
if (ctx)
ctx->haveStaticECC = 1;