diff options
author | Richard Levitte <levitte@openssl.org> | 2000-11-06 23:04:15 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-11-06 23:04:15 +0000 |
commit | 7081f3bd89e465a07f04b12467533e004d617f9a (patch) | |
tree | ff3c3ef5dbb1c2826d531c45fa9a4fb622794e28 /crypto/asn1/d2i_pr.c | |
parent | 0413ba429c9dd4a49668da7c6d696720480aa4f1 (diff) |
Constify the RSA parts of the ASN.1 library. Note some ugly casts
that are needed in the ASN.1 macros. Hopefully, we can get rid of
those in an elegant way in the future.
Diffstat (limited to 'crypto/asn1/d2i_pr.c')
-rw-r--r-- | crypto/asn1/d2i_pr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/d2i_pr.c b/crypto/asn1/d2i_pr.c index c92b8325d8..6c3096d6ff 100644 --- a/crypto/asn1/d2i_pr.c +++ b/crypto/asn1/d2i_pr.c @@ -84,7 +84,8 @@ EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, unsigned char **pp, { #ifndef NO_RSA case EVP_PKEY_RSA: - if ((ret->pkey.rsa=d2i_RSAPrivateKey(NULL,pp,length)) == NULL) + if ((ret->pkey.rsa=d2i_RSAPrivateKey(NULL, + (const unsigned char **)pp,length)) == NULL) /* TMP UGLY CAST */ { ASN1err(ASN1_F_D2I_PRIVATEKEY,ERR_R_ASN1_LIB); goto err; |