Simplify DSA public key handling.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 26 Mar 2015 14:35:49 +0000 (14:35 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 26 Mar 2015 22:04:15 +0000 (22:04 +0000)
commitea6b07b54c1f8fc2275a121cdda071e2df7bd6c1
tree1c588d9f06776c8087dd60427a917814d5708109
parentdd14f911714da77876a3c17e0168b6afef923be8
Simplify DSA public key handling.

DSA public keys could exist in two forms: a single Integer type or a
SEQUENCE containing the parameters and public key with a field called
"write_params" deciding which form to use. These forms are non standard
and were only used by functions containing "DSAPublicKey" in the name.

Simplify code to only use the parameter form and encode the public key
component directly in the DSA public key method.

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/dsa/dsa.h
crypto/dsa/dsa_ameth.c
crypto/dsa/dsa_asn1.c
crypto/dsa/dsa_lib.c