Edit

WebAuthNEncodeGetAssertionResponse function (webauthnplugin.h)

Encodes a getAssertion response as CTAP CBOR.

Syntax

HRESULT WebAuthNEncodeGetAssertionResponse(
  PCWEBAUTHN_CTAPCBOR_GET_ASSERTION_RESPONSE pGetAssertionResponse,
  DWORD                                      *pcbResp,
  BYTE                                       **ppbResp
);

Parameters

pGetAssertionResponse

A pointer to a WEBAUTHN_CTAPCBOR_GET_ASSERTION_RESPONSE structure to encode.

pcbResp

Receives the size, in bytes, of the encoded response buffer returned in ppbResp.

ppbResp

When this function returns successfully, contains a pointer to the encoded response buffer.

Return value

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Use this helper when an IPluginAuthenticator::GetAssertion implementation needs to return a CTAP CBOR-encoded getAssertion response.

Requirements

Requirement Value
Header webauthnplugin.h
Library WebAuthnPlugin.Lib
DLL WebAuthnPlugin.dll

See also

WEBAUTHN_CTAPCBOR_GET_ASSERTION_RESPONSE

IPluginAuthenticator::GetAssertion