It needs to be '#elif defined()' to work with cmake.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
# include <cryptopp/modes.h>
# include <cryptopp/aes.h>
# include <cryptopp/filters.h>
-#elif USE_NSS
+#elif defined(USE_NSS)
# include <nspr.h>
# include <nss.h>
# include <pk11pub.h>
}
};
-#elif USE_NSS
+#elif defined(USE_NSS)
// when we say AES, we mean AES-128
# define AES_KEY_LEN 16
# define AES_BLOCK_LEN 16
{
}
-#elif USE_NSS
+#elif defined(USE_NSS)
// for SECMOD_RestartModules()
#include <secmod.h>
#ifdef USE_CRYPTOPP
# define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
#include <string.h>
-# include <cryptopp/md5.h>
-# include <cryptopp/sha.h>
-# include <cryptopp/hmac.h>
+#include <cryptopp/md5.h>
+#include <cryptopp/sha.h>
+#include <cryptopp/hmac.h>
// reinclude our assert to clobber the system one
# include "include/assert.h"
};
}
}
-#elif USE_NSS
+#elif defined(USE_NSS)
// you *must* use CRYPTO_CXXFLAGS in Makefile.am for including this include
# include <nss.h>
# include <pk11pub.h>