Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_strerror.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_strerror.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_strerror.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_strerror.html on line 8
Error messages for IPsec policy manipulation library
#include <netinet6/ipsec.h>
const char *ipsec_strerror( void );
libipsec
Use the -l ipsec option to
qcc
to link against this library.
The ipsec_strerror() function obtains the error message for the
last IPsec call that failed.
If you 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.
|
Don't modify the string that this function returns.
Since ipsec_strerror() uses
strerror()
as its underlying function, calling strerror() after
calling ipsec_strerror() overwites or invalidates the return value
from ipsec_strerror(). |
See the example of
ipsec_set_policy().
Unix
Safety: | |
Cancellation point |
No |
Interrupt handler |
Yes |
Signal handler |
Yes |
Thread |
No |
IPsec,
ipsec_dump_policy(),
ipsec_get_policylen(),
ipsec_set_policy()
setkey in the
Utilities Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_strerror.html on line 134
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/ipsec_strerror.html on line 134