@@ -3929,7 +3929,7 @@ static int wp_rsa_encode_text_format_hex(const mp_int* num, char* textData,
39293929 || (binData = OPENSSL_malloc (binLen )) == NULL ) {
39303930 ok = 0 ;
39313931 }
3932- else if (mp_to_unsigned_bin (num , binData ) != MP_OKAY ) {
3932+ else if (mp_to_unsigned_bin (( mp_int * ) num , binData ) != MP_OKAY ) {
39333933 ok = 0 ;
39343934 OPENSSL_free (binData );
39353935 binData = NULL ;
@@ -4076,11 +4076,11 @@ static int wp_rsa_encode_text(wp_RsaEncDecCtx* ctx, OSSL_CORE_BIO* cBio,
40764076
40774077 /* OSSL uses 'publicExponent' and 'Exponent' */
40784078 if (ok ) {
4079- if (mp_radix_size (& key -> key .e , MP_RADIX_DEC , & expLen ) != MP_OKAY
4079+ if (mp_radix_size (( mp_int * ) & key -> key .e , MP_RADIX_DEC , & expLen ) != MP_OKAY
40804080 || ((expStr = OPENSSL_malloc (expLen )) == NULL )) {
40814081 ok = 0 ;
40824082 }
4083- else if (mp_todecimal (& key -> key .e , expStr ) != MP_OKAY ) {
4083+ else if (mp_todecimal (( mp_int * ) & key -> key .e , expStr ) != MP_OKAY ) {
40844084 ok = 0 ;
40854085 OPENSSL_free (expStr );
40864086 expStr = NULL ;
@@ -4102,11 +4102,11 @@ static int wp_rsa_encode_text(wp_RsaEncDecCtx* ctx, OSSL_CORE_BIO* cBio,
41024102 }
41034103
41044104 if (ok ) {
4105- if (mp_radix_size (& key -> key .e , MP_RADIX_HEX , & expLen ) != MP_OKAY
4105+ if (mp_radix_size (( mp_int * ) & key -> key .e , MP_RADIX_HEX , & expLen ) != MP_OKAY
41064106 || ((expStr = OPENSSL_malloc (expLen )) == NULL )) {
41074107 ok = 0 ;
41084108 }
4109- else if (mp_tohex (& key -> key .e , expStr ) != MP_OKAY ) {
4109+ else if (mp_tohex (( mp_int * ) & key -> key .e , expStr ) != MP_OKAY ) {
41104110 ok = 0 ;
41114111 OPENSSL_free (expStr );
41124112 expStr = NULL ;
0 commit comments