mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-05 02:34:14 +02:00
auto-tools and wc_ updates
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user