]>
Commit | Line | Data |
---|---|---|
aa6bb135 RS |
1 | /* |
2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. | |
d02b48c6 | 3 | * |
aa6bb135 RS |
4 | * Licensed under the OpenSSL license (the "License"). You may not use |
5 | * this file except in compliance with the License. You can obtain a copy | |
6 | * in the file LICENSE in the source distribution or at | |
7 | * https://www.openssl.org/source/license.html | |
d02b48c6 RE |
8 | */ |
9 | ||
10 | #ifndef HEADER_CRYPTLIB_H | |
0f113f3e | 11 | # define HEADER_CRYPTLIB_H |
d02b48c6 | 12 | |
0f113f3e MC |
13 | # include <stdlib.h> |
14 | # include <string.h> | |
d02b48c6 | 15 | |
0f113f3e | 16 | # include "e_os.h" |
17e3dd1c | 17 | |
0f113f3e | 18 | # ifdef OPENSSL_USE_APPLINK |
b1b1cba4 | 19 | # undef BIO_FLAGS_UPLINK |
0f113f3e MC |
20 | # define BIO_FLAGS_UPLINK 0x8000 |
21 | # include "ms/uplink.h" | |
22 | # endif | |
ea1b02db | 23 | |
0f113f3e MC |
24 | # include <openssl/crypto.h> |
25 | # include <openssl/buffer.h> | |
26 | # include <openssl/bio.h> | |
27 | # include <openssl/err.h> | |
d02b48c6 | 28 | |
b50e1bd3 RL |
29 | #ifdef __cplusplus |
30 | extern "C" { | |
31 | #endif | |
32 | ||
4a1f3f27 DSH |
33 | typedef struct ex_callback_st EX_CALLBACK; |
34 | ||
35 | DEFINE_STACK_OF(EX_CALLBACK) | |
36 | ||
e6b5c341 | 37 | typedef struct app_mem_info_st APP_INFO; |
76dc3563 | 38 | |
e6b5c341 | 39 | typedef struct mem_st MEM; |
89d6aa10 | 40 | DEFINE_LHASH_OF(MEM); |
4a1f3f27 | 41 | |
0f113f3e MC |
42 | # ifndef OPENSSL_SYS_VMS |
43 | # define X509_CERT_AREA OPENSSLDIR | |
44 | # define X509_CERT_DIR OPENSSLDIR "/certs" | |
45 | # define X509_CERT_FILE OPENSSLDIR "/cert.pem" | |
46 | # define X509_PRIVATE_DIR OPENSSLDIR "/private" | |
98d8ddd2 | 47 | # define CTLOG_FILE OPENSSLDIR "/ct_log_list.cnf" |
0f113f3e | 48 | # else |
d17d3293 | 49 | # define X509_CERT_AREA "OSSL$DATAROOT:[000000]" |
a90f8d76 RL |
50 | # define X509_CERT_DIR "OSSL$DATAROOT:[CERTS]" |
51 | # define X509_CERT_FILE "OSSL$DATAROOT:[000000]cert.pem" | |
52 | # define X509_PRIVATE_DIR "OSSL$DATAROOT:[PRIVATE]" | |
53 | # define CTLOG_FILE "OSSL$DATAROOT:[000000]ct_log_list.cnf" | |
0f113f3e | 54 | # endif |
d02b48c6 | 55 | |
0f113f3e MC |
56 | # define X509_CERT_DIR_EVP "SSL_CERT_DIR" |
57 | # define X509_CERT_FILE_EVP "SSL_CERT_FILE" | |
8c6afbc5 | 58 | # define CTLOG_FILE_EVP "CTLOG_FILE" |
d02b48c6 | 59 | |
54a656ef | 60 | /* size of string representations */ |
0f113f3e MC |
61 | # define DECIMAL_SIZE(type) ((sizeof(type)*8+2)/3+1) |
62 | # define HEX_SIZE(type) (sizeof(type)*2) | |
54a656ef | 63 | |
2b247cf8 | 64 | void OPENSSL_cpuid_setup(void); |
e303f55f | 65 | extern unsigned int OPENSSL_ia32cap_P[]; |
0f113f3e | 66 | void OPENSSL_showfatal(const char *fmta, ...); |
51d28013 | 67 | extern int OPENSSL_NONPIC_relocated; |
b3599dbb | 68 | void crypto_cleanup_all_ex_data_int(void); |
2915fe19 | 69 | int openssl_init_fork_handlers(void); |
2b247cf8 | 70 | |
7d37818d | 71 | int openssl_strerror_r(int errnum, char *buf, size_t buflen); |
09487816 AP |
72 | # if !defined(OPENSSL_NO_STDIO) |
73 | FILE *openssl_fopen(const char *filename, const char *mode); | |
74 | # else | |
75 | void *openssl_fopen(const char *filename, const char *mode); | |
76 | # endif | |
7d37818d | 77 | |
d02b48c6 RE |
78 | #ifdef __cplusplus |
79 | } | |
80 | #endif | |
81 | ||
82 | #endif |