From 4cbae0bca36d11b708ae92158f197c28d4c37b85 Mon Sep 17 00:00:00 2001 From: MJSPollard Date: Tue, 10 Jul 2018 13:34:16 -0600 Subject: [PATCH] changes to make jenkins tests work --- src/ssl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 6efdc4b6b..1b2c8a6bc 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -24919,7 +24919,7 @@ int wolfSSL_HMAC_Init(WOLFSSL_HMAC_CTX* ctx, const void* key, int keylen, WC_HMAC_BLOCK_SIZE); XMEMCPY((byte *)&ctx->hmac.opad, (byte *)&ctx->save_opad, WC_HMAC_BLOCK_SIZE); - if ((hmac_error = _InitHmac(&ctx->hmac, ctx->hmac.macType, heap)) + if ((hmac_error = _HMAC_Init(&ctx->hmac, ctx->hmac.macType, heap)) !=0) { return hmac_error; } @@ -27823,6 +27823,7 @@ int wolfSSL_i2d_RSAPrivateKey(WOLFSSL_RSA *rsa, unsigned char **pp) byte* der = NULL; int derMax; int ret; + int i; WOLFSSL_ENTER("i2d_RSAPrivateKey"); @@ -27857,7 +27858,7 @@ int wolfSSL_i2d_RSAPrivateKey(WOLFSSL_RSA *rsa, unsigned char **pp) } //ret is the size of the der buffer - for(int i = 0; i < ret; i++) { + for(i = 0; i < ret; i++) { *(*pp + i) = *(der + i); } *pp += ret;