From e8627f1f93c11db406b2822a5cd749501f6d691c Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 27 Oct 2017 11:46:24 -0700 Subject: [PATCH] Fix issue with `fp_s_rmap` not being const. --- wolfcrypt/src/tfm.c | 4 ++-- wolfssl/wolfcrypt/tfm.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index 5f4df8cd9..159b8e6ca 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -3080,8 +3080,8 @@ int mp_add_d(fp_int *a, fp_digit b, fp_int *c) #if defined(HAVE_ECC) || defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY) /* chars used in radix conversions */ -static const char *fp_s_rmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\ - abcdefghijklmnopqrstuvwxyz+/"; +static const char* const fp_s_rmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz+/"; #endif #ifdef HAVE_ECC diff --git a/wolfssl/wolfcrypt/tfm.h b/wolfssl/wolfcrypt/tfm.h index 3364c33b2..27c884a25 100644 --- a/wolfssl/wolfcrypt/tfm.h +++ b/wolfssl/wolfcrypt/tfm.h @@ -606,8 +606,6 @@ void fp_sqr_comba32(fp_int *a, fp_int *b); void fp_sqr_comba48(fp_int *a, fp_int *b); void fp_sqr_comba64(fp_int *a, fp_int *b); -/*extern const char *fp_s_rmap;*/ - /** * Used by wolfSSL