dirvote: Fix memleak when computing consensus
[tor.git] / src / lib / crypt_ops / crypto_nss_mgt.h
blob80d1c78c6a45f619c321cb79036243235918e932
1 /* Copyright (c) 2001, Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * \file crypto_nss_mgt.h
10 * \brief Headers for crypto_nss_mgt.c
11 **/
13 #ifndef TOR_CRYPTO_NSS_MGT_H
14 #define TOR_CRYPTO_NSS_MGT_H
16 #include "orconfig.h"
18 #ifdef ENABLE_NSS
19 /* global nss state */
20 const char *crypto_nss_get_version_str(void);
21 const char *crypto_nss_get_header_version_str(void);
23 void crypto_nss_log_errors(int severity, const char *doing);
25 void crypto_nss_early_init(int nss_only);
26 int crypto_nss_late_init(void);
28 void crypto_nss_global_cleanup(void);
30 void crypto_nss_prefork(void);
31 void crypto_nss_postfork(void);
32 #endif /* defined(ENABLE_NSS) */
34 #endif /* !defined(TOR_CRYPTO_NSS_MGT_H) */