objects.h 2.6 KB

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