Unify errors treating from OpenSSL functions. 55/232155/6
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 28 Apr 2020 14:33:25 +0000 (16:33 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Fri, 26 Jun 2020 15:36:20 +0000 (17:36 +0200)
commitf2705161226e3c67744afd966d752247b1c90f09
tree17c87daf40ae53e3db7a7e1fe8fa72855f9e702e
parent1490d0cb8b5ef6cc65b12e2ec82b63d61faa1cfb
Unify errors treating from OpenSSL functions.

Have 3 lines block almost everywhere where we call OpenSSL function
and want to handle its error code. Always ERROR_DUMP in such a case.

Also some other unification of OpenSSL returns where we don't care
about its errors (loading keys where errors are expected due to
autodetection).

Change-Id: Ie9e2f19bae099cfaddaa9c45a6de985f09b3f97b
src/crypto.c
src/digest.c
src/encrypt.c
src/key.c
src/sign.c