Просмотр исходного кода

Use shorter SCEP decrypter property names from linkedca

Herman Slatman 3 лет назад
Родитель
Сommit
4fd4227b73
3 измененных файлов с 11 добавлено и 11 удалено
  1. 8 8
      authority/provisioners.go
  2. 1 1
      go.mod
  3. 2 2
      go.sum

+ 8 - 8
authority/provisioners.go

@@ -989,10 +989,10 @@ func ProvisionerToCertificates(p *linkedca.Provisioner) (provisioner.Interface,
 			Options:                       options,
 		}
 		if decrypter := cfg.GetDecrypter(); decrypter != nil {
-			s.DecrypterCertificate = decrypter.DecrypterCertificate
-			s.DecrypterKeyPEM = decrypter.DecrypterKey
-			s.DecrypterKeyURI = decrypter.DecrypterKeyUri
-			s.DecrypterKeyPassword = decrypter.DecrypterKeyPassword
+			s.DecrypterCertificate = decrypter.Certificate
+			s.DecrypterKeyPEM = decrypter.Key
+			s.DecrypterKeyURI = decrypter.KeyUri
+			s.DecrypterKeyPassword = decrypter.KeyPassword
 		}
 		return s, nil
 	case *linkedca.ProvisionerDetails_Nebula:
@@ -1252,10 +1252,10 @@ func ProvisionerToLinkedca(p provisioner.Interface) (*linkedca.Provisioner, erro
 						ExcludeIntermediate:           p.ExcludeIntermediate,
 						EncryptionAlgorithmIdentifier: int32(p.EncryptionAlgorithmIdentifier),
 						Decrypter: &linkedca.SCEPDecrypter{
-							DecrypterCertificate: p.DecrypterCertificate,
-							DecrypterKey:         p.DecrypterKeyPEM,
-							DecrypterKeyUri:      p.DecrypterKeyURI,
-							DecrypterKeyPassword: p.DecrypterKeyPassword,
+							Certificate: p.DecrypterCertificate,
+							Key:         p.DecrypterKeyPEM,
+							KeyUri:      p.DecrypterKeyURI,
+							KeyPassword: p.DecrypterKeyPassword,
 						},
 					},
 				},

+ 1 - 1
go.mod

@@ -32,7 +32,7 @@ require (
 	go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
 	go.step.sm/cli-utils v0.8.0
 	go.step.sm/crypto v0.35.1
-	go.step.sm/linkedca v0.20.1-0.20230922085851-78fa28647893
+	go.step.sm/linkedca v0.20.1-0.20230922094312-7d2f2f79fa6a
 	golang.org/x/crypto v0.13.0
 	golang.org/x/exp v0.0.0-20230310171629-522b1b587ee0
 	golang.org/x/net v0.15.0

+ 2 - 2
go.sum

@@ -615,8 +615,8 @@ go.step.sm/cli-utils v0.8.0 h1:b/Tc1/m3YuQq+u3ghTFP7Dz5zUekZj6GUmd5pCvkEXQ=
 go.step.sm/cli-utils v0.8.0/go.mod h1:S77aISrC0pKuflqiDfxxJlUbiXcAanyJ4POOnzFSxD4=
 go.step.sm/crypto v0.35.1 h1:QAZZ7Q8xaM4TdungGSAYw/zxpyH4fMYTkfaXVV9H7pY=
 go.step.sm/crypto v0.35.1/go.mod h1:vn8Vkx/Mbqgoe7AG8btC0qZ995Udm3e+JySuDS1LCJA=
-go.step.sm/linkedca v0.20.1-0.20230922085851-78fa28647893 h1:PmvYAEYTBPXyWMZAYNrj9eiaj3Bj0qfDEnyiyQDsWcU=
-go.step.sm/linkedca v0.20.1-0.20230922085851-78fa28647893/go.mod h1:Vaq4+Umtjh7DLFI1KuIxeo598vfBzgSYZUjgVJ7Syxw=
+go.step.sm/linkedca v0.20.1-0.20230922094312-7d2f2f79fa6a h1:hTueTggXiuwPGnoeE5vV7x57bjA895Qhz55L2B0gRr4=
+go.step.sm/linkedca v0.20.1-0.20230922094312-7d2f2f79fa6a/go.mod h1:Vaq4+Umtjh7DLFI1KuIxeo598vfBzgSYZUjgVJ7Syxw=
 go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
 go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
 go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=