Skip to main content

Name

ec_ssl_set_verify_errmsg — Set the verify error message and code

Synopsis

#include "ec_ssl.h"

| void **ec_ssl_set_verify_errmsg** ( | ctx, |   | |   | code, |   | |   | msg); |   |

ec_ssl_ctx * <var class="pdparam">ctx</var>; int <var class="pdparam">code</var>; const char * <var class="pdparam">msg</var>;

Description

Set the verify error message and code. The error message must be a single line without line endings; it will be appropriately formatted and sent to the peer according to the protocol in use.

To clear the 'verify' error, call with code set to 0 and msg set to NULL.

Parameters

ctx

The SSL context.

code

The error code.

msg

The error message.

Return Values

This function returns void.

Threading

It is legal to call this function in the Scheduler thread.

See Also

Was this page helpful?