The consequence of constification is that to pass the address to a
pointer to a const double pointe parameter, the pointer must point to const data as well.
This commit is contained in:
parent
e5828cd46f
commit
5e4ca4220e
@ -265,7 +265,7 @@ bad:
|
|||||||
else if (informat == FORMAT_NETSCAPE)
|
else if (informat == FORMAT_NETSCAPE)
|
||||||
{
|
{
|
||||||
BUF_MEM *buf=NULL;
|
BUF_MEM *buf=NULL;
|
||||||
unsigned char *p;
|
const unsigned char *p;
|
||||||
int size=0;
|
int size=0;
|
||||||
|
|
||||||
buf=BUF_MEM_new();
|
buf=BUF_MEM_new();
|
||||||
|
@ -739,7 +739,7 @@ int MAIN(int argc, char **argv)
|
|||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
for (i=0; i<RSA_NUM; i++)
|
for (i=0; i<RSA_NUM; i++)
|
||||||
{
|
{
|
||||||
unsigned char *p;
|
const unsigned char *p;
|
||||||
|
|
||||||
p=rsa_data[i];
|
p=rsa_data[i];
|
||||||
rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]);
|
rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]);
|
||||||
|
@ -303,7 +303,7 @@ end:
|
|||||||
int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len)
|
int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
unsigned char *p;
|
const unsigned char *p;
|
||||||
RSA *rsa;
|
RSA *rsa;
|
||||||
|
|
||||||
p=d;
|
p=d;
|
||||||
@ -641,7 +641,7 @@ end:
|
|||||||
int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, unsigned char *d, long len)
|
int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, unsigned char *d, long len)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
unsigned char *p;
|
const unsigned char *p;
|
||||||
RSA *rsa;
|
RSA *rsa;
|
||||||
|
|
||||||
p=d;
|
p=d;
|
||||||
|
Loading…
Reference in New Issue
Block a user