]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
add new_keys argument to esp_setup_keys() in preparation for supporting GlobalProtect ESP
authorDaniel Lenski <dlenski@gmail.com>
Sat, 20 May 2017 22:43:27 +0000 (15:43 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 14 Aug 2017 16:26:46 +0000 (17:26 +0100)
commit0ca5974685c0d599e26805f0684ade19b0712718
tree12a93c8ff2d5b9985a494915344bfe99e6ac18f8
parent5cd81d7524552f0ac315f0bd86c65dbdabcbebbf
add new_keys argument to esp_setup_keys() in preparation for supporting GlobalProtect ESP

The existing ESP key setup code can be almost entirely reused for
GlobalProtect ESP, except for the fact that esp_setup_keys() always
overwrites the secret keys with new random keys.

Since GlobalProtect ESP always uses keys provided by the server, a new
argument is added to esp_setup_keys() to make this behavior optional.
The Juniper-specific code in oncp.c calls it with new_keys=1 in order
to explicitly request it.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
gnutls-esp.c
oncp.c
openconnect-internal.h
openssl-esp.c