|
@@ -215,6 +215,7 @@ int ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld,
|
|
|
ffc->seed, ffc->seedlen))
|
|
|
return 0;
|
|
|
if (ffc->nid != NID_undef) {
|
|
|
+#ifndef OPENSSL_NO_DH
|
|
|
const char *name = ffc_named_group_from_uid(ffc->nid);
|
|
|
|
|
|
if (name == NULL
|
|
@@ -222,6 +223,10 @@ int ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld,
|
|
|
OSSL_PKEY_PARAM_FFC_GROUP,
|
|
|
name))
|
|
|
return 0;
|
|
|
+#else
|
|
|
+ /* How could this be? We should not have a nid in a no-dh build. */
|
|
|
+ return 0;
|
|
|
+#endif
|
|
|
}
|
|
|
return 1;
|
|
|
}
|