summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2012-04-04 14:17:09 +0200
committerWerner Koch <wk@gnupg.org>2012-04-04 16:11:37 +0200
commit90e49a11733bfba9c3c505ac487282d35757f682 (patch)
tree7c4696e2ced4e66469095885bef94bef23efd112 /src/g10lib.h
parent70cca617ed75ea292e1fed769114dda5cc1d76f1 (diff)
downloadlibgcrypt-90e49a11733bfba9c3c505ac487282d35757f682.tar.gz
Add GCRYCTL_SET_ENFORCED_FIPS_FLAG command.
* doc/gcrypt.texi: Add documentation of the new command. * src/fips.c (_gcry_enforced_fips_mode): Report the enforced fips mode only when fips mode is enabled. (_gcry_set_enforced_fips_mode): New function. * src/g10lib.h: Add the _gcry_set_enforced_fips_mode prototype. * src/gcrypt.h.in: Add the GCRYCTL_SET_ENFORCED_FIPS_FLAG. * src/global.c (_gcry_vcontrol): Handle the new command.
Diffstat (limited to 'src/g10lib.h')
-rw-r--r--src/g10lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/g10lib.h b/src/g10lib.h
index 46d52290..ec86c976 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -327,6 +327,8 @@ int _gcry_fips_mode (void);
int _gcry_enforced_fips_mode (void);
+void _gcry_set_enforced_fips_mode (void);
+
void _gcry_inactivate_fips_mode (const char *text);
int _gcry_is_fips_mode_inactive (void);