1*76da589eSbeck /* $OpenBSD: pkcs7.h,v 1.5 2024/07/08 17:01:54 beck Exp $ */ 2c66cbe72Sbeck /* 3c66cbe72Sbeck * Copyright (c) 2022 Bob Beck <beck@openbsd.org> 4c66cbe72Sbeck * 5c66cbe72Sbeck * Permission to use, copy, modify, and distribute this software for any 6c66cbe72Sbeck * purpose with or without fee is hereby granted, provided that the above 7c66cbe72Sbeck * copyright notice and this permission notice appear in all copies. 8c66cbe72Sbeck * 9c66cbe72Sbeck * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10c66cbe72Sbeck * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11c66cbe72Sbeck * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12c66cbe72Sbeck * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13c66cbe72Sbeck * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14c66cbe72Sbeck * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15c66cbe72Sbeck * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16c66cbe72Sbeck */ 17c66cbe72Sbeck 18c66cbe72Sbeck #ifndef _LIBCRYPTO_PKCS7_H 19c66cbe72Sbeck #define _LIBCRYPTO_PKCS7_H 20c66cbe72Sbeck 2139d2b79eSbcook #ifndef _MSC_VER 22c66cbe72Sbeck #include_next <openssl/pkcs7.h> 2339d2b79eSbcook #else 2439d2b79eSbcook #include "../include/openssl/pkcs7.h" 2539d2b79eSbcook #endif 26c66cbe72Sbeck #include "crypto_namespace.h" 27c66cbe72Sbeck 28c66cbe72Sbeck LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_new); 29c66cbe72Sbeck LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_free); 30c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_ISSUER_AND_SERIAL); 31c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_ISSUER_AND_SERIAL); 32c66cbe72Sbeck LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_digest); 33c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_fp); 34c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_fp); 35c66cbe72Sbeck LCRYPTO_USED(PKCS7_dup); 36c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_bio); 37c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_bio); 38c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_bio_stream); 39c66cbe72Sbeck LCRYPTO_USED(PEM_write_bio_PKCS7_stream); 40c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNER_INFO_new); 41c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNER_INFO_free); 42c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_SIGNER_INFO); 43c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_SIGNER_INFO); 44c66cbe72Sbeck LCRYPTO_USED(PKCS7_RECIP_INFO_new); 45c66cbe72Sbeck LCRYPTO_USED(PKCS7_RECIP_INFO_free); 46c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_RECIP_INFO); 47c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_RECIP_INFO); 48c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNED_new); 49c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNED_free); 50c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_SIGNED); 51c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_SIGNED); 52c66cbe72Sbeck LCRYPTO_USED(PKCS7_ENC_CONTENT_new); 53c66cbe72Sbeck LCRYPTO_USED(PKCS7_ENC_CONTENT_free); 54c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_ENC_CONTENT); 55c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_ENC_CONTENT); 56c66cbe72Sbeck LCRYPTO_USED(PKCS7_ENVELOPE_new); 57c66cbe72Sbeck LCRYPTO_USED(PKCS7_ENVELOPE_free); 58c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_ENVELOPE); 59c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_ENVELOPE); 60c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGN_ENVELOPE_new); 61c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGN_ENVELOPE_free); 62c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_SIGN_ENVELOPE); 63c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_SIGN_ENVELOPE); 64c66cbe72Sbeck LCRYPTO_USED(PKCS7_DIGEST_new); 65c66cbe72Sbeck LCRYPTO_USED(PKCS7_DIGEST_free); 66c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_DIGEST); 67c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_DIGEST); 68c66cbe72Sbeck LCRYPTO_USED(PKCS7_ENCRYPT_new); 69c66cbe72Sbeck LCRYPTO_USED(PKCS7_ENCRYPT_free); 70c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7_ENCRYPT); 71c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7_ENCRYPT); 72c66cbe72Sbeck LCRYPTO_USED(PKCS7_new); 73c66cbe72Sbeck LCRYPTO_USED(PKCS7_free); 74c66cbe72Sbeck LCRYPTO_USED(d2i_PKCS7); 75c66cbe72Sbeck LCRYPTO_USED(i2d_PKCS7); 76c66cbe72Sbeck LCRYPTO_USED(PKCS7_print_ctx); 77c66cbe72Sbeck LCRYPTO_USED(PKCS7_ctrl); 78c66cbe72Sbeck LCRYPTO_USED(PKCS7_set_type); 79c66cbe72Sbeck LCRYPTO_USED(PKCS7_set0_type_other); 80c66cbe72Sbeck LCRYPTO_USED(PKCS7_set_content); 81c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNER_INFO_set); 82c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNER_INFO_sign); 83c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_signer); 84c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_certificate); 85c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_crl); 86c66cbe72Sbeck LCRYPTO_USED(PKCS7_content_new); 87c66cbe72Sbeck LCRYPTO_USED(PKCS7_dataVerify); 88c66cbe72Sbeck LCRYPTO_USED(PKCS7_signatureVerify); 89c66cbe72Sbeck LCRYPTO_USED(PKCS7_dataInit); 90c66cbe72Sbeck LCRYPTO_USED(PKCS7_dataFinal); 91c66cbe72Sbeck LCRYPTO_USED(PKCS7_dataDecode); 92c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_signature); 93c66cbe72Sbeck LCRYPTO_USED(PKCS7_cert_from_signer_info); 94c66cbe72Sbeck LCRYPTO_USED(PKCS7_set_digest); 95c66cbe72Sbeck LCRYPTO_USED(PKCS7_get_signer_info); 96c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_recipient); 97c66cbe72Sbeck LCRYPTO_USED(PKCS7_SIGNER_INFO_get0_algs); 98c66cbe72Sbeck LCRYPTO_USED(PKCS7_RECIP_INFO_get0_alg); 99c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_recipient_info); 100c66cbe72Sbeck LCRYPTO_USED(PKCS7_RECIP_INFO_set); 101c66cbe72Sbeck LCRYPTO_USED(PKCS7_set_cipher); 102c66cbe72Sbeck LCRYPTO_USED(PKCS7_stream); 103c66cbe72Sbeck LCRYPTO_USED(PKCS7_get_issuer_and_serial); 104c66cbe72Sbeck LCRYPTO_USED(PKCS7_digest_from_attributes); 105c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_signed_attribute); 106c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_attribute); 107c66cbe72Sbeck LCRYPTO_USED(PKCS7_get_attribute); 108c66cbe72Sbeck LCRYPTO_USED(PKCS7_get_signed_attribute); 109c66cbe72Sbeck LCRYPTO_USED(PKCS7_set_signed_attributes); 110c66cbe72Sbeck LCRYPTO_USED(PKCS7_set_attributes); 111c66cbe72Sbeck LCRYPTO_USED(PKCS7_sign); 112c66cbe72Sbeck LCRYPTO_USED(PKCS7_sign_add_signer); 113c66cbe72Sbeck LCRYPTO_USED(PKCS7_final); 114c66cbe72Sbeck LCRYPTO_USED(PKCS7_verify); 115c66cbe72Sbeck LCRYPTO_USED(PKCS7_get0_signers); 116c66cbe72Sbeck LCRYPTO_USED(PKCS7_encrypt); 117c66cbe72Sbeck LCRYPTO_USED(PKCS7_decrypt); 118c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_attrib_smimecap); 119c66cbe72Sbeck LCRYPTO_USED(PKCS7_get_smimecap); 120c66cbe72Sbeck LCRYPTO_USED(PKCS7_simple_smimecap); 121c66cbe72Sbeck LCRYPTO_USED(PKCS7_add_attrib_content_type); 122c66cbe72Sbeck LCRYPTO_USED(PKCS7_add0_attrib_signing_time); 123c66cbe72Sbeck LCRYPTO_USED(PKCS7_add1_attrib_digest); 124c66cbe72Sbeck LCRYPTO_USED(SMIME_write_PKCS7); 125c66cbe72Sbeck LCRYPTO_USED(SMIME_read_PKCS7); 126c66cbe72Sbeck LCRYPTO_USED(BIO_new_PKCS7); 127c66cbe72Sbeck LCRYPTO_USED(ERR_load_PKCS7_strings); 128*76da589eSbeck #if defined(LIBRESSL_NAMESPACE) 129589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_it); 130589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_SIGNER_INFO_it); 131589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_RECIP_INFO_it); 132589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_SIGNED_it); 133589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_ENC_CONTENT_it); 134589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_ENVELOPE_it); 135589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_SIGN_ENVELOPE_it); 136589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_DIGEST_it); 137589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_ENCRYPT_it); 138589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_it); 139589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_ATTR_SIGN_it); 140589ce5b7Sbeck extern LCRYPTO_USED(PKCS7_ATTR_VERIFY_it); 141*76da589eSbeck #endif 142c66cbe72Sbeck 143c66cbe72Sbeck #endif /* _LIBCRYPTO_PKCS7_H */ 144