iocspadmind

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IOCSPAdminD interface identifier 784b693d-95f3-420b-8126-365c098659f2
	OCSPAdminDIID = &dcom.IID{Data1: 0x784b693d, Data2: 0x95f3, Data3: 0x420b, Data4: []byte{0x81, 0x26, 0x36, 0x5c, 0x09, 0x86, 0x59, 0xf2}}
	// Syntax UUID
	OCSPAdminDSyntaxUUID = &uuid.UUID{TimeLow: 0x784b693d, TimeMid: 0x95f3, TimeHiAndVersion: 0x420b, ClockSeqHiAndReserved: 0x81, ClockSeqLow: 0x26, Node: [6]uint8{0x36, 0x5c, 0x9, 0x86, 0x59, 0xf2}}
	// Syntax ID
	OCSPAdminDSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: OCSPAdminDSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/ocspa"
)

Functions

func NewOCSPAdminDServerHandle

func NewOCSPAdminDServerHandle(o OCSPAdminDServer) dcerpc.ServerHandle

func OCSPAdminDServerHandle

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

func RegisterOCSPAdminDServer

func RegisterOCSPAdminDServer(conn dcerpc.Conn, o OCSPAdminDServer, opts ...dcerpc.Option)

Types

type GetCAConfigInformationRequest

type GetCAConfigInformationRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrCAId: A BSTR that specifies the RevocationConfigurationId for the revocation
	// configuration whose properties are to be retrieved.
	CAID *oaut.String `idl:"name:bstrCAId;pointer:ref" json:"ca_id"`
}

GetCAConfigInformationRequest structure represents the GetCAConfigInformation operation request

func (*GetCAConfigInformationRequest) MarshalNDR

func (*GetCAConfigInformationRequest) UnmarshalNDR

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

type GetCAConfigInformationResponse

type GetCAConfigInformationResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pEntryValue: A pointer to a VARIANT data type that contains the names and values
	// of all configured revocation configuration properties.
	EntryValue *oaut.Variant `idl:"name:pEntryValue;pointer:ref" json:"entry_value"`
	// Return: The GetCAConfigInformation return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetCAConfigInformationResponse structure represents the GetCAConfigInformation operation response

func (*GetCAConfigInformationResponse) MarshalNDR

func (*GetCAConfigInformationResponse) UnmarshalNDR

type GetHashAlgorithmsRequest

type GetHashAlgorithmsRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrCAId: A BSTR that specifies the RevocationConfigurationId.
	CAID *oaut.String `idl:"name:bstrCAId;pointer:ref" json:"ca_id"`
}

GetHashAlgorithmsRequest structure represents the GetHashAlgorithms operation request

func (*GetHashAlgorithmsRequest) MarshalNDR

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

func (*GetHashAlgorithmsRequest) UnmarshalNDR

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

type GetHashAlgorithmsResponse

type GetHashAlgorithmsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pHashAlgorithms:  A pointer to a VARIANT that is of type VT_ARRAY | VT_BSTR. Each element in the array is the name of a hash algorithm that could be used along with the signing certificate associated with a revocation configuration identified by bstrCAId to sign OCSP responses.
	HashAlgorithms *oaut.Variant `idl:"name:pHashAlgorithms;pointer:ref" json:"hash_algorithms"`
	// Return: The GetHashAlgorithms return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetHashAlgorithmsResponse structure represents the GetHashAlgorithms operation response

func (*GetHashAlgorithmsResponse) MarshalNDR

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

func (*GetHashAlgorithmsResponse) UnmarshalNDR

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

type GetMyRolesRequest

type GetMyRolesRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetMyRolesRequest structure represents the GetMyRoles operation request

func (*GetMyRolesRequest) MarshalNDR

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

func (*GetMyRolesRequest) UnmarshalNDR

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

type GetMyRolesResponse

type GetMyRolesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pdwRoles: Reference to an unsigned integer value that represents the retrieved Online
	// Responder Role for the caller. This can be a bitwise OR of the following values.
	//
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	|                             |                                                                                  |
	//	|            VALUE            |                                     MEANING                                      |
	//	|                             |                                                                                  |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| CA_ACCESS_READ 0x00000100   | The caller can read the configuration information at the responder.              |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| CA_ACCESS_ENROLL 0x00000200 | The caller can request the response status for a particular certificate from the |
	//	|                             | responder.                                                                       |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| CA_ACCESS_ADMIN 0x00000001  | The caller can update the configuration information at the responder.            |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000                  | The caller has no roles.                                                         |
	//	+-----------------------------+----------------------------------------------------------------------------------+
	Roles int32 `idl:"name:pdwRoles" json:"roles"`
	// Return: The GetMyRoles return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetMyRolesResponse structure represents the GetMyRoles operation response

func (*GetMyRolesResponse) MarshalNDR

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

func (*GetMyRolesResponse) UnmarshalNDR

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

type GetOCSPPropertyRequest

type GetOCSPPropertyRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrEntryName: A BSTR that specifies the name of the property to retrieve. The Unicode
	// string value SHOULD be one of the values listed in ResponderProperties or one of
	// the following values.
	//
	//	+---------------+----------------------------------------------------------------------------------+
	//	|   PROPERTY    |                                                                                  |
	//	|     NAME      |                                     MEANING                                      |
	//	|               |                                                                                  |
	//	+---------------+----------------------------------------------------------------------------------+
	//	+---------------+----------------------------------------------------------------------------------+
	//	| CAEntries     | A list of strings containing the RevocationConfigurationId corresponding to each |
	//	|               | configured revocation configuration in RevocationConfigurationList.              |
	//	+---------------+----------------------------------------------------------------------------------+
	//	| AllEntries    | A list of all the configured properties in the list ResponderProperties and all  |
	//	|               | the revocation configuration properties for all revocation configurations in     |
	//	|               | RevocationConfigurationList.                                                     |
	//	+---------------+----------------------------------------------------------------------------------+
	EntryName *oaut.String `idl:"name:bstrEntryName;pointer:ref" json:"entry_name"`
}

GetOCSPPropertyRequest structure represents the GetOCSPProperty operation request

func (*GetOCSPPropertyRequest) MarshalNDR

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

func (*GetOCSPPropertyRequest) UnmarshalNDR

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

type GetOCSPPropertyResponse

type GetOCSPPropertyResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pEntryValue: A pointer to a VARIANT. The data returned is the value of the property
	// referenced by bstrEntryName. See the following table for the processing rules that
	// apply to the bstrEntryName values. Other, vendor-defined bstrEntryName values, not
	// defined in the following table, MAY be used, as described in the processing rules
	// that follow the table.
	//
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	|        PROPERTY         |                             PROCESSING RULE FOR DATA                             |
	//	|          NAME           |                                     RETURNED                                     |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| AuditFilter             | The vt member of the VARIANT referenced by pEntryValue MUST be set to VT_I4, and |
	//	|                         | the lVal member MUST be either 0 or a bitwise OR of the following values. Flag   |
	//	|                         | value – Meaning 0x00000000 – Nothing is Audited. 0x00000001 – Audit start/stop   |
	//	|                         | of the service. 0x00000002 – Audit changes to the revocation configurations      |
	//	|                         | on the responder. 0x00000004 – Audit OCSP requests received by the responder.    |
	//	|                         | 0x00000008 – Audit changes to the security descriptor on the responder.          |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| ArrayController         | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_BSTR, |
	//	|                         | and the bstrVal member SHOULD be BSTR for the Unicode string value of the Domain |
	//	|                         | Name System (DNS) name of the machine designated as Array controller for the     |
	//	|                         | array of responder machines.                                                     |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| ArrayMembers            | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_ARRAY |
	//	|                         | | VT_BSTR, and the pArray member SHOULD reference a single dimension safearray.  |
	//	|                         | The number of elements of the safearray referenced by pArray SHOULD be equal     |
	//	|                         | to the number of machines running Online Responder Service with the same         |
	//	|                         | configuration information. For each machine, there SHOULD be an element in the   |
	//	|                         | safearray referenced by pArray containing the BSTR for Unicode string value of   |
	//	|                         | the FQDN of the machine.                                                         |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| NumOfThreads            | The vt member of the VARIANT referenced by pEntryValue MUST be set to VT_I4, and |
	//	|                         | the lVal member MUST be set to the maximum number of simultaneous OCSP requests  |
	//	|                         | [MS-OCSP] that can be served by the Online Responder Service. <5>                |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| MaxNumOfCacheEntries    | The vt member of the VARIANT referenced by pEntryValue MUST be set to VT_I4, and |
	//	|                         | the lVal member MUST be the maximum number of OCSP responses that can be cached  |
	//	|                         | by the responder.                                                                |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| CAEntries               | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to          |
	//	|                         | VT_ARRAY | VT_BSTR, and the pArray member SHOULD reference a single dimension    |
	//	|                         | safearray. The number of elements of the safearray reference by pArray           |
	//	|                         | SHOULD be equal to the number of entries in RevocationConfigurationList.         |
	//	|                         | For each revocation configuration in RevocationConfigurationList, there          |
	//	|                         | SHOULD be an element containing the BSTR for the Unicode string value of the     |
	//	|                         | RevocationConfigurationId.                                                       |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| LogLevel                | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the level  |
	//	|                         | of information to be communicated to the system (application eventlog channel)   |
	//	|                         | as part of operations being performed on the service.<6>                         |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| Debug                   | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be an integer value that specifies whether tracing    |
	//	|                         | for errors on the responder is enabled or not.<7>                                |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| EnrollPollInterval      | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the        |
	//	|                         | frequency (in number of hours) with which the responder will attempt to enroll   |
	//	|                         | for a signing certificate (for signing OCSP responses).<8>                       |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| RequestFlags            | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be either 0 or the following value. Flag value –      |
	//	|                         | Meaning 0x00000001:Responder MUST reject OCSP requests that have signatures on   |
	//	|                         | them.                                                                            |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| MaxIncomingMessageSize  | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the        |
	//	|                         | maximum size of the OCSP request [MS-OCSP], in bytes, that is allowed to be      |
	//	|                         | processed on the server.                                                         |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| NumOfBackendConnections | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the        |
	//	|                         | maximum number of connections that can be created by the web server to the       |
	//	|                         | Online Responder Service. <9>                                                    |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| RefreshRate             | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the        |
	//	|                         | frequency (in number of milliseconds) with which the web server will attempt     |
	//	|                         | to contact the Online Responder Service to obtain the latest revocation          |
	//	|                         | configuration information.                                                       |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| MaxAge                  | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the value  |
	//	|                         | for the HTTP max-age cache-control directive [RFC2616] as part of the OCSP       |
	//	|                         | response.                                                                        |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| ISAPIDebug              | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies whether    |
	//	|                         | the tracing for errors on the web server is enabled or not.<10>                  |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| MaxNumOfRequestEntries  | The vt member of the VARIANT referenced by pEntryValue SHOULD be set to VT_I4,   |
	//	|                         | and the lVal member SHOULD be set to the integer value that specifies the        |
	//	|                         | maximum number of requests that can be included in the requestList field of the  |
	//	|                         | OCSPRequest structure ([RFC2560] section 4.1.1).<11>                             |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| AllEntries              | The vt member of the VARIANT MUST be set to VT_ARRAY | VT_VARIANT, and the       |
	//	|                         | pArray member MUST reference a two-dimensional safearray. The number of elements |
	//	|                         | in the second dimension (signifying the number of columns) of the safearray      |
	//	|                         | referenced by pArray MUST be 2. The number of elements in the first dimension    |
	//	|                         | (signifying the number of rows) of the safearray referenced by pArray MUST       |
	//	|                         | be set to the sum of the number of entries in ResponderProperties and the        |
	//	|                         | number of entries in the RevocationConfigurationList. For each property in       |
	//	|                         | ResponderProperties, the first column of the row MUST be a VARIANT with vt       |
	//	|                         | member as VT_BSTR and the bstrVal member MUST be BSTR for the Unicode string     |
	//	|                         | value of the name of the property. The second column of the row MUST be a        |
	//	|                         | VARIANT with the value defined in this table, corresponding to the name of the   |
	//	|                         | property. For each revocation configuration in RevocationConfigurationList,      |
	//	|                         | the first column of the row MUST be a VARIANT with vt member as VT_BSTR          |
	//	|                         | and the bstrVal member MUST be BSTR for the Unicode string value of              |
	//	|                         | RevocationConfigurationId. The second column of the row MUST be a VARIANT with   |
	//	|                         | the value defined in section 3.2.4.1.3.                                          |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//
	// The following additional processing rules apply:
	//
	// * If the value of bstrEntryName is not the same as one of the values specified in
	// the preceding list or of a vendor-defined property, or if the property with the same
	// name is not yet configured on the responder, the server MUST fail. The error code
	// SHOULD be 0x80070002.
	//
	// * If the value of bstrEntryName corresponds to a vendor-defined property, the server
	// MAY return the value as a VARIANT containing data of the type integer, string, date,
	// or binary object. Otherwise, for bstrEntryName values that do not correspond to the
	// previous list, the server responds as if the property were not yet configured on
	// the responder. <12> ( ff1216b3-6fb4-4be8-b256-fb7055b1e86d#Appendix_A_12 )
	EntryValue *oaut.Variant `idl:"name:pEntryValue;pointer:ref" json:"entry_value"`
	// Return: The GetOCSPProperty return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetOCSPPropertyResponse structure represents the GetOCSPProperty operation response

func (*GetOCSPPropertyResponse) MarshalNDR

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

func (*GetOCSPPropertyResponse) UnmarshalNDR

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

type GetSecurityRequest

type GetSecurityRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetSecurityRequest structure represents the GetSecurity operation request

func (*GetSecurityRequest) MarshalNDR

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

func (*GetSecurityRequest) UnmarshalNDR

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

type GetSecurityResponse

type GetSecurityResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pctbSD: This is a pointer to a CERTTRANSBLOB structure that contains the marshaled
	// Security Descriptor. Information on Security Descriptors is documented in [MS-DTYP]
	// section 2.4.6.<17>
	SD *ocspa.CertTransportBlob `idl:"name:pctbSD;pointer:ref" json:"sd"`
	// Return: The GetSecurity return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetSecurityResponse structure represents the GetSecurity operation response

func (*GetSecurityResponse) MarshalNDR

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

func (*GetSecurityResponse) UnmarshalNDR

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

type GetSigningCertificatesRequest

type GetSigningCertificatesRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pCAVar: A pointer to a VARIANT data type containing the CA certificate. The vt member of VARIANT SHOULD be set to VT_ARRAY | VT_UI1, and the pArray member SHOULD reference a safearray that contains the ASN.1 DER encoded X.509 certificate data type containing the CA certificate.
	CAVar *oaut.Variant `idl:"name:pCAVar;pointer:ref" json:"ca_var"`
}

GetSigningCertificatesRequest structure represents the GetSigningCertificates operation request

func (*GetSigningCertificatesRequest) MarshalNDR

func (*GetSigningCertificatesRequest) UnmarshalNDR

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

type GetSigningCertificatesResponse

type GetSigningCertificatesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pSigningCertificates: A pointer to VARIANT data type containing the list of certificates. On successful return, the server SHOULD set the vt member of the VARIANT to VT_ARRAY|VT_UI1, and the pArray member SHOULD reference a safearray that contains the ASN.1 DER encoded degenerate PKCS#7 [RFC2315] containing the certificates.
	SigningCertificates *oaut.Variant `idl:"name:pSigningCertificates;pointer:ref" json:"signing_certificates"`
	// Return: The GetSigningCertificates return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetSigningCertificatesResponse structure represents the GetSigningCertificates operation response

func (*GetSigningCertificatesResponse) MarshalNDR

func (*GetSigningCertificatesResponse) UnmarshalNDR

type OCSPAdminDClient

type OCSPAdminDClient interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// This method retrieves the value of a responder property from the Online Responder
	// Service.
	GetOCSPProperty(context.Context, *GetOCSPPropertyRequest, ...dcerpc.CallOption) (*GetOCSPPropertyResponse, error)

	// This method configures the value of a responder property on the server.
	SetOCSPProperty(context.Context, *SetOCSPPropertyRequest, ...dcerpc.CallOption) (*SetOCSPPropertyResponse, error)

	// The GetCAConfigInformation method retrieves all the properties associated with a
	// particular revocation configuration.
	GetCAConfigInformation(context.Context, *GetCAConfigInformationRequest, ...dcerpc.CallOption) (*GetCAConfigInformationResponse, error)

	// This method sets all the properties for a particular revocation configuration.
	SetCAConfigInformation(context.Context, *SetCAConfigInformationRequest, ...dcerpc.CallOption) (*SetCAConfigInformationResponse, error)

	// The GetSecurity method is used to retrieve the security descriptor associated with
	// the responder.
	GetSecurity(context.Context, *GetSecurityRequest, ...dcerpc.CallOption) (*GetSecurityResponse, error)

	// The SetSecurity method is used to set the Online Responder Security, as defined in
	// the Abstract Data Model.
	SetSecurity(context.Context, *SetSecurityRequest, ...dcerpc.CallOption) (*SetSecurityResponse, error)

	// The GetSigningCertficates method retrieves a list of certificates available at the
	// responder machine that can be used to sign responses to OCSP requests regarding certificates
	// issued by the CA certificate specified.
	GetSigningCertificates(context.Context, *GetSigningCertificatesRequest, ...dcerpc.CallOption) (*GetSigningCertificatesResponse, error)

	// The GetHashAlgorithms method retrieves the list of hash algorithms available at the
	// responder that could be used along with the signing certificate associated with a
	// revocation configuration to sign OCSP responses.
	GetHashAlgorithms(context.Context, *GetHashAlgorithmsRequest, ...dcerpc.CallOption) (*GetHashAlgorithmsResponse, error)

	// The GetMyRoles method retrieves the Online Responder Roles [CIMC-PP] assigned to
	// the user that calls the method.
	GetMyRoles(context.Context, *GetMyRolesRequest, ...dcerpc.CallOption) (*GetMyRolesResponse, error)

	// This method queries the Online Responder Service to find out whether it is running.
	//
	// This method has no parameters.
	//
	// If the Online Responder Service is running, the server MUST return success (0) when
	// this method is invoked.
	Ping(context.Context, *PingRequest, ...dcerpc.CallOption) (*PingResponse, error)

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

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) OCSPAdminDClient
}

IOCSPAdminD interface.

func NewOCSPAdminDClient

func NewOCSPAdminDClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (OCSPAdminDClient, error)

type OCSPAdminDServer

type OCSPAdminDServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// This method retrieves the value of a responder property from the Online Responder
	// Service.
	GetOCSPProperty(context.Context, *GetOCSPPropertyRequest) (*GetOCSPPropertyResponse, error)

	// This method configures the value of a responder property on the server.
	SetOCSPProperty(context.Context, *SetOCSPPropertyRequest) (*SetOCSPPropertyResponse, error)

	// The GetCAConfigInformation method retrieves all the properties associated with a
	// particular revocation configuration.
	GetCAConfigInformation(context.Context, *GetCAConfigInformationRequest) (*GetCAConfigInformationResponse, error)

	// This method sets all the properties for a particular revocation configuration.
	SetCAConfigInformation(context.Context, *SetCAConfigInformationRequest) (*SetCAConfigInformationResponse, error)

	// The GetSecurity method is used to retrieve the security descriptor associated with
	// the responder.
	GetSecurity(context.Context, *GetSecurityRequest) (*GetSecurityResponse, error)

	// The SetSecurity method is used to set the Online Responder Security, as defined in
	// the Abstract Data Model.
	SetSecurity(context.Context, *SetSecurityRequest) (*SetSecurityResponse, error)

	// The GetSigningCertficates method retrieves a list of certificates available at the
	// responder machine that can be used to sign responses to OCSP requests regarding certificates
	// issued by the CA certificate specified.
	GetSigningCertificates(context.Context, *GetSigningCertificatesRequest) (*GetSigningCertificatesResponse, error)

	// The GetHashAlgorithms method retrieves the list of hash algorithms available at the
	// responder that could be used along with the signing certificate associated with a
	// revocation configuration to sign OCSP responses.
	GetHashAlgorithms(context.Context, *GetHashAlgorithmsRequest) (*GetHashAlgorithmsResponse, error)

	// The GetMyRoles method retrieves the Online Responder Roles [CIMC-PP] assigned to
	// the user that calls the method.
	GetMyRoles(context.Context, *GetMyRolesRequest) (*GetMyRolesResponse, error)

	// This method queries the Online Responder Service to find out whether it is running.
	//
	// This method has no parameters.
	//
	// If the Online Responder Service is running, the server MUST return success (0) when
	// this method is invoked.
	Ping(context.Context, *PingRequest) (*PingResponse, error)
}

IOCSPAdminD server interface.

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"`
}

PingRequest structure represents the Ping operation request

func (*PingRequest) MarshalNDR

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

func (*PingRequest) UnmarshalNDR

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

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 (o *PingResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PingResponse) UnmarshalNDR

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

type SetCAConfigInformationRequest

type SetCAConfigInformationRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrCAId: This is a BSTR that specifies the RevocationConfigurationId for the revocation
	// configuration whose properties are to be set.
	CAID *oaut.String `idl:"name:bstrCAId;pointer:ref" json:"ca_id"`
	// pEntryValue: This is a pointer to a VARIANT data type that contains the names and
	// values of the properties to set.
	EntryValue *oaut.Variant `idl:"name:pEntryValue;pointer:ref" json:"entry_value"`
}

SetCAConfigInformationRequest structure represents the SetCAConfigInformation operation request

func (*SetCAConfigInformationRequest) MarshalNDR

func (*SetCAConfigInformationRequest) UnmarshalNDR

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

type SetCAConfigInformationResponse

type SetCAConfigInformationResponse 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 SetCAConfigInformation return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetCAConfigInformationResponse structure represents the SetCAConfigInformation operation response

func (*SetCAConfigInformationResponse) MarshalNDR

func (*SetCAConfigInformationResponse) UnmarshalNDR

type SetOCSPPropertyRequest

type SetOCSPPropertyRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bstrEntryName: A BSTR that specifies the name of the property to set. The Unicode
	// string value SHOULD be one of the property name values listed in ResponderProperties.
	EntryName *oaut.String `idl:"name:bstrEntryName;pointer:ref" json:"entry_name"`
	// pEntryValue: A pointer to VARIANT data.
	EntryValue *oaut.Variant `idl:"name:pEntryValue;pointer:ref" json:"entry_value"`
}

SetOCSPPropertyRequest structure represents the SetOCSPProperty operation request

func (*SetOCSPPropertyRequest) MarshalNDR

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

func (*SetOCSPPropertyRequest) UnmarshalNDR

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

type SetOCSPPropertyResponse

type SetOCSPPropertyResponse 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 SetOCSPProperty return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetOCSPPropertyResponse structure represents the SetOCSPProperty operation response

func (*SetOCSPPropertyResponse) MarshalNDR

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

func (*SetOCSPPropertyResponse) UnmarshalNDR

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

type SetSecurityRequest

type SetSecurityRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pctbSD: A pointer to the CERTTRANSBLOB structure that contains the marshaled security
	// descriptor. Information on security descriptors is documented in [MS-DTYP] section
	// 2.4.6.
	SD *ocspa.CertTransportBlob `idl:"name:pctbSD;pointer:ref" json:"sd"`
}

SetSecurityRequest structure represents the SetSecurity operation request

func (*SetSecurityRequest) MarshalNDR

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

func (*SetSecurityRequest) UnmarshalNDR

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

type SetSecurityResponse

type SetSecurityResponse 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 SetSecurity return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetSecurityResponse structure represents the SetSecurity operation response

func (*SetSecurityResponse) MarshalNDR

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

func (*SetSecurityResponse) UnmarshalNDR

func (o *SetSecurityResponse) 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