OpenBSD CVS

CVS log for src/sbin/isakmpd/connection.c


[BACK] Up to [local] / src / sbin / isakmpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.41 / (download) - annotate - [select for diffs], Mon Jan 15 09:54:48 2018 UTC (6 years, 4 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, HEAD
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Spacing, no object change.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jan 4 14:21:00 2018 UTC (6 years, 4 months ago) by mpi
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

space -> tab

No object change.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Dec 5 20:31:45 2017 UTC (6 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.38: +8 -9 lines
Diff to previous 1.38 (colored)

Use clock_gettime(CLOCK_MONOTONIC) to schedule timers

From Scott Cheloha, ok tb@

Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 6 13:54:04 2017 UTC (6 years, 9 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.37: +12 -4 lines
Diff to previous 1.37 (colored)

Prevent a use-after-free by always passing dynamically allocated
arguments to f_key_v2_connection_check().

The race can be triggered by sending SIGHUP to the daemon.  Note that
this change do not fix the memory leak if exchange_establish() fails.

Reported by MichaƂ Koc.

ok hshoexer@, markus@, henning@

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jan 22 03:09:31 2014 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.36: +1 -3 lines
Diff to previous 1.36 (colored)

improve randomization.  remove some junk debugging features that are
fundamentally broken.
ok jsing mikeb

Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 2 03:06:18 2013 UTC (11 years, 2 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Stop assuming time_t is long

ok deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Mon Apr 16 13:01:39 2007 UTC (17 years, 1 month ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.34: +4 -7 lines
Diff to previous 1.34 (colored)

There's no point in checking ptr for NULL before doing free(ptr)
since free(NULL) is just fine.

ok hshoexer@

Revision 1.34 / (download) - annotate - [select for diffs], Fri Sep 1 00:24:06 2006 UTC (17 years, 9 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.33: +4 -2 lines
Diff to previous 1.33 (colored)

Add a new UI command to force isakmpd into passive only mode.
Will be used by sasyncd to prevent two talking isakmpd's in an HA setup.
Based on a diff by ho@.
OK ho@, hshoexer@, deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Aug 22 17:34:31 2006 UTC (17 years, 9 months ago) by hshoexer
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

correct function name in log message.

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 4 10:05:01 2005 UTC (19 years, 1 month ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

clean up KEY_API() wrapper.

ok ho@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 8 19:40:02 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.30: +1 -5 lines
Diff to previous 1.30 (colored)

USE_DEBUG is bye bye

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 4 19:31:11 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

spacing; ok cloder

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 14 09:55:41 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)

KNF, style, 80c, etc. hshoexer@ ok

Revision 1.28 / (download) - annotate - [select for diffs], Fri May 14 08:42:56 2004 UTC (20 years ago) by hshoexer
Branch: MAIN
Changes since 1.27: +22 -19 lines
Diff to previous 1.27 (colored)

Some more KNF, no binary change.

ok ho@

Revision 1.27 / (download) - annotate - [select for diffs], Thu May 13 06:56:33 2004 UTC (20 years ago) by ho
Branch: MAIN
Changes since 1.26: +7 -5 lines
Diff to previous 1.26 (colored)

Extensions to the FIFO interface:
"C get [section]:tag" fetches a configuration value.
"C add [section]:tag=value" adds 'value' to a list, typically for the
[Phase 2]:Connections tag. FIFO "S" command destination file changed.
Various KNF cleanups. hshoexer@ ok.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 15 18:39:25 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.25: +287 -319 lines
Diff to previous 1.25 (colored)

partial move to KNF.  More to come.  This has happened because there
are a raft of source code auditors who are willing to help improve this
code only if this is done, and hey, isakmpd does need our standard
auditing process.  ok ho hshoexer

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 3 14:28:16 2003 UTC (21 years ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.24: +1 -6 lines
Diff to previous 1.24 (colored)

Remove clauses 3 and 4. With approval from Niklas Hallqvist and
Niels Provos.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 6 02:15:27 2002 UTC (22 years ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Style, and a few additional format/type mods.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 1 07:44:21 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

size_t must be cast to (unsigned long) and printed using %lu

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 6 14:37:11 2001 UTC (22 years, 11 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Style.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 5 12:36:49 2001 UTC (22 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

Add prototypes and some other various cleanup.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 2 02:28:35 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

make the alpha happy

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jul 1 19:48:43 2001 UTC (22 years, 11 months ago) by niklas
Branch: MAIN
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

Style

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 27 03:31:40 2001 UTC (22 years, 11 months ago) by angelos
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Consistently use "IPsec" capitalization (jsyn@nthought.com)

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue May 8 12:45:22 2001 UTC (23 years ago) by ho
Branch: OPENBSD_2_8
Changes since 1.10: +50 -47 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull in isakmpd from 2.9 to 2.8 branch.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 14 21:13:24 2001 UTC (23 years, 2 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Make these compile again...

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 14 12:15:45 2001 UTC (23 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.15: +37 -32 lines
Diff to previous 1.15 (colored)

Indentation and style fascism

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 14 10:42:19 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

might as well throw a few crumbs at the anal compiler

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 14 10:33:16 2001 UTC (23 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +3 -4 lines
Diff to previous 1.13 (colored)

incorrect TAILQ management; chris@stallion.oz.au, pr#1723

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 27 12:03:31 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

(c) 2001

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jan 26 12:12:51 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Pedantic style police

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 23 12:56:59 2000 UTC (23 years, 6 months ago) by niklas
Branch: MAIN
Changes since 1.10: +13 -14 lines
Diff to previous 1.10 (colored)

Merge with EOM 1.28

author: niklas
Fix log message

author: niklas
style

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 7 06:58:16 2000 UTC (23 years, 8 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored)

Merge with EOM 1.26

author: ho
pconn variable only used with USE_DEBUG

author: ho
NetBSD wants <sys/socket.h> for AF_INET def.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 3 07:29:11 2000 UTC (23 years, 10 months ago) by niklas
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Merge with EOM 1.24

author: niklas
style

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 3 07:25:39 2000 UTC (23 years, 10 months ago) by niklas
Branch: MAIN
Changes since 1.7: +12 -56 lines
Diff to previous 1.7 (colored)

Merge with EOM 1.23

author: provos
make a DOI specific decode_ids, but have isakmp doi decode point to
ipsec.

author: provos
introduce ipsec_decode_ids, also decodes FQDN and USER_FQDN now.
new ipsec_clone_id to copy IDs to phase 2 SAs for better status
reports. okay angelos@

author: provos
dont segfault on connection report when id is not set

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 7 22:05:29 2000 UTC (24 years, 2 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.6: +36 -7 lines
Diff to previous 1.6 (colored)

Merge with EOM 1.20

author: provos
Do not require Remote-ID in connection_record_passiv, make lookup_by_ids
deal with it.  This helps road warrior support. okay ho@ angelos@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 25 17:23:39 2000 UTC (24 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.5: +27 -25 lines
Diff to previous 1.5 (colored)

regress/crypto/Makefile: Merge with EOM 1.5
regress/dh/Makefile: Merge with EOM 1.7
regress/group/Makefile: Merge with EOM 1.9
regress/prf/Makefile: Merge with EOM 1.4
regress/rsakeygen/Makefile: Merge with EOM 1.8
regress/x509/Makefile: Merge with EOM 1.10
Makefile: Merge with EOM 1.62
attribute.c: Merge with EOM 1.10
sa.c: Merge with EOM 1.99
conf.c: Merge with EOM 1.20
crypto.c: Merge with EOM 1.28
isakmpd.c: Merge with EOM 1.45
connection.c: Merge with EOM 1.19
doi.h: Merge with EOM 1.28
field.c: Merge with EOM 1.11
exchange.c: Merge with EOM 1.116
ike_auth.c: Merge with EOM 1.44
pf_key_v2.c: Merge with EOM 1.37
ike_phase_1.c: Merge with EOM 1.22
ipsec.c: Merge with EOM 1.118
isakmp_doi.c: Merge with EOM 1.40
log.c: Merge with EOM 1.26
log.h: Merge with EOM 1.18
math_group.c: Merge with EOM 1.23
message.c: Merge with EOM 1.144
pf_encap.c: Merge with EOM 1.70
policy.c: Merge with EOM 1.18
timer.c: Merge with EOM 1.13
transport.c: Merge with EOM 1.41
udp.c: Merge with EOM 1.47
ui.c: Merge with EOM 1.37
x509.c: Merge with EOM 1.36

author: niklas
Made debug logging a compile time selectable feature

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 1 14:10:19 1999 UTC (24 years, 8 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Merge with EOM 1.18

author: niklas
actually tv_sec is long, so use %ld

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 13 15:46:32 1999 UTC (24 years, 10 months ago) by niklas
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Merge with EOM 1.17

author: ho
Oops.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 7 22:04:34 1999 UTC (24 years, 11 months ago) by niklas
Branch: MAIN
Changes since 1.2: +10 -2 lines
Diff to previous 1.2 (colored)

Merge with EOM 1.16

author: ho
Add copyright notice.

author: ho
Add connection_exist function

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 2 06:31:37 1999 UTC (25 years ago) by niklas
Branch: MAIN
Changes since 1.1: +300 -5 lines
Diff to previous 1.1 (colored)

Merge with EOM 1.14

author: ho
We do not require flags on implicit passive connections.

author: ho
Fix bug in matching IDs. Cleanup debugging.

author: ho
bug fix of decode_id function.

author: ho
Temp. add some more debugging around setup of passive connection

author: ho
Add more debugging output and correct connection_report

author: niklas
Some extra error checking, documentation and style wrt connections

author: ho
More passive connection support

author: niklas
Small bugfixes and style nits

author: ho
Expand the passive connection mechanism.

author: niklas
Some more #if 0 stuff for passive connections

author: ho
Commit to embryonic code for passive connections

author: niklas
Some type pedantery. Comment style nits.

author: ho
Add connections_report and connection_reinit

Revision 1.1 / (download) - annotate - [select for diffs], Sun May 2 05:52:48 1999 UTC (25 years, 1 month ago) by niklas
Branch: MAIN

New files I forgot to commit when adding the new connection abstraction

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.