Add |FIPS_mode|, which returns zero.

(node.js calls it.)

Change-Id: I7401f4cb4dfc61d500331821784ae717ad9f7adf
Reviewed-on: https://boringssl-review.googlesource.com/7271
Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/crypto/crypto.c b/crypto/crypto.c
index 7d62ff6..dc5c584 100644
--- a/crypto/crypto.c
+++ b/crypto/crypto.c
@@ -140,3 +140,5 @@
 void ENGINE_load_builtin_engines(void) {}
 
 void OPENSSL_load_builtin_modules(void) {}
+
+int FIPS_mode(void) { return 0; }
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h
index 29d5892..0d4e345 100644
--- a/include/openssl/crypto.h
+++ b/include/openssl/crypto.h
@@ -65,6 +65,9 @@
 /* OPENSSL_load_builtin_modules does nothing. */
 OPENSSL_EXPORT void OPENSSL_load_builtin_modules(void);
 
+/* FIPS_mode returns zero. */
+OPENSSL_EXPORT int FIPS_mode(void);
+
 
 #if defined(__cplusplus)
 }  /* extern C */