libnspr is only needed for libnss, move it to if defined(USE_NSS)
section.
ceph::crypto::shutdown's params should be same with declaration.
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
#include "ceph_crypto.h"
#include "auth/Crypto.h"
-#include <nspr.h>
#include <pthread.h>
#include <stdlib.h>
{
}
-void ceph::crypto::shutdown()
+void ceph::crypto::shutdown(bool)
{
}
// for SECMOD_RestartModules()
#include <secmod.h>
+#include <nspr.h>
static pthread_mutex_t crypto_init_mutex = PTHREAD_MUTEX_INITIALIZER;
static uint32_t crypto_refs = 0;