native/native_wireguard_library library

Classes

in6_addr
IPv6 address
in_addr
Internet address (a structure for historical reasons)
sockaddr
XSI Structure used by kernel to store most addresses.
sockaddr_in
Socket address, internet style.
sockaddr_in6
timespec64
Cross platform __kernel_timespec
UnnamedUnion1
UnnamedUnion2
wg_allowedip
wg_device
wg_device_flags
wg_endpoint
wg_peer
wg_peer_flags

Functions

add_client_device(Pointer<Char> device_name, Pointer<Uint8> private_key) → void
add_client_peer(Pointer<Char> device_name, Pointer<UnsignedChar> public_key, Pointer<Char> ip_address) → void
Add a peer to device 'device_name'. @param device_name @param public_key @param ip_address
add_server_device(Pointer<Char> device_name, int port, Pointer<Uint8> private_key) → void
add_server_peer(Pointer<Char> device_name, Pointer<UnsignedChar> public_key, Pointer<Char> ip_address, int port) → void
Add a peer to device 'device_name'. @param device_name @param public_key @param ip_address
delete_device(Pointer<Char> device_name) int
generate_private_key(Pointer<UnsignedChar> result) → void
Generate a private key and store it in result. @param result Pointer to the location where the key will be stored.
generate_public_key(Pointer<UnsignedChar> private, Pointer<UnsignedChar> result) → void
Generate a public key and store it in result. @param private The private key to which the public key should correspond. @param result Pointer to the location where the key will be stored.
key_from_string(Pointer<Char> string, Pointer<Uint8> key) → void
key_to_string(Pointer<Uint8> key, Pointer<Char> result) → void
list_devices() → void
wg_add_device(Pointer<Char> device_name) int
wg_del_device(Pointer<Char> device_name) int
wg_free_device(Pointer<wg_device> dev) → void
wg_generate_preshared_key(Pointer<Uint8> preshared_key) → void
wg_generate_private_key(Pointer<Uint8> private_key) → void
wg_generate_public_key(Pointer<Uint8> public_key, Pointer<Uint8> private_key) → void
wg_get_device(Pointer<Pointer<wg_device>> dev, Pointer<Char> device_name) int
wg_key_from_base64(Pointer<Uint8> key, Pointer<Char> base64) int
wg_key_is_zero(Pointer<Uint8> key) bool
wg_key_to_base64(Pointer<Char> base64, Pointer<Uint8> key) → void
wg_list_device_names() Pointer<Char>
wg_set_device(Pointer<wg_device> dev) int

Typedefs

in_addr_t = __uint32_t
in_port_t = __uint16_t
sa_family_t = __uint8_t