source: EcnlProtoTool/trunk/openssl-1.1.0e/crypto/include/internal/cryptlib.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr
File size: 2.2 KB
Line 
1/*
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
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
8 */
9
10#ifndef HEADER_CRYPTLIB_H
11# define HEADER_CRYPTLIB_H
12
13# include <stdlib.h>
14# include <string.h>
15
16# include "e_os.h"
17
18# ifdef OPENSSL_USE_APPLINK
19# undef BIO_FLAGS_UPLINK
20# define BIO_FLAGS_UPLINK 0x8000
21# include "ms/uplink.h"
22# endif
23
24# include <openssl/crypto.h>
25# include <openssl/buffer.h>
26# include <openssl/bio.h>
27# include <openssl/err.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33typedef struct ex_callback_st EX_CALLBACK;
34
35DEFINE_STACK_OF(EX_CALLBACK)
36
37typedef struct app_mem_info_st APP_INFO;
38
39typedef struct mem_st MEM;
40DEFINE_LHASH_OF(MEM);
41
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"
47# define CTLOG_FILE OPENSSLDIR "/ct_log_list.cnf"
48# else
49# define X509_CERT_AREA "OSSL$DATAROOT:[000000]"
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"
54# endif
55
56# define X509_CERT_DIR_EVP "SSL_CERT_DIR"
57# define X509_CERT_FILE_EVP "SSL_CERT_FILE"
58# define CTLOG_FILE_EVP "CTLOG_FILE"
59
60/* size of string representations */
61# define DECIMAL_SIZE(type) ((sizeof(type)*8+2)/3+1)
62# define HEX_SIZE(type) (sizeof(type)*2)
63
64void OPENSSL_cpuid_setup(void);
65extern unsigned int OPENSSL_ia32cap_P[];
66void OPENSSL_showfatal(const char *fmta, ...);
67extern int OPENSSL_NONPIC_relocated;
68void crypto_cleanup_all_ex_data_int(void);
69
70int openssl_strerror_r(int errnum, char *buf, size_t buflen);
71# if !defined(OPENSSL_NO_STDIO)
72FILE *openssl_fopen(const char *filename, const char *mode);
73# else
74void *openssl_fopen(const char *filename, const char *mode);
75# endif
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif
Note: See TracBrowser for help on using the repository browser.