projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug in DSA, EC methods.
[openssl.git]
/
crypto
/
dsa
/
dsa_ameth.c
diff --git
a/crypto/dsa/dsa_ameth.c
b/crypto/dsa/dsa_ameth.c
index 26e274f859619bda966d8355a98049215abc3a2d..ed0ab2b712c8be5688e27638ea7acc2df1540aa4 100644
(file)
--- a/
crypto/dsa/dsa_ameth.c
+++ b/
crypto/dsa/dsa_ameth.c
@@
-108,7
+108,7
@@
static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
}
ASN1_INTEGER_free(public_key);
-
+ EVP_PKEY_assign_DSA(pkey, dsa);
return 1;
err:
@@
-139,6
+139,7
@@
static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
DSAerr(DSA_F_DSA_PUB_ENCODE, ERR_R_MALLOC_FAILURE);
goto err;
}
+ pval = str;
ptype = V_ASN1_SEQUENCE;
}
else