OpenBSD CVS

CVS log for src/sbin/isakmpd/util.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Tue Dec 5 20:31:45 2017 UTC (6 years, 5 months ago) by jca
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.32: +2 -2 lines
Diff to previous 1.32 (colored)

Use clock_gettime(CLOCK_MONOTONIC) to schedule timers

From Scott Cheloha, ok tb@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 23 01:04:28 2014 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, 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.31: +1 -3 lines
Diff to previous 1.31 (colored)

Remove a mid-layer which acts like arc4random isn't fairly standard.
ok mikeb

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jan 22 22:17:16 2014 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (colored)

regrand can die, from millert

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 22 03:09:31 2014 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

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

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 24 13:52:14 2006 UTC (17 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, 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, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

add support to tag ipsec traffic belonging to specific IKE-initiated
phase 2 traffic. this allows policy-based filtering of encrypted and
unencrypted ipsec traffic with pf(4). see ipsec.conf(5) and
isakmpd.conf(5) for details and examples.

this is work in progress and still needs some testing and feedback,
but it is safe to put it in now.

ok hshoexer@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Dec 28 10:57:35 2005 UTC (18 years, 5 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.27: +1 -4 lines
Diff to previous 1.27 (colored)

remove some unused functions and an unused variable found by lint.

ok markus@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Nov 15 21:49:04 2005 UTC (18 years, 6 months ago) by cloder
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Add a new raw2hex function and yank out several pieces of code in other
places that were doing this.  Prodding deraadt.  OK hshoexer.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 25 14:56:42 2005 UTC (18 years, 10 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

output some more information on UI command "S"

ok ho@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 8 22:32:10 2005 UTC (19 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Make deterministic randomness (only ever used for testing) a compile-time
option.  Reduces chances of somehow setting regrand when it's not supposed
to be set.  Remove "-r" option from man page.  Also xref certpatch(8) while
we are in there.  And remove some include sysdep.h where it is no longer
needed.
OK hshoexer

Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 10 21:39:21 2005 UTC (19 years, 2 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.23: +1 -7 lines
Diff to previous 1.23 (colored)

remove dead code, noted by ho@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:52 2005 UTC (19 years, 3 months ago) by hshoexer
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

remove unused function udp_decode_port(), add modified version as text2port() to
utilities.

ok cloder ho

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 14 10:17:28 2004 UTC (19 years, 5 months ago) by mcbride
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Allow the Address, Network, or Netmask values of the <IPsec-ID> to be
specified with an interface name (in which case the first address is used)
or the keyword 'default' (in which case the address is selected based on the
default route). eg:

[roadwarrior-ip]
ID-type=                IPV4_ADDR
Address=                default

ok ho@ hshoexer@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jun 23 03:01:53 2004 UTC (19 years, 11 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

Avoid stat before open.  Do open and fstat instead.
Remove check_file_secrecy() as it is obsoleted be check_file_secrecy_fd().

ok ho@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 20 15:24:05 2004 UTC (19 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

NAT-Traversal for isakmpd. Work in progress...
hshoexer@ ok.

Revision 1.19 / (download) - annotate - [select for diffs], Sun May 23 16:14:22 2004 UTC (20 years ago) by deraadt
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

stat before open is flawed

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 15 18:39:26 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.17: +24 -24 lines
Diff to previous 1.17 (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.14.4.1 / (download) - annotate - [select for diffs], Wed Mar 17 15:05:03 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.14: +1 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

MFC:
Fix by hshoexer@

Fix payload handling flaws found by cloder@.  Based on initial patch by
cloder@.

ok deraadt@ hshoexer@

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Wed Mar 17 14:59:18 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

MFC:
Fix by hshoexer@

Fix payload handling flaws found by cloder@.  Based on initial patch by
cloder@.

ok deraadt@ hshoexer@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 10 23:08:49 2004 UTC (20 years, 2 months ago) by hshoexer
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

Fix payload handling flaws found by cloder@.  Based on initial patch by
cloder@.  Testing by markus@ cloder@ hshoexer@.

ok ho@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 14 14:50:23 2003 UTC (20 years, 5 months ago) by ho
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Log the actual port for src and dst, don't assume it's always 500.

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

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

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 28 11:23:20 2002 UTC (22 years ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_2_BASE, OPENBSD_3_2
Branch point for: OPENBSD_3_3
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

off_t to size_t change for printf format and malloc. Pointed out by <greg@nest.cx>

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 26 12:03:07 2001 UTC (22 years, 7 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Just rename sockaddr_data/len functions to sockaddr_addrdata/addrlen.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Aug 22 08:50:40 2001 UTC (22 years, 9 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

Alphabeticize extern decls.

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

Add prototypes and some other various cleanup.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jul 1 19:59:14 2001 UTC (22 years, 11 months ago) by niklas
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

strict strtol checking.  text2sockaddr/sockaddr2text implementations
for systems without get{addr,name}info calls.  Some style police.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 29 04:12:01 2001 UTC (22 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

Initial IPv6 support. (niklas@ ok)

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 27 00:10:35 2001 UTC (22 years, 11 months ago) by ho
Branch: MAIN
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (colored)

A few more functions to help with IPv6 support. By Niklas and me.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Tue May 8 12:45:26 2001 UTC (23 years, 1 month ago) by ho
Branch: OPENBSD_2_8
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull in isakmpd from 2.9 to 2.8 branch.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 23 12:56:15 2000 UTC (23 years, 6 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored)

policy.c: Merge with EOM 1.49
util.h: Merge with EOM 1.10

author: niklas
style and removal of unused, unneeded code

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 16 23:28:13 2000 UTC (23 years, 7 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored)

Merge with EOM 1.9

author: angelos
Correct byte-order handling in encode/decode_128, add function prototypes.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 13 13:42:50 2000 UTC (23 years, 7 months ago) by niklas
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

util.h: Merge with EOM 1.8
ike_auth.c: Merge with EOM 1.57

author: ho
Add file permission check to private key file. Split out check function to util.c.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 5 22:40:37 1999 UTC (24 years, 10 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

regress/rsakeygen/Makefile: Merge with EOM 1.5
sysdep/openbsd/sysdep.c: Merge with EOM 1.8
cookie.c: Merge with EOM 1.21
util.c: Merge with EOM 1.15
util.h: Merge with EOM 1.7

author: niklas
Move regrand var to util.c, and get the decl from util.h, do not update the
cookie secret if in deterministic mode.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 17 11:10:22 1998 UTC (25 years, 6 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Add RCS Ids from the EOM repository

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 15 00:44:05 1998 UTC (25 years, 6 months ago) by niklas
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

openBSD RCS IDs

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Nov 15 00:03:49 1998 UTC (25 years, 6 months ago) by niklas
Branch: NIKLAS
CVS Tags: NIKLAS_981114
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Initial import of isakmpd, an IKE (ISAKMP/Oakley) implementation for the
OpenBSD IPSEC stack by me, Niklas Hallqvist and Niels Provos, funded by
Ericsson Radio Systems.  It is not yet complete or usable in a real scenario
but the missing pieces will soon be there.  The early commit is for people
who wants early access and who are not afraid of looking at source.
isakmpd interops with Cisco, Timestep, SSH & Pluto (Linux FreeS/WAN) so
far, so it is not that incomplete.  It is really mostly configuration that
is lacking.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 15 00:03:49 1998 UTC (25 years, 6 months ago) by niklas
Branch: MAIN

Initial revision

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.