rpcinterface_91ae60209e3c11cf8d7c00aa00c091be_0_0
import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/91ae6020-9e3c-11cf-8d7c-00aa00c091be/0.0"
Package rpcinterface_91ae60209e3c11cf8d7c00aa00c091be_0_0 is the descriptor for the ICertPassage RPC interface, abstract syntax 91ae6020-9e3c-11cf-8d7c-00aa00c091be version 0.0 ([MS-ICPR]).
Generated by tools/idlgen (descriptor phase) from the IDL, then reviewed: the PipeName (MS-ICPR 2.1) and the status/disposition tables (MS-ICPR 3.2.4.1, MS-WCCE) are not carried by the IDL and were filled in by hand.
Index
Constants
Status codes returned by CertServerRequest ([MS-ICPR] 3.2.4.1). The method returns ERROR_SUCCESS on success; its error returns share the syntax and semantics of ICertRequestD::Request ([MS-WCCE] 3.2.2.6.2.1), so the value is a Win32/HRESULT code. The two errors MS-ICPR names explicitly are included.
const (
StatusSuccess uint32 = 0x00000000 // ERROR_SUCCESS
StatusInvalidArg uint32 = 0x80070057 // E_INVALIDARG (cb does not match string length)
StatusAccessDenied uint32 = 0x80000009 // E_ACCESSDENIED (packet privacy required but not negotiated)
)
Disposition values reported through pdwDisposition; the parameter shares the semantics of ICertRequestD::Request ([MS-WCCE] 3.2.1.4.2.1). These describe the outcome of the enrollment request independent of the RPC return value.
const (
CR_DISP_INCOMPLETE uint32 = 0x00000000
CR_DISP_ERROR uint32 = 0x00000001
CR_DISP_DENIED uint32 = 0x00000002
CR_DISP_ISSUED uint32 = 0x00000003
CR_DISP_ISSUED_OUT_OF_BAND uint32 = 0x00000004
CR_DISP_UNDER_SUBMISSION uint32 = 0x00000005
CR_DISP_REVOKED uint32 = 0x00000006
)
Opnums for the on-the-wire methods.
const (
OpnumCertServerRequest uint16 = 0
)
PipeName is the IPC$-relative named pipe for the ICertPassage interface. The spec’s Transport section (MS-ICPR 2.1) names the endpoint \PIPE\cert.
const PipeName = `\cert`
Variables
NameToOpnum is the reverse of OpnumToName, built at init so the two never drift.
var NameToOpnum = func() map[string]uint16 {
m := make(map[string]uint16, len(OpnumToName))
for op, name := range OpnumToName {
m[name] = op
}
return m
}()
OpnumToName maps each on-the-wire opnum to its method name; the single source of truth.
var OpnumToName = map[uint16]string{
OpnumCertServerRequest: "CertServerRequest",
}
func StatusString
func StatusString(status uint32) string
StatusString returns a mnemonic for the documented status codes, otherwise the hex value.
func SyntaxID
func SyntaxID() syntax.SyntaxID
SyntaxID returns the ICertPassage abstract syntax identifier: 91ae6020-9e3c-11cf-8d7c-00aa00c091be, version 0.0.