wg: Prevent wg_{cookie,noise}.h from including by userland
commit5aabec174bfbab79be0bcfde3d23387556196f76
authorAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:06:19 +0000 (8 14:06 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:44:47 +0000 (8 14:44 +0800)
tree720d4119d713d24693cf1c6c707acd3031541bd7
parent3a4958976f53389791fb0e7b12db42361368f335
wg: Prevent wg_{cookie,noise}.h from including by userland

Since our build system currently would install all headers (i.e., '*.h')
in 'sys/net/wg' directory, but actually only the 'if_wg.h' is required
by userland, i.e., ifconfig(8).  So add the '_KERNEL' guard to prevent
the other two headers from including by userland.

Nonetheless, the build system should be improved in the future.
sys/net/wg/wg_cookie.h
sys/net/wg/wg_noise.h