1 /* objects.h
2  *
3  * Copyright (C) 2006-2021 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 
23 #ifndef WOLFSSL_OBJECTS_H_
24 #define WOLFSSL_OBJECTS_H_
25 
26 #include <wolfssl/wolfcrypt/settings.h>
27 #ifndef OPENSSL_EXTRA_SSL_GUARD
28 #define OPENSSL_EXTRA_SSL_GUARD
29 #include <wolfssl/ssl.h>
30 #endif /* OPENSSL_EXTRA_SSL_GUARD */
31 
32 #ifdef __cplusplus
33     extern "C" {
34 #endif
35 
36 #define OBJ_NAME_TYPE_UNDEF     WOLFSSL_OBJ_NAME_TYPE_UNDEF
37 #define OBJ_NAME_TYPE_MD_METH   WOLFSSL_OBJ_NAME_TYPE_MD_METH
38 #define OBJ_NAME_TYPE_CIPHER_METH   WOLFSSL_OBJ_NAME_TYPE_CIPHER_METH
39 #define OBJ_NAME_TYPE_PKEY_METH     WOLFSSL_OBJ_NAME_TYPE_PKEY_METH
40 #define OBJ_NAME_TYPE_COMP_METH     WOLFSSL_OBJ_NAME_TYPE_COMP_METH
41 #define OBJ_NAME_TYPE_NUM           WOLFSSL_OBJ_NAME_TYPE_NUM
42 #define OBJ_NAME_ALIAS              WOLFSSL_OBJ_NAME_ALIAS
43 
44 #define OBJ_nid2sn  wolfSSL_OBJ_nid2sn
45 #define OBJ_obj2nid wolfSSL_OBJ_obj2nid
46 #define OBJ_sn2nid  wolfSSL_OBJ_sn2nid
47 #define OBJ_nid2ln  wolfSSL_OBJ_nid2ln
48 #define OBJ_ln2nid  wolfSSL_OBJ_ln2nid
49 #define OBJ_txt2nid wolfSSL_OBJ_txt2nid
50 #define OBJ_txt2obj wolfSSL_OBJ_txt2obj
51 #define OBJ_nid2obj wolfSSL_OBJ_nid2obj
52 #define OBJ_obj2txt wolfSSL_OBJ_obj2txt
53 #define OBJ_cleanup wolfSSL_OBJ_cleanup
54 #define OBJ_cmp     wolfSSL_OBJ_cmp
55 #define OBJ_create  wolfSSL_OBJ_create
56 #define ASN1_OBJECT_free wolfSSL_ASN1_OBJECT_free
57 #define OBJ_NAME_do_all wolfSSL_OBJ_NAME_do_all
58 #define i2t_ASN1_OBJECT wolfSSL_i2t_ASN1_OBJECT
59 
60 /* not required for wolfSSL */
61 #define OPENSSL_load_builtin_modules()
62 
63 
64 #define NID_ad_OCSP                     178
65 #define NID_ad_ca_issuers               179
66 
67 
68 #ifdef __cplusplus
69     }  /* extern "C" */
70 #endif
71 
72 #endif /* WOLFSSL_OBJECTS_H_ */
73