diff options
author | Werner Koch <wk@gnupg.org> | 2021-01-28 15:40:15 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-01-28 15:40:15 +0100 |
commit | aa3f595341eb263980210776c7fe377b2ed24c5e (patch) | |
tree | 18f5033de25557f47f4f2a444cf6b8613d29d087 /src/global.c | |
parent | 014fed5153647641376b9131ea1d87dc5e88cf42 (diff) | |
download | libgcrypt-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.c | 15 |
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", ""); + } } |