History log of /openbsd-current/sbin/isakmpd/key.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.27 13-Oct-2021 tb

isakmpd: remove #ifdefs for ancient OPENSSL_VERSIONs.

No-one is going to build this with OpenSSL 0.9.7 or earlier, so we
can remove this code.

ok bluhm sthen (as part of a larger diff)


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.26 03-Feb-2017 guenther

Stop assuming that in_{addr,port}_t are typedefed in <sys/types.h> and
instead pull in <netinet/in.h> or <arpa/inet.h> when those are needed.

ok florian@ beck@ millert@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.25 05-Mar-2007 moritz

Set pointer to NULL after freeing it, so callers of
key_from_printable() are not fooled into using it
afterwards.

OK hshoexer@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.24 15-Nov-2005 cloder

Be cleaner about signed vs. unsigned when it's easy to do so. OK hshoexer


# 1.23 15-Nov-2005 cloder

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


Revision tags: OPENBSD_3_8_BASE
# 1.22 08-Apr-2005 cloder

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


# 1.21 05-Apr-2005 cloder

Always compile X509 support. Almost everyone uses it. Makes the code
much easier to read and to maintain.
OK and testing by hshoexer@, more testing by me


Revision tags: OPENBSD_3_7_BASE
# 1.20 28-Dec-2004 hshoexer

Correctly determine length of rsa key passed by the kernel to userland. Found
and fix provided by Stefan Miltchev. Again, many thanks!

Slightly different fix.
ok ho@


# 1.19 17-Sep-2004 ho

Missing #ifdefs.


Revision tags: OPENBSD_3_6_BASE
# 1.18 14-Jun-2004 ho

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


# 1.17 23-May-2004 hshoexer

More KNF. Mainly spaces and line-wraps, no binary change.

ok ho@


# 1.16 23-May-2004 deraadt

greater care with arguments


# 1.15 15-Apr-2004 deraadt

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


# 1.14 07-Apr-2004 ho

Reset *data in case of unknown key types


Revision tags: OPENBSD_3_5_BASE
# 1.13 06-Nov-2003 ho

Style nits.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.12 11-Sep-2002 ho

signed vs unsigned, some void * arithmetic, from -pedantic. niklas@ ok.


# 1.11 10-Jun-2002 ho

The dlopen() stuff goes away.


# 1.10 01-Jun-2002 deraadt

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


Revision tags: OPENBSD_3_1_BASE
# 1.9 06-Mar-2002 ho

Compile without warnings for older/newer OpenSSL.


# 1.8 06-Mar-2002 ho

Fix a couple of snprintf length bugs. Same problem <chris@stallion.oz.au>
found for policy passphrases.


# 1.7 05-Mar-2002 deraadt

handle constification from new openssl


# 1.6 23-Jan-2002 ho

the last few sprintf -> snprintf


# 1.5 26-Oct-2001 ho

libcrypto.h should be included. Sort includes.


Revision tags: OPENBSD_3_0_BASE
# 1.4 02-Jul-2001 deraadt

make the alpha happy


# 1.3 01-Jul-2001 niklas

Style


# 1.2 25-Jun-2001 angelos

Copyright update.


# 1.1 31-May-2001 angelos

Key handling routines.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.26 03-Feb-2017 guenther

Stop assuming that in_{addr,port}_t are typedefed in <sys/types.h> and
instead pull in <netinet/in.h> or <arpa/inet.h> when those are needed.

ok florian@ beck@ millert@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.25 05-Mar-2007 moritz

Set pointer to NULL after freeing it, so callers of
key_from_printable() are not fooled into using it
afterwards.

OK hshoexer@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.24 15-Nov-2005 cloder

Be cleaner about signed vs. unsigned when it's easy to do so. OK hshoexer


# 1.23 15-Nov-2005 cloder

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


Revision tags: OPENBSD_3_8_BASE
# 1.22 08-Apr-2005 cloder

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


# 1.21 05-Apr-2005 cloder

Always compile X509 support. Almost everyone uses it. Makes the code
much easier to read and to maintain.
OK and testing by hshoexer@, more testing by me


Revision tags: OPENBSD_3_7_BASE
# 1.20 28-Dec-2004 hshoexer

Correctly determine length of rsa key passed by the kernel to userland. Found
and fix provided by Stefan Miltchev. Again, many thanks!

Slightly different fix.
ok ho@


# 1.19 17-Sep-2004 ho

Missing #ifdefs.


Revision tags: OPENBSD_3_6_BASE
# 1.18 14-Jun-2004 ho

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


# 1.17 23-May-2004 hshoexer

More KNF. Mainly spaces and line-wraps, no binary change.

ok ho@


# 1.16 23-May-2004 deraadt

greater care with arguments


# 1.15 15-Apr-2004 deraadt

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


# 1.14 07-Apr-2004 ho

Reset *data in case of unknown key types


Revision tags: OPENBSD_3_5_BASE
# 1.13 06-Nov-2003 ho

Style nits.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.12 11-Sep-2002 ho

signed vs unsigned, some void * arithmetic, from -pedantic. niklas@ ok.


# 1.11 10-Jun-2002 ho

The dlopen() stuff goes away.


# 1.10 01-Jun-2002 deraadt

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


Revision tags: OPENBSD_3_1_BASE
# 1.9 06-Mar-2002 ho

Compile without warnings for older/newer OpenSSL.


# 1.8 06-Mar-2002 ho

Fix a couple of snprintf length bugs. Same problem <chris@stallion.oz.au>
found for policy passphrases.


# 1.7 05-Mar-2002 deraadt

handle constification from new openssl


# 1.6 23-Jan-2002 ho

the last few sprintf -> snprintf


# 1.5 26-Oct-2001 ho

libcrypto.h should be included. Sort includes.


Revision tags: OPENBSD_3_0_BASE
# 1.4 02-Jul-2001 deraadt

make the alpha happy


# 1.3 01-Jul-2001 niklas

Style


# 1.2 25-Jun-2001 angelos

Copyright update.


# 1.1 31-May-2001 angelos

Key handling routines.