diff options
author | tb <> | 2024-10-31 15:26:05 +0000 |
---|---|---|
committer | tb <> | 2024-10-31 15:26:05 +0000 |
commit | 2f2f748fde73822038414204b26d3d5f3b07d5ba (patch) | |
tree | 96394e3a6d7b3176f0f83b321128355e5bd46c59 /src/lib/libcrypto/cryptlib.c | |
parent | 3c4e7375bde814ea2663e65bf0caa42fe3b4a05d (diff) | |
download | openbsd-2f2f748fde73822038414204b26d3d5f3b07d5ba.tar.gz openbsd-2f2f748fde73822038414204b26d3d5f3b07d5ba.tar.bz2 openbsd-2f2f748fde73822038414204b26d3d5f3b07d5ba.zip |
Clean up the mess in i2d_EC_PRIVATEKEY()
Use a few local variables to make the checks at the start slightly less
unappealing. Use those to simplify the conditionals a bit and avoid a
particularly silly exit code. ok is set unless ret is 0, so what do you
think 'return (ok ? ret : 0);' returns? By the way, ret < 0 is an error
as well.
While most of the stuff in this file could use a lot more cleanup, I think
the first layer of cockroaches has been exterminated and there's even some
faint golden glimmer between the turds.
Let's shelve the biohazard warnings for now.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
0 files changed, 0 insertions, 0 deletions