package
1.1.1
Repository: https://github.com/oiweiwei/go-msrpc.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

The client is anonymous to the server.
No description provided by the author
The most powerful impersonation level.
Dial function creates a new transport set that should be used for the binding procedures performed by clients.
FlagObjectUUID function computes the PFC_OBJECT_UUID flag based on the value `obj`.
HasNoBind function returns `true` if set of options contains the NoBind option.
HasObjectUUID function returns `true` if set of options contains the ObjectUUID option.
The server can obtain the client's identity, and the server can impersonate the client to do ACL checks.
The server can impersonate the client's security context while acting on behalf of the client.
MechanismToAuthType function converts the mechanism OID to the DCE/RPC authentication type.
NewBindFeatureSyntaxV1_0 function returns the bind-feature negotiation flags.
NewBody function returns the new stub reader (when marshal is `false`), or writer, (when marshal is `true`).
NewBufferedConn function returns the new buffered connection.
No description provided by the author
No description provided by the author
NewSecurity function returns the new security context and saves the GSSAPI context storied in `ctx` variable.
NewTransport function returns the default transport configuration.
NoHeaderSign option disables the header signing.
No description provided by the author
No description provided by the author
No description provided by the author
ParseServerAddr function parses the server address.
ParseServerAddrWithDNSLookup function parses the server address and performs the DNS lookup if required.
ParseBinding function parses the string binding of format: [ 'ObjectUUID' '@' ] ProtocolSequence ':' NetworkAddress '[' Endpoint ']' [ NetworkAddress ] ':' Port [ 'Username' '%' 'Password' '@' ] ProtocolSequence ':' 'ComputerName' '[' Endpoint ']'.
No description provided by the author
No description provided by the author
No description provided by the author
SecurityContextID function returns the unique identifier for the next security context.
WithAbstractSyntax option specifies the abstract syntax for the DCE/RPC connection.
WithConnect option sepcifies the connect authentication level.
WithCredentials option specifies the credentials set for the security context.
WithEndpoint option specifies the string binding for the connection.
WithEndpointMapper option sets the endpoint mapper to find the endpoint (port or named pipe) for the selected abstract syntax.
WithBufferSize options sets the buffer input/output size.
WithGroup option specifies the association group for the connection or is used to initialize the association group id.
WithGroupID option sets the association group identifier.
WithInsecure option specifies the plain-text connection over RPC.
WithLogger option sets the debug logger.
WithMechanism option specifies the allowed mechanism for the security context.
WithNDR20 option specifies the (default) NDR encoding.
WithNDR64 option specifies the NDR64 encoding.
No description provided by the author
WithNoBind option is used to indicate, that no bind must be performed to the connection.
WithObjectUUID option specifies the object UUID for the RPC call.
WithSeal option specifies the connection with packet stub encryption.
WithSecurityConfig option specifies the mechanism configuration.
WithSecurityLevel option specifies the authenticate security level.
WithSecurityProvider option specifies the exact security provider.
WithSign option specifies the connection with packet integrity check.
WithSMBDialer function sets the SMB dialer.
WithSMBPort function sets the SMB communication port.
WithTargetName option specifies the target name.
WithTimeout option sets the networking timeout.
WithVerifyBitMask option includes the bit-mask verification to the request verification trailer.
WithVerifyHeader2 option includes the header2 verification to the request verification trailer.
WithVerifyPresentation option includes the presentation verification to the request verification trailer.

# Constants

No description provided by the author
No description provided by the author
Authenticates only at the beginning of each remote procedure call when the server receives the request.
Authenticates only when the client establishes a relationship with a server.
Uses the default authentication level for the specified authentication service.
Performs no authentication.
Authenticates only that all data received is from the expected client.
Authenticates and verifies that none of the data transferred between client and server has been modified.
Includes all previous levels, and ensures clear text data can only be seen by the sender and the receiver.
255.
14.
9.
16.
68.
0.
No description provided by the author
10.
The default transmit/receive size.
The common header size.
The client is anonymous to the server.
The most powerful impersonation level.
The system default level.
The server can impersonate the client's security context while acting on behalf of the client.
No description provided by the author
No description provided by the author
Even number of legs.
Odd number of legs.
Unknown.
No description provided by the author
MaxPad specifies the maximum possible padding.
The MinimumXmitSize.
No description provided by the author
No description provided by the author
PFC_CONC_MPX: Supports concurrent multiplexing of a single connection.
PFC_DID_NOT_EXECUTE: Only meaningful on 'fault' packet; If true, guaranteed call did not execute.
PFC_FIRST_FRAG: First fragment.
PFC_LAST_FRAG: Last fragment.
PFC_MAYBE: 'maybe' call semantics requested.
PFC_OBJECT_UUID: if true, a non-nil object UUID was specified in the handle, and is present in the optional object field.
PFC_PENDING_CANCEL: Cancel was pending at sender.
PFC_RESERVED_1: Reserved1.
PFC_SUPPORT_HEADER_SIGN: Supports the header/trailer protection.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
bind time feature negotiation flags.
SecurityTrailerSize is the size of the security trailer.
No description provided by the author
No description provided by the author

# Variables

Bind-time feature negotiation UUID.
Bind-time feature negotiation Syntax.
Bind-time feature negotiation flags.
Mask.
SEC_VT_COMMAND_BITMASK_1: This is an rpc_sec_vt_bitmask command.
SEC_VT_COMMAND_END: This flag MUST be present in the last command in the verification trailer body.
SEC_VT_COMMAND_HEADER2: This is an rpc_sec_vt_header2 command.
SEC_VT_COMMAND_PCONTEXT: This is an rpc_sec_vt_pcontext command.
SEC_VT_MUST_PROCESS_COMMAND: Indicates that the server MUST process this command.
The default UUID covert function.
Too small buffer error.
The transport is closed.
No description provided by the author
No description provided by the author
Presentation Context is empty.
Security Context is empty.
The transport was not binded.
UUID mismatch.
Too long packet error.
Server terminated the connection.
The ncacn_http identifies the Microsoft Internet Information Server (IIS) as the protocol family for the endpoint.
The ncacn_ip_tcp identifies TCP/IP as the protocol family for the endpoint.
The ncadg_ip_udp identifies UDP as the protocol family for the endpoint.
The ncalrpc identifies local interprocess communication as the protocol family for the endpoint.
The ncacn_np identifies named pipes as the protocol family for the endpoint.
SkipSealOpt option skips the Confidentiality option as it must be defined on individual buffer level.
SkipSignOpt option skips the Integrity option as it must be defined on individual buffer level.
Transfer Syntax NDR UUID.
Transfer Syntax NDR64 UUID.
Transfer Syntax NDR64 v1.0.
Transfer Syntax NDR v2.0.
No description provided by the author
If this bit is set, the PFC_SUPPORT_HEADER_SIGN bit, MUST be present in the PDU header for the bind PDU on this connection.

# Structs

The AlterContextPDU is used to request additional presentation negotiation for another interface and/or version, or to negotiate a new security context, or both.
The AlterContextResponsePDU is used to indicate the server's response to an AlterContext request.
No description provided by the author
The BindPDU is used to initiate the presentation negotiation for the body data, and optionally, authentication.
The BindAckPDU is returned by the server when it accepts a bind request initiated by the client's bindPDU.
No description provided by the author
The BindNakPDU is returned by the server when it rejects an association request initiated by the client's BindPDU.
Body structure represents the read-writer for the chunked marshalling/unmarshalling operations.
BufferedConn is a raw connection wrapper to optimize the short read header operations.
The CoCancelPDU is used to forward a cancel.
The ContextElement struct represents one element in a presentation context list.
No description provided by the author
The FaultPDU is used to indicate either an RPC run-time, RPC stub, or RPC-specific exception to the client.
Group is used to hold the association group identifier.
No description provided by the author
NoBindOption option indicates that no bind must be performed for this connection.
The OrphanedPDU is used by a client to notify a server that it is aborting a request in progress that has not been entirely transmitted yet, or that it is aborting a (possibly lengthy) response in progress.
Packet represents the raw DCE/RPC packet structure.
No description provided by the author
The Presentation represents the data presentation context.
The RequestPDU is used for an initial call request.
The ResponsePDU is used to respond to an active call.
The Result struct represents one element in the results of the context negotiation.
No description provided by the author
The DCE/RPC Security Context.
No description provided by the author
The ShutdownPDU is sent by the server to request that a client terminate the connection, freeing the related resources.
The string binding is an unsigned character string composed of strings that represent the binding object UUID, the RPC protocol sequence, the network address, and the endpoint and endpoint options.
SyntaxID ...
The transport settings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Version structure specifies the protocol version.
No description provided by the author

# Interfaces

Call interface provides the exclusive access to the transport.
CallOption represents the DCE/RPC Call option.
The DCE/RPC Connection.
The Endpoint Mapper interface maps the given syntax identifier and returns the list of bindings of following format:.
Option represents the common interface for DCE/RPC options.
No description provided by the author
The Raw connection.
SubConn interface implements the sub-connection query method using presentation context syntax identifier.

# Type aliases

The authentication-level constants represent authentication levels passed to various run-time functions.
No description provided by the author
BindOption represents the DCE/RPC binding option.
No description provided by the author
The transport connection option.
The UUID convert to string function type.
DefResults represents the results of a presentation context negotiation.
No description provided by the author
No description provided by the author
The security provider underlying protocol and implementation defines the number of legs and whether the number of legs is odd or even that are used in the token exchange process that builds a security context.
The ObjectUUID option.
The DCE/RPC Operation.
No description provided by the author
No description provided by the author
The protocol sequence.
ProviderReason represents the reasons for rejection of a context element.
SecurityContextOption defines the security options before establishing the security context.
No description provided by the author
SecurityOption represents the function on security context.
ServerHandle is a function that must accept the incoming reader and operation number and return the operation response.
The bits field is a bitmask.