crypto_nss_mgt.h 832 B

12345678910111213141516171819202122232425262728293031323334
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file crypto_nss_mgt.h
  8. *
  9. * \brief Headers for crypto_nss_mgt.c
  10. **/
  11. #ifndef TOR_CRYPTO_NSS_MGT_H
  12. #define TOR_CRYPTO_NSS_MGT_H
  13. #include "orconfig.h"
  14. #ifdef ENABLE_NSS
  15. /* global nss state */
  16. const char *crypto_nss_get_version_str(void);
  17. const char *crypto_nss_get_header_version_str(void);
  18. void crypto_nss_log_errors(int severity, const char *doing);
  19. void crypto_nss_early_init(int nss_only);
  20. int crypto_nss_late_init(void);
  21. void crypto_nss_global_cleanup(void);
  22. void crypto_nss_prefork(void);
  23. void crypto_nss_postfork(void);
  24. #endif
  25. #endif /* !defined(TOR_CRYPTO_NSS_H) */