Browse Source

add LTC_BASE64_STRICT to crypt_build_settings and crypt_constants

Steffen Jaeckel 9 years ago
parent
commit
063bac396d
2 changed files with 7 additions and 0 deletions
  1. 3 0
      src/misc/crypt/crypt.c
  2. 4 0
      src/misc/crypt/crypt_constants.c

+ 3 - 0
src/misc/crypt/crypt.c

@@ -337,6 +337,9 @@ const char *crypt_build_settings =
 #if defined(LTC_BASE64_URL)
     " BASE64-URL-SAFE "
 #endif
+#if defined(LTC_BASE64) || defined(LTC_BASE64_URL)
+    " "NAME_VALUE(LTC_BASE64_STRICT)" "
+#endif
 #if defined(LTC_CRC32)
     " CRC32 "
 #endif

+ 4 - 0
src/misc/crypt/crypt_constants.c

@@ -89,6 +89,10 @@ static const crypt_constant _crypt_constants[] = {
     {"LTC_CTR_MODE", 0},
 #endif
 
+#if defined(LTC_BASE64) || defined(LTC_BASE64_URL)
+    _C_STRINGIFY(LTC_BASE64_STRICT),
+#endif
+
     _C_STRINGIFY(MAXBLOCKSIZE),
     _C_STRINGIFY(TAB_SIZE),
     _C_STRINGIFY(ARGTYPE),