Documentation ¶
Overview ¶
Package sigver contains the structures describing sigver request.
Index ¶
Constants ¶
View Source
const RequestID uint16 = 3029
RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags uint8
Flags are the request indicators.
const (
NoData Flags = 1 // NoData indicates whether the data payload is included in the hash.
)
type Request ¶
type Request struct { ID uint16 // ID is the requestID of the subsequent request. Version byte // Version is a version of the signature protocol to be used. Currently only the zero value is supported. Flags Flags // Flags are the request indicators. Currently only NoData is supported which indicates whether the data payload is included in the hash. SeqID int64 // SeqID is a monotonically increasing sequence number. Each requests should have a sequence number that is greater than a previous one. Crypto byte // Crypto identifies the cryptography used to construct the signature. Signature []byte // contains filtered or unexported fields }
Request holds the sigver request parameters.
func (Request) MarshalXrd ¶
MarshalXrd implements xrdproto.Marshaler.
func (*Request) ShouldSign ¶
ShouldSign implements xrdproto.Request.ShouldSign.
Click to show internal directories.
Click to hide internal directories.