Edit

WebAuthNEncodeMakeCredentialResponse function (webauthnplugin.h)

Encodes a credential attestation as a CTAP CBOR makeCredential response.

Syntax

HRESULT WebAuthNEncodeMakeCredentialResponse(
  PCWEBAUTHN_CREDENTIAL_ATTESTATION pCredentialAttestation,
  DWORD                             *pcbResp,
  BYTE                              **ppbResp
);

Parameters

pCredentialAttestation

A pointer to a WEBAUTHN_CREDENTIAL_ATTESTATION 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::MakeCredential implementation needs to return a CTAP CBOR-encoded makeCredential response.

Requirements

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

See also

WEBAUTHN_CREDENTIAL_ATTESTATION

IPluginAuthenticator::MakeCredential