Skip to content

More descriptive MbedTLS error messages #153

@chester-leung

Description

@chester-leung

Currently, all mbed TLS errors are outputted by LOG(FATAL), with the return code. We can use the following code to map the return code to an error message, and log the more descriptive error message.

char error_buf[200];
mbedtls_strerror( ret, error_buf, 200 );
LOG(FATAL) << error_buf;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions