Error messages for IPsec policy manipulation library
#include <netinet6/ipsec.h> const char *ipsec_strerror( void );
The ipsec_strerror() function obtains the error message for the last IPsec call that failed. If your program includes the declaration:
extern int ipsec_errcode;
you can access the error code from the IPsec policy manipulation library. You can use ipsec_strerror() to obtain the error message corresponding to the error code.
A pointer to a C string.
See the example of ipsec_set_policy().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | No |