[Swan-dev] heads up bits of *linux*/include/libreswan.h moving to include/

Andrew Cagney andrew.cagney at gmail.com
Fri Jun 22 16:19:07 UTC 2018


I'm currently sitting on a series of patches that move a few of
libreswan's non linux-kernel specific declarations to include/,
namely:

- err_t -> include/err.h (but it should just go away)
- ip_address -> include/ip_address.h (others?) (I wish it was called
ip_endpoint - per IKEv2 - but that's another story)
- PRINTF_LIKE et.al. -> include/lswcdefs.h (blame sys/cdefs.h)
- ckaid_t -> include/ckaid.h

but there's a catch (isn't there always).  The klips linux-kernel
module still needs at least some of these declarations to be visible,
consequently:

- include/ gets added to klips linux-kernel module's build path
- *linux*/include/libreswan.h includes the new headers to keep that code happy

presumably, a long term goal is to only include the linux-kernel
specific libreswan.h header in linux kernel specific code.  Right?

Andrew (mumbling something about post 3.24)


More information about the Swan-dev mailing list