]> git.ipfire.org Git - thirdparty/openssl.git/blob - include/crypto/cms.h
TS and CMS CAdES-BES: Refactor check_signing_certs() funcs into common ESS func
[thirdparty/openssl.git] / include / crypto / cms.h
1 /*
2 * Copyright 2019-2021 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
10 #ifndef OSSL_CRYPTO_CMS_H
11 # define OSSL_CRYPTO_CMS_H
12 # pragma once
13
14 # ifndef OPENSSL_NO_CMS
15
16 /* internal CMS-ESS related stuff */
17
18 int ossl_cms_add1_signing_cert(CMS_SignerInfo *si, ESS_SIGNING_CERT *sc);
19 int ossl_cms_add1_signing_cert_v2(CMS_SignerInfo *si, ESS_SIGNING_CERT_V2 *sc);
20
21 int ossl_cms_signerinfo_get_signing_cert_v2(const CMS_SignerInfo *si,
22 ESS_SIGNING_CERT_V2 **psc);
23 int ossl_cms_signerinfo_get_signing_cert(const CMS_SignerInfo *si,
24 ESS_SIGNING_CERT **psc);
25 # endif /* OPENSSL_NO_CMS */
26
27 #endif