### 2.7 How to disable the FIPS mode ¶

When the system is configured using libgcrypt in FIPS mode (by file or environement variable), but an application wants to use non-FIPS features, Libgcrypt needs to be gotten out of FIPS mode. A mechanism is provided to switch Libgcrypt into non-FIPS mode:

- If the application requests non-FIPS mode using the control command `GCRYCTL_NO_FIPS_MODE`. This must be done prior to any initialization (i.e. before `gcry_check_version`).