Add the correct enum value for DSA public key serialization
authorJon Spillett <jon.spillett@oracle.com>
Wed, 19 Aug 2020 23:13:28 +0000 (09:13 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Mon, 31 Aug 2020 04:49:16 +0000 (14:49 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12688)

providers/implementations/encode_decode/encoder_dsa_pub.c

index f99388e150f0d27786766c79c4f32886c6fa9c01..e1201634b9afdb93e445b6a2fa966df2b5291c3e 100644 (file)
@@ -173,7 +173,7 @@ static int dsa_pub_print(void *ctx, void *dsa, OSSL_CORE_BIO *cout,
     if (out == NULL)
         return 0;
 
-    ret = ossl_prov_print_dsa(out, dsa, 0);
+    ret = ossl_prov_print_dsa(out, dsa, dsa_print_pub);
     BIO_free(out);
 
     return ret;