You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 line
1.8 KiB

  1. /* Copyright (c) 2014, Google Inc.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  10. * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  12. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  13. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
  14. #ifndef OPENSSL_HEADER_CRYPTO_H
  15. #define OPENSSL_HEADER_CRYPTO_H
  16. #include <openssl/base.h>
  17. #if defined(__cplusplus)
  18. extern "C" {
  19. #endif
  20. /* crypto.h contains functions for initializing the crypto library. */
  21. /* CRYPTO_library_init initializes the crypto library. It must be called if the
  22. * library is built with BORINGSSL_NO_STATIC_INITIALIZER. Otherwise, it does
  23. * nothing and a static initializer is used instead. */
  24. OPENSSL_EXPORT void CRYPTO_library_init(void);
  25. /* Deprecated functions. */
  26. #define OPENSSL_VERSION_TEXT "BoringSSL"
  27. #define SSLEAY_VERSION 0
  28. /* SSLeay_version is a compatibility function that returns the string
  29. * "BoringSSL". */
  30. OPENSSL_EXPORT const char *SSLeay_version(int unused);
  31. /* SSLeay is a compatibility function that returns the string "BoringSSL". */
  32. OPENSSL_EXPORT const char *SSLeay(void);
  33. #if defined(__cplusplus)
  34. } /* extern C */
  35. #endif
  36. #define CRYPTO_F_CRYPTO_get_ex_new_index 100
  37. #define CRYPTO_F_CRYPTO_set_ex_data 101
  38. #define CRYPTO_F_get_class 102
  39. #define CRYPTO_F_get_func_pointers 103
  40. #endif /* OPENSSL_HEADER_CRYPTO_H */