Adam Langley | 4c921e1 | 2014-07-14 15:28:14 -0700 | [diff] [blame] | 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 | |
David Benjamin | a70c75c | 2014-09-11 19:11:15 -0400 | [diff] [blame] | 15 | #ifndef OPENSSL_HEADER_CRYPTO_H |
| 16 | #define OPENSSL_HEADER_CRYPTO_H |
| 17 | |
| 18 | #include <openssl/base.h> |
| 19 | |
| 20 | #include <openssl/mem.h> |
| 21 | |
| 22 | #if defined(__cplusplus) |
| 23 | extern "C" { |
| 24 | #endif |
| 25 | |
| 26 | |
| 27 | /* crypto.h contains functions for initializing the crypto library. */ |
| 28 | |
| 29 | |
| 30 | /* CRYPTO_library_init initializes the crypto library. It must be called if the |
| 31 | * library is built with BORINGSSL_NO_STATIC_INITIALIZER. Otherwise, it does |
| 32 | * nothing and a static initializer is used instead. */ |
| 33 | OPENSSL_EXPORT void CRYPTO_library_init(void); |
| 34 | |
| 35 | |
| 36 | #if defined(__cplusplus) |
| 37 | } /* extern C */ |
| 38 | #endif |
Adam Langley | 4c921e1 | 2014-07-14 15:28:14 -0700 | [diff] [blame] | 39 | |
| 40 | #define CRYPTO_F_CRYPTO_set_ex_data 100 |
| 41 | #define CRYPTO_F_get_class 101 |
| 42 | #define CRYPTO_F_get_new_index 102 |
| 43 | #define CRYPTO_F_get_func_pointers 103 |
| 44 | |
David Benjamin | a70c75c | 2014-09-11 19:11:15 -0400 | [diff] [blame] | 45 | #endif /* OPENSSL_HEADER_CRYPTO_H */ |