ceph_crypto: Assert that NSS initialization works.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
This commit is contained in:
Tommi Virtanen 2011-04-29 10:07:10 -07:00
parent 4107e2966a
commit 84454c24d1

View File

@ -9,7 +9,9 @@ ceph::crypto::HMACSHA1::~HMACSHA1()
#elif USE_NSS
void ceph::crypto::init() {
NSS_NoDB_Init(NULL);
SECStatus s;
s = NSS_NoDB_Init(NULL);
assert(s == SECSuccess);
}
ceph::crypto::HMACSHA1::~HMACSHA1()