Browse Source

[core] set NSS_VER_INCLUDE after crypto lib select

master
Glenn Strauss 1 year ago
parent
commit
bcac9b5785
  1. 6
      src/sys-crypto-md.h
  2. 5
      src/sys-crypto.h

6
src/sys-crypto-md.h

@ -579,6 +579,12 @@ SHA256_Update(SHA256_CTX *ctx, const void *data, size_t length)
#elif defined(USE_NSS_CRYPTO)
#ifdef __has_include
#if __has_include(<nss3/nss.h>)
#define NSS_VER_INCLUDE
#endif
#endif
/* basic algorithms fail if NSS library has not been init'd (WTH).
* lighttpd defers initialization of rand and crypto until first use
* to attempt to avoid long, blocking init at startup while waiting

5
src/sys-crypto.h

@ -20,11 +20,6 @@
#ifdef HAVE_NSS3_NSS_H
#define USE_LIB_CRYPTO
#define USE_NSS_CRYPTO
#ifdef __has_include
#if __has_include(<nss3/nss.h>)
#define NSS_VER_INCLUDE
#endif
#endif
#endif
#ifdef HAVE_NSS_NSS_H
#define USE_LIB_CRYPTO

Loading…
Cancel
Save