Skip to content

MTY_CertGetFingerprint

chrisd1100 edited this page Mar 26, 2023 · 2 revisions

Get the certificate's SHA-256 fingerprint.

This function will safely truncate overflows with a null character.

void MTY_CertGetFingerprint(
    MTY_Cert * ctx,
    char *     fingerprint,
    size_t     size
);

Parameters

ctx (MTY_Cert *)

An MTY_Cert.

fingerprint (char *)

Output buffer to receive the fingerprint. This buffer can be of size MTY_FINGERPRINT_MAX.

size (size_t)

Size in bytes of fingerprint.

Platform support

Windows   Linux  

See also

Module: DTLS

Clone this wiki locally