Adjust tests to use more detailed error codes 53/157853/9
authorPawel Kowalski <p.kowalski2@partner.samsung.com>
Thu, 26 Oct 2017 11:10:33 +0000 (13:10 +0200)
committerPawel Kowalski <p.kowalski2@partner.samsung.com>
Wed, 7 Feb 2018 10:17:05 +0000 (11:17 +0100)
commit93f72052bc238528d2c71141108deb656054df8d
tree2714890354500d409e85b74c89c699835c0e71cd
parentdd59446ad188fbb2ab1af579bc88d41dfc0ee2db
Adjust tests to use more detailed error codes

There was no distinction between different types of errors returned
by OpenSSL functions in the CKM. After improvement, in some cases,
INVALID_PARAM is returned instead of generic SERVER_ERROR. Some tests
concerning decryption and encryption had to be adjusted.

Change-Id: I23aee248aa4fbcfe02f878c629c9b8595642e2da
src/ckm/unprivileged/encryption-decryption.cpp