IOCSPAdmin::GetHashAlgorithms method (certadm.h)

The GetHashAlgorithms method gets a list of hash-algorithm names. The Online Certificate Status Protocol (OCSP) responder server uses these names to sign OCSP responses for a given certification authority (CA) configuration.

Syntax

HRESULT GetHashAlgorithms(
  [in]  const BSTR bstrServerName,
  [in]  const BSTR bstrCAId,
  [out] VARIANT    *pVal
);

Parameters

[in] bstrServerName

A string that contains the responder-server name.

[in] bstrCAId

A string that contains an OCSPCAConfiguration Identifier.

[out] pVal

The list of hash algorithms with which a responder server can sign responses.

Return value

C++

If the method succeeds, it returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

A list of hash algorithms with which a responder server can sign responses.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only]
Target Platform Windows
Header certadm.h (include Certsrv.h)
Library Certadm.lib
DLL Certadm.dll

See also

IOCSPAdmin