diff options
author | Matt Caswell <matt@openssl.org> | 2020-04-20 14:05:23 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-04-22 10:32:47 +0100 |
commit | a033c9a2e8b1c9e5719a27ad3cadc66a866ef2c1 (patch) | |
tree | dbb6f1f8987ddc2950a0a16e38911c9c0a42f862 /providers/implementations/serializers/serializer_ffc_params.c | |
parent | 0345f9eccc25eee39c22a09325510ef791de631c (diff) |
Fix some build failures with no-dh
Add some missing OPENSSL_NO_DH guards.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11582)
Diffstat (limited to 'providers/implementations/serializers/serializer_ffc_params.c')
-rw-r--r-- | providers/implementations/serializers/serializer_ffc_params.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/providers/implementations/serializers/serializer_ffc_params.c b/providers/implementations/serializers/serializer_ffc_params.c index 20cf4b3d24..98c9886ce9 100644 --- a/providers/implementations/serializers/serializer_ffc_params.c +++ b/providers/implementations/serializers/serializer_ffc_params.c @@ -15,6 +15,7 @@ int ffc_params_prov_print(BIO *out, const FFC_PARAMS *ffc) { if (ffc->nid != NID_undef) { +#ifndef OPENSSL_NO_DH const char *name = ffc_named_group_from_uid(ffc->nid); if (name == NULL) @@ -22,6 +23,10 @@ int ffc_params_prov_print(BIO *out, const FFC_PARAMS *ffc) if (ossl_prov_bio_printf(out, "GROUP: %s\n", name) <= 0) goto err; return 1; +#else + /* How could this be? We should not have a nid in a no-dh build. */ + goto err; +#endif } if (!ossl_prov_print_labeled_bignum(out, "P: ", ffc->p)) |