diff --git a/kmipclient/register.go b/kmipclient/register.go index 48855cb..bcb07fb 100644 --- a/kmipclient/register.go +++ b/kmipclient/register.go @@ -389,6 +389,7 @@ func (ex ExecRegisterWantType) EcdsaPrivateKey(key *ecdsa.PrivateKey, usage kmip RecommendedCurve: crv, } } else { + //nolint:staticcheck // for backward compatibility keyMaterial.TransparentECDSAPrivateKey = &kmip.TransparentECDSAPrivateKey{ D: *key.D, RecommendedCurve: crv, @@ -440,6 +441,7 @@ func (ex ExecRegisterWantType) EcdsaPublicKey(key *ecdsa.PublicKey, usage kmip.C RecommendedCurve: crv, } } else { + //nolint:staticcheck // for backward compatibility keyMaterial.TransparentECDSAPublicKey = &kmip.TransparentECDSAPublicKey{ //nolint:staticcheck // We need this function to marshal public key into its uncompressed form QString: elliptic.Marshal(key.Curve, key.X, key.Y), diff --git a/objects.go b/objects.go index 362a512..2cf1207 100644 --- a/objects.go +++ b/objects.go @@ -546,7 +546,10 @@ type TransparentRSAPrivateKey struct { CRTCoefficient *big.Int } +// Deprecated: deprecated in KMIP v1.3 type TransparentECDSAPublicKey TransparentECPublicKey + +// Deprecated: deprecated in KMIP v1.3 type TransparentECDSAPrivateKey TransparentECPrivateKey type TransparentECPrivateKey struct { diff --git a/payloads/get_attributes.go b/payloads/get_attributes.go index 3d9df39..5deddbc 100644 --- a/payloads/get_attributes.go +++ b/payloads/get_attributes.go @@ -17,10 +17,10 @@ var _ kmip.OperationPayload = (*GetAttributesRequestPayload)(nil) // If no attribute name is specified in the request, all attributes SHALL be deemed to match the Get Attributes request. // The same attribute name SHALL NOT be present more than once in a request. type GetAttributesRequestPayload struct { - // Determines the object whose attributes are being requested. If omitted, then the ID Placeholder value is used by the server as the Unique Identifier. + // Determines the object whose attributes are being requested. If omitted, then the ID Placeholder value is used by the server as the Unique Identifier. UniqueIdentifier *string - // Specifies the name of an attribute associated with the object. - AttributeName []kmip.AttributeName + // Specifies the name of an attribute associated with the object. + AttributeName []kmip.AttributeName } // Operation implements kmip.OperationPayload. @@ -31,8 +31,8 @@ func (a *GetAttributesRequestPayload) Operation() kmip.Operation { type GetAttributesResponsePayload struct { // The Unique Identifier of the object. UniqueIdentifier string - // The requested attribute associated with the object. - Attribute []kmip.Attribute + // The requested attribute associated with the object. + Attribute []kmip.Attribute } var _ kmip.OperationPayload = (*GetAttributesResponsePayload)(nil)