pkcs7.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* pkcs7.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. #ifdef HAVE_PKCS7
  22. #ifndef CTAO_CRYPT_PKCS7_H
  23. #define CTAO_CRYPT_PKCS7_H
  24. /* pull in compatibility for old includes */
  25. #include <cyassl/ctaocrypt/types.h>
  26. #include <cyassl/ctaocrypt/asn.h>
  27. #include <cyassl/ctaocrypt/asn_public.h>
  28. #include <cyassl/ctaocrypt/random.h>
  29. #include <cyassl/ctaocrypt/des3.h>
  30. #include <wolfssl/wolfcrypt/pkcs7.h>
  31. /* for pkcs7 reverse compatibility */
  32. #define SetContentType wc_SetContentType
  33. #define GetContentType wc_GetContentType
  34. #define CreateRecipientInfo wc_CreateRecipientInfo
  35. #define PKCS7_InitWithCert wc_PKCS7_InitWithCert
  36. #define PKCS7_Free wc_PKCS7_Free
  37. #define PKCS7_EncodeData wc_PKCS7_EncodeData
  38. #define PKCS7_EncodeSignedData wc_PKCS7_EncodeSignedData
  39. #define PKCS7_VerifySignedData wc_PKCS7_VerifySignedData
  40. #define PKCS7_EncodeEnvelopedData wc_PKCS7_EncodeEnvelopedData
  41. #define PKCS7_DecodeEnvelopedData wc_PKCS7_DecodeEnvelopedData
  42. #endif /* CTAO_CRYPT_PKCS7_H */
  43. #endif /* HAVE_PKCS7 */