summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cryptlib.c
diff options
context:
space:
mode:
authortb <>2024-10-31 15:26:05 +0000
committertb <>2024-10-31 15:26:05 +0000
commit1bd9124c67ffd97dba5b773edc5d2e6968f685a3 (patch)
tree96394e3a6d7b3176f0f83b321128355e5bd46c59 /src/lib/libcrypto/cryptlib.c
parent1d528d0e86e60fc19b6b5d1f0e186214175a9ab7 (diff)
downloadopenbsd-1bd9124c67ffd97dba5b773edc5d2e6968f685a3.tar.gz
openbsd-1bd9124c67ffd97dba5b773edc5d2e6968f685a3.tar.bz2
openbsd-1bd9124c67ffd97dba5b773edc5d2e6968f685a3.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