VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/include/crypto/ess.h@ 98133

最後變更 在這個檔案從98133是 97984,由 vboxsync 提交於 2 年 前

libs/openssl-3.0.7: Shut up pragma once warnings for internal headers. Added sed script for doing that. bugref:10317

檔案大小: 2.1 KB
 
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_ESS_H
11# define OSSL_CRYPTO_ESS_H
12# ifndef RT_WITHOUT_PRAGMA_ONCE /* VBOX */
13# pragma once
14# endif /* VBOX */
15
16/*-
17 * IssuerSerial ::= SEQUENCE {
18 * issuer GeneralNames,
19 * serialNumber CertificateSerialNumber
20 * }
21 */
22
23struct ESS_issuer_serial {
24 STACK_OF(GENERAL_NAME) *issuer;
25 ASN1_INTEGER *serial;
26};
27
28/*-
29 * ESSCertID ::= SEQUENCE {
30 * certHash Hash,
31 * issuerSerial IssuerSerial OPTIONAL
32 * }
33 */
34
35struct ESS_cert_id {
36 ASN1_OCTET_STRING *hash; /* Always SHA-1 digest. */
37 ESS_ISSUER_SERIAL *issuer_serial;
38};
39
40/*-
41 * SigningCertificate ::= SEQUENCE {
42 * certs SEQUENCE OF ESSCertID,
43 * policies SEQUENCE OF PolicyInformation OPTIONAL
44 * }
45 */
46
47struct ESS_signing_cert {
48 STACK_OF(ESS_CERT_ID) *cert_ids;
49 STACK_OF(POLICYINFO) *policy_info;
50};
51
52/*-
53 * ESSCertIDv2 ::= SEQUENCE {
54 * hashAlgorithm AlgorithmIdentifier DEFAULT id-sha256,
55 * certHash Hash,
56 * issuerSerial IssuerSerial OPTIONAL
57 * }
58 */
59
60struct ESS_cert_id_v2_st {
61 X509_ALGOR *hash_alg; /* Default: SHA-256 */
62 ASN1_OCTET_STRING *hash;
63 ESS_ISSUER_SERIAL *issuer_serial;
64};
65
66/*-
67 * SigningCertificateV2 ::= SEQUENCE {
68 * certs SEQUENCE OF ESSCertIDv2,
69 * policies SEQUENCE OF PolicyInformation OPTIONAL
70 * }
71 */
72
73struct ESS_signing_cert_v2_st {
74 STACK_OF(ESS_CERT_ID_V2) *cert_ids;
75 STACK_OF(POLICYINFO) *policy_info;
76};
77
78#endif /* OSSL_CRYPTO_ESS_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette