Documentation ¶
Index ¶
- Variables
- func CertRequestDServerHandle(ctx context.Context, o CertRequestDServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewCertRequestDServerHandle(o CertRequestDServer) dcerpc.ServerHandle
- func RegisterCertRequestDServer(conn dcerpc.Conn, o CertRequestDServer, opts ...dcerpc.Option)
- type CertRequestDClient
- type CertRequestDServer
- type GetCACertRequest
- type GetCACertResponse
- type PingRequest
- type PingResponse
- type RequestRequest
- type RequestResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ICertRequestD interface identifier d99e6e70-fc88-11d0-b498-00a0c90312f3 CertRequestDIID = &dcom.IID{Data1: 0xd99e6e70, Data2: 0xfc88, Data3: 0x11d0, Data4: []byte{0xb4, 0x98, 0x00, 0xa0, 0xc9, 0x03, 0x12, 0xf3}} // Syntax UUID CertRequestDSyntaxUUID = &uuid.UUID{TimeLow: 0xd99e6e70, TimeMid: 0xfc88, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0xb4, ClockSeqLow: 0x98, Node: [6]uint8{0x0, 0xa0, 0xc9, 0x3, 0x12, 0xf3}} // Syntax ID CertRequestDSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: CertRequestDSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/wcce"
)
Functions ¶
func NewCertRequestDServerHandle ¶
func NewCertRequestDServerHandle(o CertRequestDServer) dcerpc.ServerHandle
func RegisterCertRequestDServer ¶
func RegisterCertRequestDServer(conn dcerpc.Conn, o CertRequestDServer, opts ...dcerpc.Option)
Types ¶
type CertRequestDClient ¶
type CertRequestDClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // The Request method initiates the certificate issuance process. // // Return Values: The method MUST return zero unless otherwise explicitly stated in // this section. The server MUST return errors through the pdwDisposition parameter. // // This section, and the following sections, describe the processing rules for ICertRequestD::Request // and ICertRequestD2::Request2. Request(context.Context, *RequestRequest, ...dcerpc.CallOption) (*RequestResponse, error) // The GetCACert method returns property values on the CA. The main use of this method // is to enable clients to diagnose issues and the state of the server. In addition, // one of the properties returned by this method is required to support the advanced // CA functionality (GETCERT_CAXCHGCERT). // // Return Values: For a successful invocation, the CA MUST return 0; otherwise, the // CA MUST return a nonzero value. GetCACert(context.Context, *GetCACertRequest, ...dcerpc.CallOption) (*GetCACertResponse, error) // The Ping method performs a request response test (ping) to the CA. // // Return Values: For a successful invocation, the CA MUST return 0; otherwise, the // CA MUST return a nonzero value. Ping(context.Context, *PingRequest, ...dcerpc.CallOption) (*PingResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) CertRequestDClient }
ICertRequestD interface.
func NewCertRequestDClient ¶
type CertRequestDServer ¶
type CertRequestDServer interface { // IUnknown base class. iunknown.UnknownServer // The Request method initiates the certificate issuance process. // // Return Values: The method MUST return zero unless otherwise explicitly stated in // this section. The server MUST return errors through the pdwDisposition parameter. // // This section, and the following sections, describe the processing rules for ICertRequestD::Request // and ICertRequestD2::Request2. Request(context.Context, *RequestRequest) (*RequestResponse, error) // The GetCACert method returns property values on the CA. The main use of this method // is to enable clients to diagnose issues and the state of the server. In addition, // one of the properties returned by this method is required to support the advanced // CA functionality (GETCERT_CAXCHGCERT). // // Return Values: For a successful invocation, the CA MUST return 0; otherwise, the // CA MUST return a nonzero value. GetCACert(context.Context, *GetCACertRequest) (*GetCACertResponse, error) // The Ping method performs a request response test (ping) to the CA. // // Return Values: For a successful invocation, the CA MUST return 0; otherwise, the // CA MUST return a nonzero value. Ping(context.Context, *PingRequest) (*PingResponse, error) }
ICertRequestD server interface.
type GetCACertRequest ¶
type GetCACertRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // fchain: Specifies the type of information to include in the output parameter. Chain uint32 `idl:"name:fchain" json:"chain"` // pwszAuthority: Contains the name of the CA. Authority string `idl:"name:pwszAuthority;string;pointer:unique" json:"authority"` }
GetCACertRequest structure represents the GetCACert operation request
func (*GetCACertRequest) MarshalNDR ¶
func (*GetCACertRequest) UnmarshalNDR ¶
type GetCACertResponse ¶
type GetCACertResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pctbOut: If the function returns success (0) this parameter is a pointer to a CERTTRANSBLOB // structure containing the returned value. Out *wcce.CertTransportBlob `idl:"name:pctbOut;pointer:ref" json:"out"` // Return: The GetCACert return value. Return int32 `idl:"name:Return" json:"return"` }
GetCACertResponse structure represents the GetCACert operation response
func (*GetCACertResponse) MarshalNDR ¶
func (*GetCACertResponse) UnmarshalNDR ¶
type PingRequest ¶
type PingRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // pwszAuthority: A null-terminated [UNICODE] string that MUST contain the name of the // CA. The CA name MUST be the CN value in the Subject field of the CA signing certificates // or its sanitized name. The sanitized names algorithm is specified in section 3.1.1.4.1.1. Authority string `idl:"name:pwszAuthority;string;pointer:unique" json:"authority"` }
PingRequest structure represents the Ping operation request
func (*PingRequest) MarshalNDR ¶
func (*PingRequest) UnmarshalNDR ¶
type PingResponse ¶
type PingResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // Return: The Ping return value. Return int32 `idl:"name:Return" json:"return"` }
PingResponse structure represents the Ping operation response
func (*PingResponse) MarshalNDR ¶
func (*PingResponse) UnmarshalNDR ¶
type RequestRequest ¶
type RequestRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // dwFlags: This field MUST contain packed data as specified in section 3.2.1.4.3.1.1. // The data in this field MUST define the structure of the pctbRequest parameter and // the expected content in pctbCertChain. Flags uint32 `idl:"name:dwFlags" json:"flags"` // pwszAuthority: A null-terminated [UNICODE] string that contains the name of the CA. Authority string `idl:"name:pwszAuthority;string;pointer:unique" json:"authority"` // pdwRequestId: A 32-bit integer value that contains the identifier used to identify // the request. Details about processing information are specified in section 3.1.1.4.3. RequestID uint32 `idl:"name:pdwRequestId;pointer:ref" json:"request_id"` // pwszAttributes: A null-terminated [UNICODE] string that contains a set of request // attributes. The parameter contains zero or more request attributes, which MUST be // empty or take the form of name/value pairs. The name/value pairs MUST be formatted // as "Name:Value". A colon MUST be the separator, and a new line ('\n') MUST separate // name/value pairs. Attributes string `idl:"name:pwszAttributes;string;pointer:unique" json:"attributes"` // pctbRequest: A CERTTRANSBLOB structure that contains a certificate request as a raw // binary object. This request binary object can be in one of a number of formats. The // format used is specified in the dwFlags parameter. The syntax of that structure is // provided in section 2.2.2.8. Request *wcce.CertTransportBlob `idl:"name:pctbRequest;pointer:ref" json:"request"` }
RequestRequest structure represents the Request operation request
func (*RequestRequest) MarshalNDR ¶
func (*RequestRequest) UnmarshalNDR ¶
type RequestResponse ¶
type RequestResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pdwRequestId: A 32-bit integer value that contains the identifier used to identify // the request. Details about processing information are specified in section 3.1.1.4.3. RequestID uint32 `idl:"name:pdwRequestId;pointer:ref" json:"request_id"` // pdwDisposition: An unsigned integer that identifies the request status for this invocation. // The value MUST be one of the following: // // * CR_DISP_ISSUED, 0x00000003: The requested certificate ( 719b890d-62e6-4322-b9b1-1f34d11535b4#gt_7a0f4b71-23ba-434f-b781-28053ed64879 // ) was issued. // // * CR_DISP_UNDER_SUBMISSION, 0x00000005: The requested certificate was not issued // and is now in a pending state waiting for additional processing before it can be // issued. // // * A nonzero value, excluding 0x00000003 and 0x00000005, indicating an error. Disposition uint32 `idl:"name:pdwDisposition" json:"disposition"` // pctbCertChain: A CERTTRANSBLOB structure that is empty or contains a simple CMS or // a CMC full PKI response for the certificate chain issued by the CA based on the request // (in the pctbRequest parameter) supplied by the caller. The parameter format is as // requested by the client in the dwFlags parameter. Message syntax MUST be as specified // in section 2.2.2.2. CertChain *wcce.CertTransportBlob `idl:"name:pctbCertChain;pointer:ref" json:"cert_chain"` // pctbEncodedCert: A CERTTRANSBLOB structure that is empty or contains the issued certificate. // The returned value MUST be an X509 cert encoded by using DER, as specified in [X660]. // Message syntax MUST be as specified in section 2.2.2.2. EncodedCert *wcce.CertTransportBlob `idl:"name:pctbEncodedCert;pointer:ref" json:"encoded_cert"` // pctbDispositionMessage: A CERTTRANSBLOB structure that contains a null-terminated // [UNICODE] string with a message that identifies the status of the request. Message // syntax MUST be as specified in section 2.2.2.2. DispositionMessage *wcce.CertTransportBlob `idl:"name:pctbDispositionMessage;pointer:ref" json:"disposition_message"` // Return: The Request return value. Return int32 `idl:"name:Return" json:"return"` }
RequestResponse structure represents the Request operation response
func (*RequestResponse) MarshalNDR ¶
func (*RequestResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.