summaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard/wireguard.api
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2020-11-26 09:27:01 +0100
committerNeale Ranns <nranns@cisco.com>2020-12-01 16:49:32 +0000
commitde22111b5280301cdd5e7862e593e24715bc6292 (patch)
tree9bbec2201f4c7b4845940fb528374bc740d96c69 /src/plugins/wireguard/wireguard.api
parent2df2f75ec52003e3b6addbde5f2e8254a9aee800 (diff)
wireguard: return public key in api
Type: feature Change-Id: Iacb0da8bc738ed400678f9bb40e70e0031c6588e Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/wireguard/wireguard.api')
-rwxr-xr-xsrc/plugins/wireguard/wireguard.api2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/wireguard/wireguard.api b/src/plugins/wireguard/wireguard.api
index 195755e5c43..e290fc41ffc 100755
--- a/src/plugins/wireguard/wireguard.api
+++ b/src/plugins/wireguard/wireguard.api
@@ -23,6 +23,7 @@ import "vnet/ip/ip_types.api";
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@param private_key - private key in binary format of this device
+ @param public_key - public key in binary format of this device
@param port - port of this device
@param src_ip - packet sent through this interface us this
address as the IP source.
@@ -32,6 +33,7 @@ typedef wireguard_interface
u32 user_instance [default=0xffffffff];
vl_api_interface_index_t sw_if_index;
u8 private_key[32];
+ u8 public_key[32];
u16 port;
vl_api_address_t src_ip;
};