summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-12-24 22:44:33 -0800
committerjsorg71 <jay.sorg@gmail.com>2017-02-02 21:39:10 -0800
commitdc1e341f5a3218ad177122f6f7cf2083f1a2d463 (patch)
tree5f8951e56e6d36e91883c0fd1033f0a0337472fb
parent35d7a0b34f4b32d30804e82308f189787ebfe365 (diff)
downloadxrdp-proprietary-dc1e341f5a3218ad177122f6f7cf2083f1a2d463.tar.gz
xrdp-proprietary-dc1e341f5a3218ad177122f6f7cf2083f1a2d463.zip
Constify input arguments of ssl_mod_exp() and ssl_gen_key_xrdp1()
-rw-r--r--common/ssl_calls.c6
-rw-r--r--common/ssl_calls.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/common/ssl_calls.c b/common/ssl_calls.c
index a1409a6f..77a8db23 100644
--- a/common/ssl_calls.c
+++ b/common/ssl_calls.c
@@ -344,8 +344,8 @@ ssl_reverse_it(char *p, int len)
/*****************************************************************************/
int APP_CC
-ssl_mod_exp(char *out, int out_len, char *in, int in_len,
- char *mod, int mod_len, char *exp, int exp_len)
+ssl_mod_exp(char *out, int out_len, const char *in, int in_len,
+ const char *mod, int mod_len, const char *exp, int exp_len)
{
BN_CTX *ctx;
BIGNUM *lmod;
@@ -406,7 +406,7 @@ ssl_mod_exp(char *out, int out_len, char *in, int in_len,
generates a new rsa key
exp is passed in and mod and pri are passed out */
int APP_CC
-ssl_gen_key_xrdp1(int key_size_in_bits, char *exp, int exp_len,
+ssl_gen_key_xrdp1(int key_size_in_bits, const char *exp, int exp_len,
char *mod, int mod_len, char *pri, int pri_len)
{
BIGNUM *my_e;
diff --git a/common/ssl_calls.h b/common/ssl_calls.h
index 38eaeec2..258e9848 100644
--- a/common/ssl_calls.h
+++ b/common/ssl_calls.h
@@ -75,10 +75,10 @@ ssl_hmac_transform(void *hmac, const char *data, int len);
void APP_CC
ssl_hmac_complete(void *hmac, char *data, int len);
int APP_CC
-ssl_mod_exp(char* out, int out_len, char* in, int in_len,
- char* mod, int mod_len, char* exp, int exp_len);
+ssl_mod_exp(char *out, int out_len, const char *in, int in_len,
+ const char *mod, int mod_len, const char *exp, int exp_len);
int APP_CC
-ssl_gen_key_xrdp1(int key_size_in_bits, char* exp, int exp_len,
+ssl_gen_key_xrdp1(int key_size_in_bits, const char* exp, int exp_len,
char* mod, int mod_len, char* pri, int pri_len);
/* ssl_tls */