--- title: "How do I enable FIPS mode for NanoSSL?" source_url: https://dev.digicert.com/trustcore-sdk/nanossl/faqs/how-do-i-enable-fips-mode-for-nanossl.html --- **Question:** How do I enable FIPS mode for NanoSSL at runtime? **Answer:**To enable or disable FIPS mode at runtime define the following build flags and runtime settings. ## Build flags Define the following build flags: - `__ENABLE_MOCANA_FIPS_MODULE__` - `__ENABLE_MOCANA_SSL_FIPS__` ## Runtime settings To enable or disable FIPS mode at runtime, use the following API: ```c sbyte4 SSL_setFIPSEnabled(ubyte <1/0>) ``` where: - 1: Enables FIPS - 0: Disables FIPS