Reworked password handling for import/export 48/77948/6
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Thu, 30 Jun 2016 14:32:22 +0000 (16:32 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 5 Jul 2016 08:54:37 +0000 (10:54 +0200)
commit15d4e181e6f671604ba2a8fe4678ec70e3c79a38
tree376c2db86e8ac7589a0c089c6d224c2ef139f6eb
parent840b872095e3c856ee8987f6cbc7d52796c3cbc9
Reworked password handling for import/export

- Always use callback.
- Return INVALID_PASSWORD for combinations that do support password,
  it was not required for import but was given in params.
- Return INVALID_PARAM for combinations that do not support password
  while it was given in params. For both, import and export.
- PKCS8 always requires a password.
- Added few special cases to differentiate INV_PARAM and INV_PASSWORD.

Change-Id: I171e89125600151e33178eadc3df6b6004987f3c
api/yaca/yaca_key.h
examples/key_password.c
src/debug.c
src/key.c
todo.txt