cryptothread.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* Slitheen - a decoy routing system for censorship resistance
  2. * Copyright (C) 2017 Cecylia Bocovich (cbocovic@uwaterloo.ca)
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, version 3.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. * Additional permission under GNU GPL version 3 section 7
  17. *
  18. * If you modify this Program, or any covered work, by linking or combining
  19. * it with the OpenSSL library (or a modified version of that library),
  20. * containing parts covered by the terms of [name of library's license],
  21. * the licensors of this Program grant you additional permission to convey
  22. * the resulting work. {Corresponding Source for a non-source form of such
  23. * a combination shall include the source code for the parts of the OpenSSL
  24. * library used as well as that of the covered work.}
  25. */
  26. #ifndef _CRYPTOTHREAD_H_
  27. #define _CRYPTOTHREAD_H_
  28. #include <openssl/crypto.h>
  29. void init_crypto_locks(void);
  30. void crypto_locks_cleanup(void);
  31. void pthreads_thread_id(CRYPTO_THREADID *tid);
  32. void pthreads_locking_callback(int mode, int type, const char *file, int line);
  33. #endif /* _CRYPTOTHREAD_H_ */