summaryrefslogtreecommitdiff
path: root/sbin/photurisd/handle_spi_update.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1999-03-27 21:18:03 +0000
committerNiels Provos <provos@cvs.openbsd.org>1999-03-27 21:18:03 +0000
commite587002df05c5b20cc3d150b2ffe86b81b2e172f (patch)
tree9dfd54acbd2a96857d6fcb80e5525ae5901b47a8 /sbin/photurisd/handle_spi_update.c
parentdefd96f785a6fc79d07307a2e69e27c048f432af (diff)
convert the kernel module to PFKEYv2, support for binding incoming and
outgoing SA-pairs, fix a bug in SPI generation. the daemon registers with pfkey but does not yet handle expiration or acquire messages. well, there are NO acquire messages at the moment, so dynamic keyed vpn or stuff does not work :-\ - all this done in canada. thanks again to dugsong and linh for the ride. linh is sleeping now.
Diffstat (limited to 'sbin/photurisd/handle_spi_update.c')
-rw-r--r--sbin/photurisd/handle_spi_update.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/photurisd/handle_spi_update.c b/sbin/photurisd/handle_spi_update.c
index 985de3d7ae9..a0dd91725cb 100644
--- a/sbin/photurisd/handle_spi_update.c
+++ b/sbin/photurisd/handle_spi_update.c
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: handle_spi_update.c,v 1.1 1998/11/14 23:37:24 deraadt Exp $";
+static char rcsid[] = "$Id: handle_spi_update.c,v 1.2 1999/03/27 21:18:00 provos Exp $";
#endif
#include <stdio.h>
@@ -155,6 +155,9 @@ handle_spi_update(u_char *packet, int size, char *address,
return 0;
}
+ /* The State object always retains the latest SPI pairs */
+ bcopy(header->SPI, st->uSPI, SPI_SIZE);
+
if ((spi = spi_new(st->address, header->SPI)) == NULL) {
log_error(0, "spi_new() in handle_spi_update()");
return -1;