2019-11-11 18:09:59 +01:00
|
|
|
/* objects.h
|
|
|
|
*
|
2023-01-01 18:00:36 +01:00
|
|
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
2019-11-11 18:09:59 +01:00
|
|
|
*
|
|
|
|
* This file is part of wolfSSL.
|
|
|
|
*
|
|
|
|
* wolfSSL is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* wolfSSL is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef WOLFSSL_OBJECTS_H_
|
|
|
|
#define WOLFSSL_OBJECTS_H_
|
|
|
|
|
|
|
|
#include <libs/libwolfssl/wolfcrypt/settings.h>
|
|
|
|
#ifndef OPENSSL_EXTRA_SSL_GUARD
|
|
|
|
#define OPENSSL_EXTRA_SSL_GUARD
|
|
|
|
#include <libs/libwolfssl/ssl.h>
|
|
|
|
#endif /* OPENSSL_EXTRA_SSL_GUARD */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-01-01 18:00:36 +01:00
|
|
|
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
|
|
|
|
|
|
|
#define OBJ_NAME_TYPE_UNDEF WOLFSSL_OBJ_NAME_TYPE_UNDEF
|
|
|
|
#define OBJ_NAME_TYPE_MD_METH WOLFSSL_OBJ_NAME_TYPE_MD_METH
|
|
|
|
#define OBJ_NAME_TYPE_CIPHER_METH WOLFSSL_OBJ_NAME_TYPE_CIPHER_METH
|
|
|
|
#define OBJ_NAME_TYPE_PKEY_METH WOLFSSL_OBJ_NAME_TYPE_PKEY_METH
|
|
|
|
#define OBJ_NAME_TYPE_COMP_METH WOLFSSL_OBJ_NAME_TYPE_COMP_METH
|
|
|
|
#define OBJ_NAME_TYPE_NUM WOLFSSL_OBJ_NAME_TYPE_NUM
|
|
|
|
#define OBJ_NAME_ALIAS WOLFSSL_OBJ_NAME_ALIAS
|
|
|
|
|
|
|
|
#define OBJ_nid2sn wolfSSL_OBJ_nid2sn
|
|
|
|
#define OBJ_obj2nid wolfSSL_OBJ_obj2nid
|
|
|
|
#define OBJ_sn2nid wolfSSL_OBJ_sn2nid
|
|
|
|
#define OBJ_length wolfSSL_OBJ_length
|
|
|
|
#define OBJ_get0_data wolfSSL_OBJ_get0_data
|
|
|
|
#define OBJ_nid2ln wolfSSL_OBJ_nid2ln
|
|
|
|
#define OBJ_ln2nid wolfSSL_OBJ_ln2nid
|
|
|
|
#define OBJ_txt2nid wolfSSL_OBJ_txt2nid
|
|
|
|
#define OBJ_txt2obj wolfSSL_OBJ_txt2obj
|
|
|
|
#define OBJ_nid2obj wolfSSL_OBJ_nid2obj
|
|
|
|
#define OBJ_obj2txt wolfSSL_OBJ_obj2txt
|
|
|
|
#define OBJ_cleanup wolfSSL_OBJ_cleanup
|
|
|
|
#define OBJ_cmp wolfSSL_OBJ_cmp
|
|
|
|
#define OBJ_create wolfSSL_OBJ_create
|
2019-11-11 18:09:59 +01:00
|
|
|
#define ASN1_OBJECT_free wolfSSL_ASN1_OBJECT_free
|
2023-01-01 18:00:36 +01:00
|
|
|
#define OBJ_NAME_do_all wolfSSL_OBJ_NAME_do_all
|
|
|
|
#define i2t_ASN1_OBJECT wolfSSL_i2t_ASN1_OBJECT
|
2019-11-11 18:09:59 +01:00
|
|
|
|
|
|
|
/* not required for wolfSSL */
|
|
|
|
#define OPENSSL_load_builtin_modules()
|
|
|
|
|
|
|
|
|
|
|
|
#define NID_ad_OCSP 178
|
|
|
|
#define NID_ad_ca_issuers 179
|
|
|
|
|
2023-01-01 18:00:36 +01:00
|
|
|
#endif /* OPENSSL_EXTRA || OPENSSL_EXTRA_X509_SMALL */
|
|
|
|
|
2019-11-11 18:09:59 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* WOLFSSL_OBJECTS_H_ */
|