Make C_Sign error handling spec compliant.
authorWerner Koch <wk@gnupg.org>
Wed, 20 Feb 2019 08:29:42 +0000 (09:29 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 20 Feb 2019 08:29:42 +0000 (09:29 +0100)
commitcc91c168e4aecc292f95156a96d9fd96e449d8b1
tree0a7b0753cfcca9609f8803ccb7b55b63bff2bb0c
parent5de05acba42c6eb76589c6cbbcfb2d7adbf2dc56
Make C_Sign error handling spec compliant.

* src/slots.c (session_sign): Clear the flag sign-initialized flag on
error.
* src/p11-signinit.c (C_SignInit): Minor rework.
* src/p11-sign.c (C_Sign): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/p11-sign.c
src/p11-signinit.c
src/slots.c