增加RC数据结构和资源集合数据结构 (#1)

Co-authored-by: xiuting.xu <xiutingxt.xu@gmail.com>
Reviewed-on: #1
Reviewed-by: yuyr <yuyr@zgclab.edu.cn>
Co-authored-by: xuxt <xuxt@zgclab.edu.cn>
Co-committed-by: xuxt <xuxt@zgclab.edu.cn>
This commit was merged in pull request #1.
This commit is contained in:
2026-02-02 15:37:05 +08:00
committed by yuyr
parent 5e474fffd2
commit 421847d329
13 changed files with 1203 additions and 1 deletions

27
src/data_model/ta.rs Normal file
View File

@@ -0,0 +1,27 @@
use url::Url;
use x509_parser::prelude::*;
use crate::data_model::resources::resource::ResourceSet;
//
// #[derive(Debug, Clone)]
// pub struct TrustAnchorCert {
// /// 信任锚证书名称
// pub name: String,
//
// /// 证书原始DER内容
// pub cert_der: Vec<u8>,
//
// /// 证书
// pub cert: X509Certificate<'static>,
//
// /// 资源集合
// pub resources: ResourceSet,
//
// ///发布点
// pub publication_point: Url,
// }
//
// impl TrustAnchorCert {
//
// }