diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 01:21:55 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 13:01:29 +0200 |
commit | 245c6bc33b1481052f347f316cec16888aa1be85 (patch) | |
tree | 9ffe8102e9e1891fb5820cecc07203f54c7fddb9 /crypto/dsa/dsa_ameth.c | |
parent | constify X509_ALGOR_get0() (diff) | |
download | openssl-245c6bc33b1481052f347f316cec16888aa1be85.tar.xz openssl-245c6bc33b1481052f347f316cec16888aa1be85.zip |
Constify private key decode.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/dsa/dsa_ameth.c')
-rw-r--r-- | crypto/dsa/dsa_ameth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index ba442cf71c..7c0428d3f6 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -130,14 +130,14 @@ static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) * AlgorithmIdentifier the pubkey must be recalculated. */ -static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) +static int dsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) { const unsigned char *p, *pm; int pklen, pmlen; int ptype; const void *pval; const ASN1_STRING *pstr; - X509_ALGOR *palg; + const X509_ALGOR *palg; ASN1_INTEGER *privkey = NULL; BN_CTX *ctx = NULL; |