mirror of
https://github.com/apple/swift-certificates
synced 2026-11-27 04:54:20 +00:00
28 lines
894 B
Swift
28 lines
894 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftCertificates open source project
|
|
//
|
|
// Copyright (c) 2023 Apple Inc. and the SwiftCertificates project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import SwiftASN1
|
|
|
|
/// ``CMSEncapsulatedContentInfo`` is defined in ASN.1 as:
|
|
/// ```
|
|
/// EncapsulatedContentInfo ::= SEQUENCE {
|
|
/// eContentType ContentType,
|
|
/// eContent [0] EXPLICIT OCTET STRING OPTIONAL }
|
|
/// ContentType ::= OBJECT IDENTIFIER
|
|
/// ```
|
|
struct CMSEncapsulatedContentInfo {
|
|
var eContentType: ASN1ObjectIdentifier
|
|
var eContent: ASN1OctetString?
|
|
}
|