Add common error handling function 87/72587/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 1 Jun 2016 15:02:22 +0000 (17:02 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 6 Jun 2016 09:00:35 +0000 (02:00 -0700)
commitcb46d681040f3e90007ef24ef3071cc942b0fdc7
tree485cc4ffb393b2cb41fa0deb69b95c949cbd9056
parent44ca7c56923e333c381660ee992f66e64b31f2ec
Add common error handling function

The function tries to convert openssl errors to yaca ones. If it succeeds it
removes the remaining errors from the queue. Otherwise it dumps them. It should
be called after each openssl failure.

Change-Id: I88c557e8d42f9ea70d5a8b25f2bd3181534e4ff8
src/debug.c
src/internal.h