blob: 20c850ee7bb1c3dedd65c5d380331a803b91341d [file] [log] [blame]
Adam Langley4c921e12014-07-14 15:28:14 -07001/* 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 Benjamina70c75c2014-09-11 19:11:15 -040015#ifndef OPENSSL_HEADER_CRYPTO_H
16#define OPENSSL_HEADER_CRYPTO_H
17
18#include <openssl/base.h>
19
David Benjamina70c75c2014-09-11 19:11:15 -040020
21#if defined(__cplusplus)
22extern "C" {
23#endif
24
25
26/* crypto.h contains functions for initializing the crypto library. */
27
28
29/* CRYPTO_library_init initializes the crypto library. It must be called if the
30 * library is built with BORINGSSL_NO_STATIC_INITIALIZER. Otherwise, it does
31 * nothing and a static initializer is used instead. */
32OPENSSL_EXPORT void CRYPTO_library_init(void);
33
34
Adam Langleyc3ef76f2015-04-13 14:34:17 -070035/* Deprecated functions. */
36
37#define OPENSSL_VERSION_TEXT "BoringSSL"
38
39#define SSLEAY_VERSION 0
40
41/* SSLeay_version is a compatibility function that returns the string
42 * "BoringSSL". */
43OPENSSL_EXPORT const char *SSLeay_version(int unused);
44
45/* SSLeay is a compatibility function that returns the string "BoringSSL". */
46OPENSSL_EXPORT const char *SSLeay(void);
47
48
David Benjamina70c75c2014-09-11 19:11:15 -040049#if defined(__cplusplus)
50} /* extern C */
51#endif
Adam Langley4c921e12014-07-14 15:28:14 -070052
53#define CRYPTO_F_CRYPTO_set_ex_data 100
54#define CRYPTO_F_get_class 101
David Benjamin689be0f2015-02-11 15:55:26 -050055#define CRYPTO_F_get_func_pointers 102
56#define CRYPTO_F_get_new_index 103
Adam Langley4c921e12014-07-14 15:28:14 -070057
David Benjamina70c75c2014-09-11 19:11:15 -040058#endif /* OPENSSL_HEADER_CRYPTO_H */