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 NewRequest

          func NewRequest(requestID uint16, seqID int64, data []byte) Request

          func (Request) MarshalXrd

          func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

            MarshalXrd implements xrdproto.Marshaler.

            func (*Request) ReqID

            func (req *Request) ReqID() uint16

              ReqID implements xrdproto.Request.ReqID.

              func (*Request) ShouldSign

              func (req *Request) ShouldSign() bool

                ShouldSign implements xrdproto.Request.ShouldSign.

                func (*Request) UnmarshalXrd

                func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

                  UnmarshalXrd implements xrdproto.Unmarshaler.

                  Source Files