提交 7be7c2ed 编写于 作者: R Richard Levitte

A few more constifications of some RSA routines that I forgot

yesterday.
上级 8de2910b
......@@ -213,12 +213,12 @@ int RSA_set_method(RSA *rsa, struct engine_st *engine);
int RSA_memory_lock(RSA *r);
/* If you have RSAref compiled in. */
RSA_METHOD *RSA_PKCS1_RSAref(void);
const RSA_METHOD *RSA_PKCS1_RSAref(void);
/* these are the actual SSLeay RSA functions */
RSA_METHOD *RSA_PKCS1_SSLeay(void);
const RSA_METHOD *RSA_PKCS1_SSLeay(void);
RSA_METHOD *RSA_null_method(void);
const RSA_METHOD *RSA_null_method(void);
void ERR_load_RSA_strings(void );
......
......@@ -90,7 +90,7 @@ static RSA_METHOD rsa_pkcs1_eay_meth={
NULL,
};
RSA_METHOD *RSA_PKCS1_SSLeay(void)
const RSA_METHOD *RSA_PKCS1_SSLeay(void)
{
return(&rsa_pkcs1_eay_meth);
}
......
......@@ -96,7 +96,7 @@ static RSA_METHOD rsa_null_meth={
NULL,
};
RSA_METHOD *RSA_null_method(void)
const RSA_METHOD *RSA_null_method(void)
{
return(&rsa_null_meth);
}
......
......@@ -96,7 +96,7 @@ static RSA_METHOD rsa_pkcs1_ref_meth={
NULL,
};
RSA_METHOD *RSA_PKCS1_RSAref(void)
const RSA_METHOD *RSA_PKCS1_RSAref(void)
{
return(&rsa_pkcs1_ref_meth);
}
......
......@@ -137,7 +137,7 @@ int R_RandomUpdate(RSARandomState *rnd,
int R_RandomFinal(RSARandomState *rnd);
void ERR_load_RSAREF_strings(void );
RSA_METHOD *RSA_PKCS1_RSAref(void );
const RSA_METHOD *RSA_PKCS1_RSAref(void );
#ifdef __cplusplus
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册