Get the length of the IPsec policy
#include <netinet6/ipsec.h> int ipsec_get_policylen(char *buf);
libipsec
Use the -l ipsec option to qcc to link against this library.
The function ipsec_get_policylen() gets the length of the IPsec policy. Please refer to ipsec_set_policy() for details about the policies.
You may want the length of the generated buffer when calling setsockopt(). The function ipsec_get_policylen() returns the length.
The size of the buffer, or a negative value if an error occurs.
See ipsec_set_policy().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
IPsec, ipsec_dump_policy(), ipsec_set_policy(), ipsec_strerror()
setkey in the Utilities Reference