You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let expected = "44706c65617365207369676e20636572743a0c0102030040746573742e6578616d706c652e636f6d0001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
693
+
let expected = "44706c65617365207369676e20636572743a0c0102030040746573742e6578616d706c652e636f6d00010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
650
694
assert_eq!(actual, expected);
651
695
}
652
696
@@ -655,13 +699,15 @@ mod tests {
655
699
let csr = CertSigningRequestV2{
656
700
confirm:"please sign cert:".to_string(),
657
701
pubkey:vec![1,2,3],
658
-
config:CertConfig{
702
+
config:CertConfigV2{
659
703
org_name:None,
660
704
subject:"test.example.com".to_string(),
661
705
subject_alt_names:vec![],
662
706
usage_server_auth:true,
663
707
usage_client_auth:false,
664
708
ext_quote:true,
709
+
not_before:None,
710
+
not_after:None,
665
711
},
666
712
attestation:Attestation{
667
713
quote:AttestationQuote::DstackTdx(TdxQuote{
@@ -677,7 +723,7 @@ mod tests {
677
723
};
678
724
679
725
let actual = hex::encode(csr.encode());
680
-
let expected = "44706c65617365207369676e20636572743a0c0102030040746573742e6578616d706c652e636f6d000100010000040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
726
+
let expected = "44706c65617365207369676e20636572743a0c0102030040746573742e6578616d706c652e636f6d0001000100000000040900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
0 commit comments