diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-13 20:29:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-13 20:29:56 +0000 |
commit | 2360f4cf95ff88e7f4e2d704da78b451591c37ec (patch) | |
tree | 6af14c4f1dce8c8abca13b11afe26b28ac916df0 /usr.bin/mg/main.c | |
parent | 983934cbfbde544ead58b7b183320e16748f7c31 (diff) |
Add many missing error checks (probably not exhaustive, but a good start):
- make VKO_compute_key() no longer void so that it can return failure.
- fix unchecked allocations in too many routines to mention /-:
- fix unchecked BN operations in gost2001_do_sign(), gost2001_do_verify(),
VKO_compute_key().
- fix the gost2001_do_sign() interface violation by having its sole caller
free the BIGNUM it passes to that function by itself, instead of having
the callee do this.
Reviewed (except for the last item) by Dmitry Eremin-Solenikov.
Diffstat (limited to 'usr.bin/mg/main.c')
0 files changed, 0 insertions, 0 deletions