]>
git.ipfire.org Git - thirdparty/openssl.git/blob - include/crypto/ess.h
2 * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
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
10 #ifndef OSSL_CRYPTO_ESS_H
11 # define OSSL_CRYPTO_ESS_H
15 * IssuerSerial ::= SEQUENCE {
16 * issuer GeneralNames,
17 * serialNumber CertificateSerialNumber
21 struct ESS_issuer_serial
{
22 STACK_OF(GENERAL_NAME
) *issuer
;
27 * ESSCertID ::= SEQUENCE {
29 * issuerSerial IssuerSerial OPTIONAL
34 ASN1_OCTET_STRING
*hash
; /* Always SHA-1 digest. */
35 ESS_ISSUER_SERIAL
*issuer_serial
;
39 * SigningCertificate ::= SEQUENCE {
40 * certs SEQUENCE OF ESSCertID,
41 * policies SEQUENCE OF PolicyInformation OPTIONAL
45 struct ESS_signing_cert
{
46 STACK_OF(ESS_CERT_ID
) *cert_ids
;
47 STACK_OF(POLICYINFO
) *policy_info
;
51 * ESSCertIDv2 ::= SEQUENCE {
52 * hashAlgorithm AlgorithmIdentifier DEFAULT id-sha256,
54 * issuerSerial IssuerSerial OPTIONAL
58 struct ESS_cert_id_v2_st
{
59 X509_ALGOR
*hash_alg
; /* Default: SHA-256 */
60 ASN1_OCTET_STRING
*hash
;
61 ESS_ISSUER_SERIAL
*issuer_serial
;
65 * SigningCertificateV2 ::= SEQUENCE {
66 * certs SEQUENCE OF ESSCertIDv2,
67 * policies SEQUENCE OF PolicyInformation OPTIONAL
71 struct ESS_signing_cert_v2_st
{
72 STACK_OF(ESS_CERT_ID_V2
) *cert_ids
;
73 STACK_OF(POLICYINFO
) *policy_info
;
76 #endif /* OSSL_CRYPTO_ESS_H */