The consequence of constification is that to pass the address to a
authorRichard Levitte <levitte@openssl.org>
Mon, 6 Nov 2000 23:16:04 +0000 (23:16 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 6 Nov 2000 23:16:04 +0000 (23:16 +0000)
pointer to a const double pointe parameter, the pointer must point to
const data as well.

apps/rsa.c
apps/speed.c
ssl/ssl_rsa.c

index 700df4223ed9e4beca2da03a55cb8030f5276b68..825d925c662bec272dcd2b32d5ba04a3abd78638 100644 (file)
@@ -265,7 +265,7 @@ bad:
        else if (informat == FORMAT_NETSCAPE)
                {
                BUF_MEM *buf=NULL;
-               unsigned char *p;
+               const unsigned char *p;
                int size=0;
 
                buf=BUF_MEM_new();
index 5ff2ade6e44e76e8e02484812cff24a88e45efb0..333dea6c92eabbdd8fd0d668bbcb28387e2b646e 100644 (file)
@@ -739,7 +739,7 @@ int MAIN(int argc, char **argv)
 #ifndef NO_RSA
        for (i=0; i<RSA_NUM; i++)
                {
-               unsigned char *p;
+               const unsigned char *p;
 
                p=rsa_data[i];
                rsa_key[i]=d2i_RSAPrivateKey(NULL,&p,rsa_data_length[i]);
index 6ec7a5cdb1955c60f5416dbc23239caf83be43bf..34a4d27dbee57df8e8deeeb9515a75fd21758fcb 100644 (file)
@@ -303,7 +303,7 @@ end:
 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len)
        {
        int ret;
-       unsigned char *p;
+       const unsigned char *p;
        RSA *rsa;
 
        p=d;
@@ -641,7 +641,7 @@ end:
 int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, unsigned char *d, long len)
        {
        int ret;
-       unsigned char *p;
+       const unsigned char *p;
        RSA *rsa;
 
        p=d;