aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/d2i_pr.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-07 13:54:39 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-07 13:54:39 +0000
commita4aba800d9e0f81617d2f3d95d4fa99a4487bab2 (patch)
treeeac98957868e4dc4af45182a91a7144c2ea1dc0b /crypto/asn1/d2i_pr.c
parent669cefdd3542e1dce8effeb8d898344c59608bfc (diff)
downloadopenssl-a4aba800d9e0f81617d2f3d95d4fa99a4487bab2.zip
openssl-a4aba800d9e0f81617d2f3d95d4fa99a4487bab2.tar.gz
openssl-a4aba800d9e0f81617d2f3d95d4fa99a4487bab2.tar.bz2
Constify DSA-related code.
Diffstat (limited to 'crypto/asn1/d2i_pr.c')
-rw-r--r--crypto/asn1/d2i_pr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/d2i_pr.c b/crypto/asn1/d2i_pr.c
index 6c3096d..31584fe 100644
--- a/crypto/asn1/d2i_pr.c
+++ b/crypto/asn1/d2i_pr.c
@@ -94,7 +94,8 @@ EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, unsigned char **pp,
#endif
#ifndef NO_DSA
case EVP_PKEY_DSA:
- if ((ret->pkey.dsa=d2i_DSAPrivateKey(NULL,pp,length)) == NULL)
+ if ((ret->pkey.dsa=d2i_DSAPrivateKey(NULL,
+ (const unsigned char **)pp,length)) == NULL) /* TMP UGLY CAST */
{
ASN1err(ASN1_F_D2I_PRIVATEKEY,ERR_R_ASN1_LIB);
goto err;