summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-01-28 15:40:15 +0100
committerWerner Koch <wk@gnupg.org>2021-01-28 15:40:15 +0100
commitaa3f595341eb263980210776c7fe377b2ed24c5e (patch)
tree18f5033de25557f47f4f2a444cf6b8613d29d087 /src/global.c
parent014fed5153647641376b9131ea1d87dc5e88cf42 (diff)
downloadlibgcrypt-aa3f595341eb263980210776c7fe377b2ed24c5e.tar.gz
Add a compliance keyword to gcry_get_config.
* src/global.c (print_config): New config line. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index b51cb763..57f7329b 100644
--- a/src/global.c
+++ b/src/global.c
@@ -392,6 +392,21 @@ print_config (const char *what, gpgrt_stream_t fp)
jver = _gcry_rndjent_get_version (&active);
gpgrt_fprintf (fp, "rng-type:%s:%d:%u:%d:\n", s, i, jver, active);
}
+
+ if (!what || !strcmp (what, "compliance"))
+ {
+ /* Right now we have no certification for 1.9 so we return an
+ * empty string. As soon as this version has been approved for
+ * VS-Nfd we will put the string "de-vs" into the second
+ * field. If further specifications are required they are added
+ * as parameters to that field. Other certifications will go
+ * into field 3 and so on.
+ * field 1: keyword "compliance"
+ * field 2: German VS-Nfd is marked with "de-vs"
+ * field 3: reserved for FIPS.
+ */
+ gpgrt_fprintf (fp, "compliance:%s::\n", "");
+ }
}