[suppress_type]
name = gnutls_fips140_operation_state_t
+
+[suppress_function]
+name = gnutls_get_library_config
gnutls_fips140_push_context@GNUTLS_3_7_3
gnutls_fips140_set_mode@GNUTLS_3_6_3
gnutls_free@GNUTLS_3_4
+gnutls_get_library_config@GNUTLS_3_7_3
gnutls_get_system_config_file@GNUTLS_3_6_9
gnutls_global_deinit@GNUTLS_3_4
gnutls_global_init@GNUTLS_3_4
FUNCS += functions/gnutls_fips140_push_context.short
FUNCS += functions/gnutls_fips140_set_mode
FUNCS += functions/gnutls_fips140_set_mode.short
+FUNCS += functions/gnutls_get_library_config
+FUNCS += functions/gnutls_get_library_config.short
FUNCS += functions/gnutls_get_system_config_file
FUNCS += functions/gnutls_get_system_config_file.short
FUNCS += functions/gnutls_global_deinit
APIMANS += gnutls_fips140_pop_context.3
APIMANS += gnutls_fips140_push_context.3
APIMANS += gnutls_fips140_set_mode.3
+APIMANS += gnutls_get_library_config.3
APIMANS += gnutls_get_system_config_file.3
APIMANS += gnutls_global_deinit.3
APIMANS += gnutls_global_init.3
_gnutls_global_deinit(1);
}
+
+static const struct gnutls_library_config_st _gnutls_library_config[] = {
+ { "libgnutls-soname", GNUTLS_LIBRARY_SONAME },
+ { "libnettle-soname", NETTLE_LIBRARY_SONAME },
+ { "libhogweed-soname", HOGWEED_LIBRARY_SONAME },
+ { "libgmp-soname", GMP_LIBRARY_SONAME },
+ { "hardware-features", HW_FEATURES },
+ { "tls-features", TLS_FEATURES },
+ { NULL, NULL }
+};
+
+/**
+ * gnutls_get_library_config:
+ *
+ * Returns the library configuration as key value pairs.
+ * Currently defined keys are:
+ *
+ * - libgnutls-soname: the SONAME of the library itself
+ *
+ * - libnettle-soname: the library SONAME of linked libnettle
+ *
+ * - libhogweed-soname: the library SONAME of linked libhogweed
+ *
+ * - libgmp-soname: the library SONAME of linked libgmp
+ *
+ * - hardware-features: enabled hardware support features
+ *
+ * - tls-features: enabled TLS protocol features
+ *
+ * Returns: a NUL-terminated %gnutls_library_config_st array
+ *
+ * Since: 3.7.3
+ */
+const gnutls_library_config_st *
+gnutls_get_library_config(void)
+{
+ return _gnutls_library_config;
+}
unsigned int size;
} gnutls_datum_t;
+typedef struct gnutls_library_config_st {
+ const char *name;
+ const char *value;
+} gnutls_library_config_st;
+
typedef struct gnutls_params_st {
gnutls_params_type_t type;
int gnutls_global_init(void);
void gnutls_global_deinit(void);
+const gnutls_library_config_st *gnutls_get_library_config(void);
+
/**
* gnutls_time_func:
* @t: where to store time.
gnutls_fips140_get_operation_state;
gnutls_fips140_push_context;
gnutls_fips140_pop_context;
+ gnutls_get_library_config;
local:
*;
} GNUTLS_3_7_2;