mirror of
https://github.com/fhmq/hmq.git
synced 2026-09-01 23:34:52 +00:00
Plugins support (#46)
* 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
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
package pac
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
"gopkg.in/jcmturner/rpc.v1/mstypes"
|
||||
"gopkg.in/jcmturner/rpc.v1/ndr"
|
||||
)
|
||||
|
||||
// S4UDelegationInfo implements https://msdn.microsoft.com/en-us/library/cc237944.aspx
|
||||
type S4UDelegationInfo struct {
|
||||
S4U2proxyTarget mstypes.RPCUnicodeString // The name of the principal to whom the application can forward the ticket.
|
||||
TransitedListSize uint32
|
||||
S4UTransitedServices []mstypes.RPCUnicodeString `ndr:"pointer,conformant"` // List of all services that have been delegated through by this client and subsequent services or servers.. Size is value of TransitedListSize
|
||||
}
|
||||
|
||||
// Unmarshal bytes into the S4UDelegationInfo struct
|
||||
func (k *S4UDelegationInfo) Unmarshal(b []byte) (err error) {
|
||||
dec := ndr.NewDecoder(bytes.NewReader(b))
|
||||
err = dec.Decode(k)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("error unmarshaling S4UDelegationInfo: %v", err)
|
||||
}
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user