bitspeerauth

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	BitsPeerAuthSyntaxUUID = &uuid.UUID{TimeLow: 0xe3d0d746, TimeMid: 0xd2af, TimeHiAndVersion: 0x40fd, ClockSeqHiAndReserved: 0x8a, ClockSeqLow: 0x7a, Node: [6]uint8{0xd, 0x70, 0x78, 0xbb, 0x70, 0x92}}
	// Syntax ID
	BitsPeerAuthSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: BitsPeerAuthSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "bpau"
)

Functions

func BitsPeerAuthServerHandle

func BitsPeerAuthServerHandle(ctx context.Context, o BitsPeerAuthServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

func NewBitsPeerAuthServerHandle

func NewBitsPeerAuthServerHandle(o BitsPeerAuthServer) dcerpc.ServerHandle

func RegisterBitsPeerAuthServer

func RegisterBitsPeerAuthServer(conn dcerpc.Conn, o BitsPeerAuthServer, opts ...dcerpc.Option)

Types

type BitsPeerAuthClient

type BitsPeerAuthClient interface {

	// Return Values: An HRESULT indicating return status. See [MS-ERREF] for details of
	// the HRESULT type.
	//
	// ERROR_SUCCESS (0x00000000)
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	ExchangePublicKeys(context.Context, *ExchangePublicKeysRequest, ...dcerpc.CallOption) (*ExchangePublicKeysResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error
}

BitsPeerAuth interface.

func NewBitsPeerAuthClient

func NewBitsPeerAuthClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (BitsPeerAuthClient, error)

type BitsPeerAuthServer

type BitsPeerAuthServer interface {

	// Return Values: An HRESULT indicating return status. See [MS-ERREF] for details of
	// the HRESULT type.
	//
	// ERROR_SUCCESS (0x00000000)
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	ExchangePublicKeys(context.Context, *ExchangePublicKeysRequest) (*ExchangePublicKeysResponse, error)
}

BitsPeerAuth server interface.

type ExchangePublicKeysRequest

type ExchangePublicKeysRequest struct {
	// ClientKeyLength: Length of the client's local certificate, or zero if ClientKey is
	// NULL.
	ClientKeyLength uint32 `idl:"name:ClientKeyLength" json:"client_key_length"`
	// ClientKey: The client's local certificate, encoded as a CERTIFICATE_BLOB (section
	// 2.2.2). If NULL, the client is choosing not to send a certificate.
	ClientKey []byte `idl:"name:ClientKey;size_is:(ClientKeyLength);pointer:unique" json:"client_key"`
}

ExchangePublicKeysRequest structure represents the ExchangePublicKeys operation request

func (*ExchangePublicKeysRequest) MarshalNDR

func (o *ExchangePublicKeysRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ExchangePublicKeysRequest) UnmarshalNDR

func (o *ExchangePublicKeysRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ExchangePublicKeysResponse

type ExchangePublicKeysResponse struct {
	// pServerKeyLength: On output, the length of the server's local certificate. Set to
	// zero if the return value is nonzero, or if pServerKey is NULL.
	ServerKeyLength uint32 `idl:"name:pServerKeyLength;pointer:ref" json:"server_key_length"`
	// pServerKey: On output, the server's local certificate, encoded as a CERTIFICATE_BLOB
	// (section 2.2.2). If NULL, the server is choosing not to return a certificate. Set
	// to NULL if the return value is nonzero. Ignored on the client if the method returns
	// an error or throws an exception.
	ServerKey []byte `idl:"name:pServerKey;size_is:(, pServerKeyLength);pointer:ref" json:"server_key"`
	// Return: The ExchangePublicKeys return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ExchangePublicKeysResponse structure represents the ExchangePublicKeys operation response

func (*ExchangePublicKeysResponse) MarshalNDR

func (o *ExchangePublicKeysResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ExchangePublicKeysResponse) UnmarshalNDR

func (o *ExchangePublicKeysResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL