The consequence of constification is that to pass the address to a
[openssl.git] / ssl / ssl_rsa.c
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;