Browse Source

[core] set NSS_VER_INCLUDE after crypto lib select

master
Glenn Strauss 2 months ago
parent
commit
bcac9b5785
2 changed files with 6 additions and 5 deletions
  1. +6
    -0
      src/sys-crypto-md.h
  2. +0
    -5
      src/sys-crypto.h

+ 6
- 0
src/sys-crypto-md.h View File

@ -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


+ 0
- 5
src/sys-crypto.h View File

@ -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