Permalink
Browse files

Remove purgeph1(); it is no longer used.

  • Loading branch information...
1 parent 4e0f16f commit db09ee75e12a174159a36c18331346344af066cd thorpej committed Feb 6, 2001
Showing with 2 additions and 27 deletions.
  1. +1 −25 kame/kame/racoon/handler.c
  2. +1 −2 kame/kame/racoon/handler.h
@@ -1,4 +1,4 @@
-/* $KAME: handler.c,v 1.42 2001/01/26 04:02:45 thorpej Exp $ */
+/* $KAME: handler.c,v 1.43 2001/02/06 16:28:16 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -132,30 +132,6 @@ getph1byaddr(local, remote)
return NULL;
}
-void
-purgeph1(iph1)
- struct ph1handle *iph1;
-{
- struct ph1handle *p;
-
- LIST_FOREACH(p, &ph1tree, chain) {
- if (cmpsaddrwop(iph1->remote, p->remote))
- continue;
- /* don't delete current phase 1 SA */
- if (memcmp(&iph1->index, &p->index, sizeof(isakmp_index)) == 0)
- continue; /* don't delete current phase 1 SA */
-
- plog(LLV_INFO, LOCATION, iph1->remote,
- "proto_id ISAKMP purging spi:%s.\n",
- isakmp_pindex(&p->index, 0));
-
- if (p->sce)
- SCHED_KILL(p->sce);
- p->status = PHASE1ST_EXPIRED;
- p->sce = sched_new(1, isakmp_ph1delete_stub, p);
- }
-}
-
/*
* dump isakmp-sa
*/
@@ -1,4 +1,4 @@
-/* $KAME: handler.h,v 1.36 2001/01/26 04:02:46 thorpej Exp $ */
+/* $KAME: handler.h,v 1.37 2001/02/06 16:28:17 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -371,7 +371,6 @@ extern struct ph1handle *getph1byindex __P((isakmp_index *));
extern struct ph1handle *getph1byindex0 __P((isakmp_index *));
extern struct ph1handle *getph1byaddr __P((struct sockaddr *,
struct sockaddr *));
-extern void purgeph1 __P((struct ph1handle *));
extern vchar_t *dumpph1 __P((void));
extern struct ph1handle *newph1 __P((void));
extern void delph1 __P((struct ph1handle *));

0 comments on commit db09ee7

Please sign in to comment.