Skip to content

Commit 1502d26

Browse files
committed
build(deps): bump github.com/ovh/kmip-go from v0.2.4 to v0.3.1
Signed-off-by: Pierre-Henri Symoneaux <[email protected]>
1 parent deb86e2 commit 1502d26

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

cmd/okms/kmip/register.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ VALUE can be either plain text, a '-' to read from stdin, or a filename prefixed
5353
secret = exit.OnErr2(base64.StdEncoding.AppendDecode(nil, secret))
5454
}
5555
//TODO: Make secret type a flag argument
56-
req := kmipClient.Register().Secret(kmip.Password, secret)
56+
req := kmipClient.Register().Secret(kmip.SecretDataTypePassword, secret)
5757
if *name != "" {
5858
req = req.WithName(*name)
5959
}
@@ -163,7 +163,7 @@ VALUE can be either plain text, a '-' to read from stdin, or a filename prefixed
163163
if *isPem {
164164
req = kmipClient.Register().PemCertificate(cert)
165165
} else {
166-
req = kmipClient.Register().Certificate(kmip.X_509, cert)
166+
req = kmipClient.Register().Certificate(kmip.CertificateTypeX_509, cert)
167167
}
168168

169169
if *name != "" {
@@ -224,7 +224,7 @@ VALUE can be either plain text, a '-' to read from stdin, or a filename prefixed
224224
req = req.WithAttribute(kmip.AttributeNameComment, *comment)
225225
}
226226
if *privLink != "" {
227-
req = req.WithLink(kmip.PrivateKeyLink, *privLink)
227+
req = req.WithLink(kmip.LinkTypePrivateKeyLink, *privLink)
228228
}
229229
resp := exit.OnErr2(req.ExecContext(cmd.Context()))
230230

@@ -280,7 +280,7 @@ VALUE can be either plain text, a '-' to read from stdin, or a filename prefixed
280280
req = req.WithAttribute(kmip.AttributeNameComment, *comment)
281281
}
282282
if *pubLink != "" {
283-
req = req.WithLink(kmip.PublicKeyLink, *pubLink)
283+
req = req.WithLink(kmip.LinkTypePublicKeyLink, *pubLink)
284284
}
285285
resp := exit.OnErr2(req.ExecContext(cmd.Context()))
286286

@@ -341,7 +341,7 @@ VALUE can be either plain text, a '-' to read from stdin, or a filename prefixed
341341

342342
// Register public key
343343
pubReq := kmipClient.Register().PemPublicKey(key, publicUsage.ToCryptographicUsageMask()).
344-
WithLink(kmip.PrivateKeyLink, privResp.UniqueIdentifier)
344+
WithLink(kmip.LinkTypePrivateKeyLink, privResp.UniqueIdentifier)
345345
if *publicName != "" {
346346
pubReq = pubReq.WithName(*publicName)
347347
}
@@ -355,7 +355,7 @@ VALUE can be either plain text, a '-' to read from stdin, or a filename prefixed
355355

356356
// Update public key link in private key
357357
exit.OnErr2(kmipClient.AddAttribute(privResp.UniqueIdentifier, kmip.AttributeNameLink, kmip.Link{
358-
LinkType: kmip.PublicKeyLink,
358+
LinkType: kmip.LinkTypePublicKeyLink,
359359
LinkedObjectIdentifier: pubResp.UniqueIdentifier,
360360
}).ExecContext(cmd.Context()))
361361

common/flagsmgmt/kmipflags/algorithms.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
type SymmetricAlg kmip.CryptographicAlgorithm
1212

1313
const (
14-
AES SymmetricAlg = SymmetricAlg(kmip.AES)
15-
TDES SymmetricAlg = SymmetricAlg(kmip.TDES)
16-
SKIPJACK SymmetricAlg = SymmetricAlg(kmip.SKIPJACK)
14+
AES SymmetricAlg = SymmetricAlg(kmip.CryptographicAlgorithmAES)
15+
TDES SymmetricAlg = SymmetricAlg(kmip.CryptographicAlgorithmTDES)
16+
SKIPJACK SymmetricAlg = SymmetricAlg(kmip.CryptographicAlgorithmSKIPJACK)
1717
)
1818

1919
func (e *SymmetricAlg) String() string {
@@ -41,8 +41,8 @@ func (e *SymmetricAlg) Type() string {
4141
type AsymmetricAlg kmip.CryptographicAlgorithm
4242

4343
const (
44-
RSA AsymmetricAlg = AsymmetricAlg(kmip.RSA)
45-
ECDSA AsymmetricAlg = AsymmetricAlg(kmip.ECDSA)
44+
RSA AsymmetricAlg = AsymmetricAlg(kmip.CryptographicAlgorithmRSA)
45+
ECDSA AsymmetricAlg = AsymmetricAlg(kmip.CryptographicAlgorithmECDSA)
4646
)
4747

4848
func (e *AsymmetricAlg) String() string {

common/flagsmgmt/kmipflags/curve.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
type EcCurve kmip.RecommendedCurve
1111

1212
const (
13-
P256 EcCurve = EcCurve(kmip.P_256)
14-
P384 EcCurve = EcCurve(kmip.P_384)
15-
P521 EcCurve = EcCurve(kmip.P_521)
13+
P256 EcCurve = EcCurve(kmip.RecommendedCurveP_256)
14+
P384 EcCurve = EcCurve(kmip.RecommendedCurveP_384)
15+
P521 EcCurve = EcCurve(kmip.RecommendedCurveP_521)
1616
)
1717

1818
func (e *EcCurve) String() string {

common/flagsmgmt/kmipflags/key_usage.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import (
1111
type KeyUsage kmip.CryptographicUsageMask
1212

1313
const (
14-
SIGN KeyUsage = KeyUsage(kmip.Sign)
15-
VERIFY KeyUsage = KeyUsage(kmip.Verify)
16-
ENCRYPT KeyUsage = KeyUsage(kmip.Encrypt)
17-
DECRYPT KeyUsage = KeyUsage(kmip.Decrypt)
18-
WRAPKEY KeyUsage = KeyUsage(kmip.WrapKey)
19-
UNWRAPKEY KeyUsage = KeyUsage(kmip.UnwrapKey)
20-
DERIVEKEY KeyUsage = KeyUsage(kmip.DeriveKey)
14+
SIGN KeyUsage = KeyUsage(kmip.CryptographicUsageSign)
15+
VERIFY KeyUsage = KeyUsage(kmip.CryptographicUsageVerify)
16+
ENCRYPT KeyUsage = KeyUsage(kmip.CryptographicUsageEncrypt)
17+
DECRYPT KeyUsage = KeyUsage(kmip.CryptographicUsageDecrypt)
18+
WRAPKEY KeyUsage = KeyUsage(kmip.CryptographicUsageWrapKey)
19+
UNWRAPKEY KeyUsage = KeyUsage(kmip.CryptographicUsageUnwrapKey)
20+
DERIVEKEY KeyUsage = KeyUsage(kmip.CryptographicUsageDeriveKey)
2121
)
2222

2323
func (e *KeyUsage) String() string {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/knadh/koanf/providers/file v1.1.2
1111
github.com/knadh/koanf/v2 v2.1.2
1212
github.com/olekukonko/tablewriter v0.0.5
13-
github.com/ovh/kmip-go v0.2.4
13+
github.com/ovh/kmip-go v0.3.1
1414
github.com/ovh/okms-sdk-go v0.4.2
1515
github.com/pterm/pterm v0.12.80
1616
github.com/schollz/progressbar/v3 v3.18.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmt
101101
github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg=
102102
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
103103
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
104-
github.com/ovh/kmip-go v0.2.4 h1:xOP4vlknW7rFTU/oGN0rdSaG1HIqffH706IlzwE8ppE=
105-
github.com/ovh/kmip-go v0.2.4/go.mod h1:ATNCndyULLBcEt7jp4j8cR4ko4gnH37KBA9ZPeNUuKk=
104+
github.com/ovh/kmip-go v0.3.1 h1:fcAFOF3zOKnxoQEE9EO9ZnyzHld5oiTFhq1G2wvBAzU=
105+
github.com/ovh/kmip-go v0.3.1/go.mod h1:ATNCndyULLBcEt7jp4j8cR4ko4gnH37KBA9ZPeNUuKk=
106106
github.com/ovh/okms-sdk-go v0.4.2 h1:Vr1HQA0tWoREq5b94Ze2BnG+M1/J87ekWB2/9Cm9wAA=
107107
github.com/ovh/okms-sdk-go v0.4.2/go.mod h1:qHignKksvZNNywbHvwJCmy5C6Ro1ZZgNKu2PZO7XTJs=
108108
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=

0 commit comments

Comments
 (0)