From 27d66c0e331ebfb50015b13c742b36a1243e817a Mon Sep 17 00:00:00 2001 From: John Ohl Date: Mon, 11 Oct 2021 11:43:58 -0400 Subject: [PATCH] Encoding base64 with wolfSSL should produce the same result as esp_crypto_bas64_encode_mbedtls and not encode in PEM format /w new lines Closes https://github.com/espressif/esp-idf/pull/7676 Signed-off-by: Aditya Patwardhan --- components/esp-tls/esp-tls-crypto/esp_tls_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp-tls/esp-tls-crypto/esp_tls_crypto.c b/components/esp-tls/esp-tls-crypto/esp_tls_crypto.c index cff10fa8bb..dc0b88894f 100644 --- a/components/esp-tls/esp-tls-crypto/esp_tls_crypto.c +++ b/components/esp-tls/esp-tls-crypto/esp_tls_crypto.c @@ -56,7 +56,7 @@ static int esp_crypto_base64_encode_woflSSL(unsigned char *dst, size_t dlen, siz const unsigned char *src, size_t slen) { *olen = dlen; - return Base64_Encode((const byte *) src, (word32) slen, (byte *) dst, (word32 *) olen); + return Base64_Encode_NoNl((const byte *) src, (word32) slen, (byte *) dst, (word32 *) olen); } #else