diff --git a/src/pk.c b/src/pk.c index b4515783c..718e75adb 100644 --- a/src/pk.c +++ b/src/pk.c @@ -12659,7 +12659,7 @@ point_conversion_form_t wolfSSL_EC_KEY_get_conv_form(const WOLFSSL_EC_KEY* key) int ret = -1; if (key != NULL) { - ret = (int)(unsigned char)key->form; + ret = key->form; } return ret; diff --git a/wolfssl/openssl/ec.h b/wolfssl/openssl/ec.h index 3fb5270f5..065c63ceb 100644 --- a/wolfssl/openssl/ec.h +++ b/wolfssl/openssl/ec.h @@ -116,7 +116,7 @@ struct WOLFSSL_EC_KEY { void* internal; /* our ECC Key */ void* heap; - char form; /* Either POINT_CONVERSION_UNCOMPRESSED or + unsigned char form; /* Either POINT_CONVERSION_UNCOMPRESSED or * POINT_CONVERSION_COMPRESSED */ word16 pkcs8HeaderSz;