fips_key="orboDeJITITejsirpADONivirpUkvarP")
AC_DEFINE_UNQUOTED([FIPS_KEY], ["$fips_key"], [The FIPS140-2 integrity key])
+
+ AC_ARG_WITH(fips140-module-name, AS_HELP_STRING([--with-fips140-module-name],
+ [specify the FIPS140 module name]),
+ fips_module_name="$withval",
+ fips_module_name=none)
+
+ if test "x$fips_module_name" != xnone; then
+ AC_DEFINE_UNQUOTED([FIPS_MODULE_NAME], ["$fips_module_name"], [The FIPS140 module name])
+ fi
+
+ AC_ARG_WITH(fips140-module-version, AS_HELP_STRING([--with-fips140-module-version],
+ [specify the FIPS140 module version]),
+ fips_module_version="$withval",
+ fips_module_version=none)
+
+ if test "x$fips_module_version" != xnone; then
+ AC_DEFINE_UNQUOTED([FIPS_MODULE_VERSION], ["$fips_module_version"], [The FIPS140 module version])
+ fi
else
enable_fips=no
AC_MSG_WARN([[
}
static const struct gnutls_library_config_st _gnutls_library_config[] = {
+#ifdef FIPS_MODULE_NAME
+ { "fips-module-name", FIPS_MODULE_NAME },
+#endif
+#ifdef FIPS_MODULE_VERSION
+ { "fips-module-version", FIPS_MODULE_VERSION },
+#endif
{ "libgnutls-soname", GNUTLS_LIBRARY_SONAME },
{ "libnettle-soname", NETTLE_LIBRARY_SONAME },
{ "libhogweed-soname", HOGWEED_LIBRARY_SONAME },
* Returns the library configuration as key value pairs.
* Currently defined keys are:
*
+ * - fips-module-name: the name of the FIPS140 module
+ *
+ * - fips-module-version: the version of the FIPS140 module
+ *
* - libgnutls-soname: the SONAME of the library itself
*
* - libnettle-soname: the library SONAME of linked libnettle