blob: 3223bf623447f21c2c36902fb9e3871252cb2177 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
* Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
#ifndef OSSL_CRYPTO_X509_ACERT_H
# define OSSL_CRYPTO_X509_ACERT_H
# pragma once
# include <openssl/x509_acert.h>
struct ossl_object_digest_info_st {
ASN1_ENUMERATED digestedObjectType;
ASN1_OBJECT *otherObjectTypeID;
X509_ALGOR digestAlgorithm;
ASN1_BIT_STRING objectDigest;
};
struct ossl_issuer_serial_st {
STACK_OF(GENERAL_NAME) *issuer;
ASN1_INTEGER serial;
ASN1_BIT_STRING *issuerUID;
};
struct X509_acert_issuer_v2form_st {
STACK_OF(GENERAL_NAME) *issuerName;
OSSL_ISSUER_SERIAL *baseCertificateId;
OSSL_OBJECT_DIGEST_INFO *objectDigestInfo;
};
typedef struct X509_acert_issuer_st {
int type;
union {
STACK_OF(GENERAL_NAME) *v1Form;
X509_ACERT_ISSUER_V2FORM *v2Form;
} u;
} X509_ACERT_ISSUER;
typedef struct X509_holder_st {
OSSL_ISSUER_SERIAL *baseCertificateID;
STACK_OF(GENERAL_NAME) *entityName;
OSSL_OBJECT_DIGEST_INFO *objectDigestInfo;
} X509_HOLDER;
struct X509_acert_info_st {
ASN1_INTEGER version; /* default of v2 */
X509_HOLDER holder;
X509_ACERT_ISSUER issuer;
X509_ALGOR signature;
ASN1_INTEGER serialNumber;
X509_VAL validityPeriod;
STACK_OF(X509_ATTRIBUTE) *attributes;
ASN1_BIT_STRING *issuerUID;
X509_EXTENSIONS *extensions;
};
struct X509_acert_st {
X509_ACERT_INFO *acinfo;
X509_ALGOR sig_alg;
ASN1_BIT_STRING signature;
};
#endif
|