diff options
Diffstat (limited to 'security/nss/fuzz/shared.h')
-rw-r--r-- | security/nss/fuzz/shared.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/security/nss/fuzz/shared.h b/security/nss/fuzz/shared.h new file mode 100644 index 000000000..09d805ed8 --- /dev/null +++ b/security/nss/fuzz/shared.h @@ -0,0 +1,18 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef shared_h__ +#define shared_h__ + +#include "nss.h" + +class NSSDatabase { + public: + NSSDatabase() { NSS_NoDB_Init(nullptr); } + ~NSSDatabase() { NSS_Shutdown(); } +}; + +#endif // shared_h__ |