Parameter copy sanity checks.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 27 May 2016 13:18:40 +0000 (14:18 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 31 May 2016 12:06:16 +0000 (13:06 +0100)
commitf72f00d49549c6620d7101f5e9bf7963da6df9ee
tree81a4405a40070cff6a861591fd4a287147d0d6aa
parentcc7113e8def99702ed59594e9eb7fea0bd1db518
Parameter copy sanity checks.

Don't copy parameters is they're already present in the destination.
Return error if an attempt is made to copy different parameters to
destination. Update documentation.

If key type is not initialised return missing parameters

RT#4149

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/dh/dh_ameth.c
crypto/dsa/dsa_ameth.c
crypto/ec/ec_ameth.c
crypto/evp/p_lib.c
doc/crypto/EVP_PKEY_cmp.pod