cms.h 941 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2019-2025 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OSSL_INTERNAL_CMS_H
  10. # define OSSL_INTERNAL_CMS_H
  11. # pragma once
  12. # include <openssl/cms.h>
  13. # ifndef OPENSSL_NO_CMS
  14. CMS_EnvelopedData *ossl_cms_sign_encrypt(BIO *data, X509 *sign_cert, STACK_OF(X509) *certs,
  15. EVP_PKEY *sign_key, unsigned int sign_flags,
  16. STACK_OF(X509) *enc_recip, const EVP_CIPHER *cipher,
  17. unsigned int enc_flags, OSSL_LIB_CTX *libctx,
  18. const char *propq);
  19. # endif /* OPENSSL_NO_CMS */
  20. #endif /* OSSL_INTERNAL_CMS_H */