@@ -102,7 +102,7 @@ type testCtx struct {
102102 pa core.PolicyAuthority
103103 ocsp * ocspImpl
104104 crl * crlImpl
105- certProfiles map [string ]* issuance.ProfileConfigNew
105+ certProfiles map [string ]* issuance.ProfileConfig
106106 serialPrefix byte
107107 maxNames int
108108 boulderIssuers []* issuance.Issuer
@@ -153,14 +153,14 @@ func setup(t *testing.T) *testCtx {
153153 err = pa .LoadHostnamePolicyFile ("../test/hostname-policy.yaml" )
154154 test .AssertNotError (t , err , "Couldn't set hostname policy" )
155155
156- certProfiles := make (map [string ]* issuance.ProfileConfigNew , 0 )
157- certProfiles ["legacy" ] = & issuance.ProfileConfigNew {
156+ certProfiles := make (map [string ]* issuance.ProfileConfig , 0 )
157+ certProfiles ["legacy" ] = & issuance.ProfileConfig {
158158 AllowMustStaple : true ,
159159 MaxValidityPeriod : config.Duration {Duration : time .Hour * 24 * 90 },
160160 MaxValidityBackdate : config.Duration {Duration : time .Hour },
161161 IgnoredLints : []string {"w_subject_common_name_included" },
162162 }
163- certProfiles ["modern" ] = & issuance.ProfileConfigNew {
163+ certProfiles ["modern" ] = & issuance.ProfileConfig {
164164 AllowMustStaple : true ,
165165 OmitCommonName : true ,
166166 OmitKeyEncipherment : true ,
@@ -552,7 +552,7 @@ func TestMakeCertificateProfilesMap(t *testing.T) {
552552 testCtx := setup (t )
553553 test .AssertEquals (t , len (testCtx .certProfiles ), 2 )
554554
555- testProfile := issuance.ProfileConfigNew {
555+ testProfile := issuance.ProfileConfig {
556556 AllowMustStaple : false ,
557557 MaxValidityPeriod : config.Duration {Duration : time .Hour * 24 * 90 },
558558 MaxValidityBackdate : config.Duration {Duration : time .Hour },
@@ -565,7 +565,7 @@ func TestMakeCertificateProfilesMap(t *testing.T) {
565565
566566 testCases := []struct {
567567 name string
568- profileConfigs map [string ]* issuance.ProfileConfigNew
568+ profileConfigs map [string ]* issuance.ProfileConfig
569569 expectedErrSubstr string
570570 expectedProfiles []nameToHash
571571 }{
@@ -576,26 +576,26 @@ func TestMakeCertificateProfilesMap(t *testing.T) {
576576 },
577577 {
578578 name : "no profiles" ,
579- profileConfigs : map [string ]* issuance.ProfileConfigNew {},
579+ profileConfigs : map [string ]* issuance.ProfileConfig {},
580580 expectedErrSubstr : "at least one certificate profile" ,
581581 },
582582 {
583583 name : "duplicate hash" ,
584- profileConfigs : map [string ]* issuance.ProfileConfigNew {
584+ profileConfigs : map [string ]* issuance.ProfileConfig {
585585 "default" : & testProfile ,
586586 "default2" : & testProfile ,
587587 },
588588 expectedErrSubstr : "duplicate certificate profile hash" ,
589589 },
590590 {
591591 name : "empty profile config" ,
592- profileConfigs : map [string ]* issuance.ProfileConfigNew {
592+ profileConfigs : map [string ]* issuance.ProfileConfig {
593593 "empty" : {},
594594 },
595595 expectedProfiles : []nameToHash {
596596 {
597597 name : "empty" ,
598- hash : [32 ]byte {0x25 , 0x27 , 0x72 , 0xa1 , 0xaf , 0x95 , 0xfe , 0xc7 , 0x32 , 0x78 , 0x38 , 0x97 , 0xd0 , 0xf1 , 0x83 , 0x92 , 0xc3 , 0xac , 0x60 , 0x91 , 0x68 , 0x4f , 0x22 , 0xb6 , 0x57 , 0x2f , 0x89 , 0x1a , 0x54 , 0xe5 , 0xd8 , 0xa3 },
598+ hash : [32 ]byte {0xe4 , 0xf6 , 0xd , 0xa , 0xa6 , 0xd7 , 0xf3 , 0xd3 , 0xb6 , 0xa6 , 0x49 , 0x4b , 0x1c , 0x86 , 0x1b , 0x99 , 0xf6 , 0x49 , 0xc6 , 0xf9 , 0xec , 0x51 , 0xab , 0xaf , 0x20 , 0x1b , 0x20 , 0xf2 , 0x97 , 0x32 , 0x7c , 0x95 },
599599 },
600600 },
601601 },
@@ -605,11 +605,11 @@ func TestMakeCertificateProfilesMap(t *testing.T) {
605605 expectedProfiles : []nameToHash {
606606 {
607607 name : "legacy" ,
608- hash : [32 ]byte {0x44 , 0xc5 , 0xbc , 0x73 , 0x8 , 0x95 , 0xba , 0x4c , 0x13 , 0x12 , 0xc4 , 0xc , 0x5d , 0x77 , 0x2f , 0x54 , 0xf8 , 0x54 , 0x1 , 0xb8 , 0x84 , 0xaf , 0x6c , 0x58 , 0x74 , 0x6 , 0xac , 0xda , 0x3e , 0x37 , 0xfc , 0x88 },
608+ hash : [32 ]byte {0xb7 , 0xd9 , 0x7e , 0xfc , 0x5a , 0xdd , 0xc7 , 0xfe , 0xc , 0xea , 0xed , 0x7b , 0x8c , 0xf5 , 0x4 , 0x57 , 0x71 , 0x97 , 0x42 , 0x80 , 0xbe , 0x4d , 0x14 , 0xa , 0x35 , 0x9a , 0x89 , 0xc3 , 0x7a , 0x57 , 0x41 , 0xb7 },
609609 },
610610 {
611611 name : "modern" ,
612- hash : [32 ]byte {0x58 , 0x7 , 0xea , 0x3a , 0x85 , 0xcd , 0xf9 , 0xd1 , 0x7a , 0x9a , 0x59 , 0x76 , 0xfc , 0x92 , 0xea , 0x1b , 0x69 , 0x54 , 0xe4 , 0xbe , 0xcf , 0xe3 , 0x91 , 0xfa , 0x85 , 0x4 , 0xbf , 0x1f , 0x55 , 0x97 , 0x2c , 0x8b },
612+ hash : [32 ]byte {0x2e , 0x82 , 0x9b , 0xe4 , 0x4d , 0xac , 0xfc , 0x2d , 0x83 , 0xbf , 0x62 , 0xe5 , 0xe1 , 0x50 , 0xe8 , 0xba , 0xd2 , 0x66 , 0x1a , 0xb3 , 0xf2 , 0xe7 , 0xb5 , 0xf2 , 0x24 , 0x94 , 0x1f , 0x83 , 0xc6 , 0x57 , 0xe , 0x58 },
613613 },
614614 },
615615 },
0 commit comments