Tor  0.4.7.0-alpha-dev
crypto_nss_mgt.h
Go to the documentation of this file.
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 */
6 
7 /**
8  * \file crypto_nss_mgt.h
9  *
10  * \brief Headers for crypto_nss_mgt.c
11  **/
12 
13 #ifndef TOR_CRYPTO_NSS_MGT_H
14 #define TOR_CRYPTO_NSS_MGT_H
15 
16 #include "orconfig.h"
17 
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);
22 
23 void crypto_nss_log_errors(int severity, const char *doing);
24 
25 void crypto_nss_early_init(int nss_only);
26 int crypto_nss_late_init(void);
27 
28 void crypto_nss_global_cleanup(void);
29 
30 void crypto_nss_prefork(void);
31 void crypto_nss_postfork(void);
32 #endif /* defined(ENABLE_NSS) */
33 
34 #endif /* !defined(TOR_CRYPTO_NSS_MGT_H) */