Fix incorrect selection flags for ec serializer.
authorShane Lontis <shane.lontis@oracle.com>
Wed, 19 Aug 2020 09:38:03 +0000 (19:38 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Fri, 21 Aug 2020 00:01:55 +0000 (10:01 +1000)
commitbe63e58732cedc0bbc39777d1cf7556e55f146ef
treed512bdb57ae21fcd4b44d41acc3f4d085faa5296
parent8ca6c6669fb6ebd4412be7e243eefdaa6b88aec6
Fix incorrect selection flags for ec serializer.

Fixes #12630

ec_import requires domain parameters to be part of the selection.
The public and private serialisers were not selecting the correct flags so the import was failing.
Added a test that uses the base provider so that a export/import happens for serialization.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12681)
providers/implementations/serializers/serializer_ec_priv.c
providers/implementations/serializers/serializer_ec_pub.c
test/recipes/15-test_genec.t