1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-03 06:45:37 -08:00
Commit Graph

30 Commits

Author SHA1 Message Date
bluhm
6d8d4e25cc Passing preallocated keys to d2i_RSAPublicKey() does not work anymore
with LibreSSL.  This caused a crash in isakmpd with libkeynote.
Better pass NULL and let libcrypto do the allocation.
from markus@; OK tb@
2022-11-30 10:40:23 +00:00
tb
2a12d66277 libkeynote: fix build with opaque RSA and DSA
This is a completely mechanical conversion to use accessors instead
of reaching inside the structs by hand.

ok millert
2022-01-14 09:08:03 +00:00
tb
23724049da Garbage collect historical setting of dsa->write_params = 1.
This is always 1 with modern libs and write_params will soon go away.
2022-01-11 12:14:07 +00:00
tb
5cc80106cc libkeynote: stop reaching into EVP_PKEY internals.
Use EVP_PKEY_get0_RSA() instead of pPublicKey->pkey.rsa.

Fix a couple of leaks in the vicinity: we need a reference on the RSA,
which is what keynote_free_key() frees, not on the EVP_PKEY. Also, don't
leak the entire certificate on success.

ok beck
2021-11-24 04:32:52 +00:00
mestre
072027b9a5 Prevent memory leak on sbuf by freeing it unconditionally and ensure
finalbuf is also free'd if kn_encode_base64 somehow fails

hint from tb@, OK millert@ and tb@
2017-05-09 13:52:45 +00:00
mmcc
421d8ebe57 Remove the rest of the scaffolding for nonexistent ElGamal support,
which has been disabled for sixteen years.

ok millert@, tb@, sthen@
2015-12-23 21:15:58 +00:00
mmcc
084ae0e1f5 Remove NULL casts and tweak style in a few places. A more invasive
version of this diff was reviewed by tb@
2015-12-23 21:07:37 +00:00
mmcc
629239003f Style cleanup and removal of needless casts. ok tb@ 2015-12-19 18:49:02 +00:00
mmcc
70f56b1796 More style improvement and removal of NULL/allocation casts.
ok tb@
2015-12-19 01:15:44 +00:00
mmcc
c871b564a6 Remove code for unimplemented ElGamel support that's been disabled for
sixteen years.

ok millert@, tb@, sthen@
2015-12-18 22:55:04 +00:00
mmcc
2fdcf7e133 Remove NULL-checks before free(). 2015-12-14 03:35:40 +00:00
deraadt
3a000eaf68 correct types for arguments to the x509 functions
ok markus
2013-11-13 16:28:17 +00:00
ray
d2336aa48e strlen fix.
OK jaredy@ and millert@.
2006-12-16 06:18:35 +00:00
msf
85616838cc Header cleanup.
ok hshoexer@
2004-06-29 11:35:56 +00:00
msf
e07584820c Make crufty configure stuff go away. Remove all unused code paths.
No change in binaries.

ok millert@ deraadt@ hshoexer@
2004-06-25 05:06:49 +00:00
ho
933f593459 RSA blinding on private keys. angelos@ ok. 2003-03-14 15:49:36 +00:00
angelos
f20c1bc6ba Make the stupid warnings go away. 2002-06-17 19:39:20 +00:00
deraadt
e27dd0714a use strchr() instead of index() 2002-06-09 02:12:55 +00:00
deraadt
f91597c4c4 snprintf and strlcpy cleanup; angelos ok 2002-05-27 06:29:14 +00:00
deraadt
5e4ac15889 with or without fee; received mail permitting this change from angelos 2001-09-03 20:14:51 +00:00
angelos
1c33844831 sync 1999-10-26 22:31:37 +00:00
angelos
dd34a27eff Roll back yesterday's commit, will wait until after 2.6. 1999-10-09 19:47:31 +00:00
angelos
f53dbc77b1 Move all ifdefs in header.h (instead of keynote.h), include header.h
in all files including keynote.h, update manpage.
1999-10-09 06:59:37 +00:00
angelos
9186b70c61 Update for version 2.0 1999-10-01 01:08:28 +00:00
angelos
efd92b975f Indentation. 1999-08-16 02:33:37 +00:00
angelos
25c064e754 Work with newest version of OpenSSL. 1999-08-13 22:49:54 +00:00
angelos
a8a6ad5193 Sanitize prototypes and variable extern definitions, remove
unnecessary header file, add prototypes header file for utility building.
1999-05-31 20:09:58 +00:00
angelos
ea56125752 Correct prototype and invocation, eliminate a warning or three. 1999-05-31 18:29:17 +00:00
angelos
2350ed37fd Export kn_keycompare() in the API, update the spec and man pages.
Note that the *.1 manpages will all be rolled into a single one soon.
1999-05-25 21:42:19 +00:00
angelos
983e9580c7 KeyNote version 2 trust-management system (security policy handling).
Utilities to follow.
1999-05-23 22:11:03 +00:00