diff --git a/src/ssl.c b/src/ssl.c index bfa059718..c7c10c869 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -38857,7 +38857,7 @@ int wolfSSL_i2d_RSAPrivateKey(WOLFSSL_RSA *rsa, unsigned char **pp) } -int wolfSSL_i2d_RSAPublicKey(WOLFSSL_RSA *rsa, const unsigned char **pp) +int wolfSSL_i2d_RSAPublicKey(WOLFSSL_RSA *rsa, unsigned char **pp) { int ret; diff --git a/tests/api.c b/tests/api.c index a4664d566..0d3021330 100644 --- a/tests/api.c +++ b/tests/api.c @@ -36698,7 +36698,7 @@ static void test_wolfSSL_RSA_DER(void) RSA *rsa; int i; - const unsigned char *buff = NULL; + unsigned char *buff = NULL; struct tbl_s { diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index 3733154d5..3e1fa2064 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -1889,7 +1889,7 @@ WOLFSSL_API WOLFSSL_RSA *wolfSSL_d2i_RSAPublicKey(WOLFSSL_RSA **r, const unsigned char **pp, long len); WOLFSSL_API WOLFSSL_RSA *wolfSSL_d2i_RSAPrivateKey(WOLFSSL_RSA**, const unsigned char**, long); -WOLFSSL_API int wolfSSL_i2d_RSAPublicKey(WOLFSSL_RSA *r, const unsigned char **pp); +WOLFSSL_API int wolfSSL_i2d_RSAPublicKey(WOLFSSL_RSA *r, unsigned char **pp); WOLFSSL_API int wolfSSL_i2d_RSAPrivateKey(WOLFSSL_RSA *r, unsigned char **pp); WOLFSSL_API void wolfSSL_CTX_set_tmp_rsa_callback(WOLFSSL_CTX *, WOLFSSL_RSA *(*)(WOLFSSL *, int, int));