25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

72 satır
2.2 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. /* Upstream OpenSSL defines |OPENSSL_malloc|, etc., in crypto.h rather than
  18. * mem.h. */
  19. #include <openssl/mem.h>
  20. /* Upstream OpenSSL defines |CRYPTO_LOCK|, etc., in crypto.h rather than
  21. * thread.h. */
  22. #include <openssl/thread.h>
  23. #if defined(__cplusplus)
  24. extern "C" {
  25. #endif
  26. /* crypto.h contains functions for initializing the crypto library. */
  27. /* CRYPTO_library_init initializes the crypto library. It must be called if the
  28. * library is built with BORINGSSL_NO_STATIC_INITIALIZER. Otherwise, it does
  29. * nothing and a static initializer is used instead. */
  30. OPENSSL_EXPORT void CRYPTO_library_init(void);
  31. /* Deprecated functions. */
  32. #define OPENSSL_VERSION_TEXT "BoringSSL"
  33. #define SSLEAY_VERSION 0
  34. /* SSLeay_version is a compatibility function that returns the string
  35. * "BoringSSL". */
  36. OPENSSL_EXPORT const char *SSLeay_version(int unused);
  37. /* SSLeay is a compatibility function that returns OPENSSL_VERSION_NUMBER from
  38. * base.h. */
  39. OPENSSL_EXPORT unsigned long SSLeay(void);
  40. /* CRYPTO_malloc_init returns one. */
  41. OPENSSL_EXPORT int CRYPTO_malloc_init(void);
  42. /* ENGINE_load_builtin_engines does nothing. */
  43. OPENSSL_EXPORT void ENGINE_load_builtin_engines(void);
  44. /* OPENSSL_load_builtin_modules does nothing. */
  45. OPENSSL_EXPORT void OPENSSL_load_builtin_modules(void);
  46. #if defined(__cplusplus)
  47. } /* extern C */
  48. #endif
  49. #endif /* OPENSSL_HEADER_CRYPTO_H */