mirror of
https://github.com/fhmq/hmq.git
synced 2026-09-01 15:24:53 +00:00
* modify * update * add acl * add feature * update dockerfile * add deploy * update * update * plugins * plugins * update * update * update * fixed * remove * fixed * add log * update * fixed * update * fix config * add http api * add http api * resp * add config for work chan * update * fixed * update * disable trace * fixed * change acl * fixed * fixed res * dd * dd * ddd * dd * update * fixed * update * add * fixed * update key * add log * update * format * update * update auth * update * update readme * added * update * fixed * fixed * fix * upade * update * update
24 lines
642 B
Go
24 lines
642 B
Go
package kadmin
|
|
|
|
import (
|
|
"github.com/jcmturner/gofork/encoding/asn1"
|
|
"gopkg.in/jcmturner/gokrb5.v7/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
|
|
}
|