NAME
iippsseeccssttrreerrrroorr - error messages for the IPsec policy manipulation
library LLIIBBRRAARRYYIPsec Policy Control Library (libipsec, -lipsec)
SYNOPSIS
##iinncclluuddee <
const char * iippsseeccssttrreerrrroorr(void);> DESCRIPTION
netinet6/ipsec.h declares extern int ipsecerrcode; which is used to pass an error code from the IPsec policy manipulation library to a program. iippsseeccssttrreerrrroorr() can be used to obtain the error message string for the error code. The array pointed to is not to be modified by the calling program. Since iippsseeccssttrreerrrroorr() uses strerror(3) as underlying function, calling strerror(3) after iippsseeccssttrreerrrroorr() will make the return value from iippsseeccssttrreerrrroorr() invalid or overwritten.RETURN VALUES
iippsseeccssttrreerrrroorr() always returns a pointer to a C string. The C string must not be overwritten by the calling program.SEE ALSO
ipsecsetpolicy(3) HISTORY iippsseeccssttrreerrrroorr() first appeared in the WIDE/KAME IPv6 protocol stack kit.BUGS
iippsseeccssttrreerrrroorr() will return its result which may be overwritten by sub-
sequent calls. ipsecerrcode is not thread safe. BSD May 6, 1998 BSD