Files
MarioandGitHub 264a83bb41 Upgrade otel collector to v0.21.0 (#627)
* Upgrade otel collector to v0.21.0

It requires of pinning a version of cmux, which has conveniently adopted go modules

* Update CHANGELOG

* Explain why cmux pin is necessary
2021-04-05 12:19:18 -04:00

24 lines
644 B
Go

package kadmin
import (
"github.com/jcmturner/gofork/encoding/asn1"
"github.com/jcmturner/gokrb5/v8/types"
)
// ChangePasswdData is the payload to a password change message.
type ChangePasswdData struct {
NewPasswd []byte `asn1:"explicit,tag:0"`
TargName types.PrincipalName `asn1:"explicit,optional,tag:1"`
TargRealm string `asn1:"generalstring,optional,explicit,tag:2"`
}
// Marshal ChangePasswdData into a byte slice.
func (c *ChangePasswdData) Marshal() ([]byte, error) {
b, err := asn1.Marshal(*c)
if err != nil {
return []byte{}, err
}
//b = asn1tools.AddASNAppTag(b, asnAppTag.)
return b, nil
}