source: azure_iot_hub_f767zi/trunk/wolfssl-4.4.0/wolfssl/openssl/err.h@ 457

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

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 2.0 KB
Line 
1/* err.h
2 *
3 * Copyright (C) 2006-2020 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL.
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20 */
21
22#ifndef WOLFSSL_OPENSSL_ERR_
23#define WOLFSSL_OPENSSL_ERR_
24
25#include <wolfssl/wolfcrypt/logging.h>
26
27/* err.h for openssl */
28#define ERR_load_crypto_strings wolfSSL_ERR_load_crypto_strings
29#define ERR_load_CRYPTO_strings wolfSSL_ERR_load_crypto_strings
30#define ERR_peek_last_error wolfSSL_ERR_peek_last_error
31
32/* fatal error */
33#define ERR_R_MALLOC_FAILURE MEMORY_E
34#define ERR_R_PASSED_NULL_PARAMETER BAD_FUNC_ARG
35#define ERR_R_DISABLED NOT_COMPILED_IN
36#define ERR_R_PASSED_INVALID_ARGUMENT BAD_FUNC_ARG
37#define RSA_R_UNKNOWN_PADDING_TYPE RSA_PAD_E
38#define EC_R_BUFFER_TOO_SMALL BUFFER_E
39
40/* SSL function codes */
41#define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT 1
42#define SSL_F_SSL_CTX_USE_CERTIFICATE_FILE 2
43#define SSL_F_SSL_USE_PRIVATEKEY 3
44#define EC_F_EC_GFP_SIMPLE_POINT2OCT 4
45
46/* reasons */
47#define ERR_R_SYS_LIB 1
48#define PKCS12_R_MAC_VERIFY_FAILURE 2
49
50#define RSAerr(f,r) ERR_put_error(0,(f),(r),__FILE__,__LINE__)
51#define SSLerr(f,r) ERR_put_error(0,(f),(r),__FILE__,__LINE__)
52#define ECerr(f,r) ERR_put_error(0,(f),(r),__FILE__,__LINE__)
53
54#endif /* WOLFSSL_OPENSSL_ERR_ */
55
Note: See TracBrowser for help on using the repository browser.