chiark / gitweb /
server/keyset.c: Return more informative error codes from ks_decrypt.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 27 Jun 2011 08:31:48 +0000 (09:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Mar 2012 15:54:34 +0000 (15:54 +0000)
commit12a26b8b34df23103d4da6d7e40705485266a4d6
tree15273fd9f4513468cd3488c0166fbf8653dba082
parent90b20d79a9ec5b8a44bb92c8abdb21948aeb062c
server/keyset.c: Return more informative error codes from ks_decrypt.

Also, do what the commentary says and return zero and break the output
buffer if it's not big enough, rather than returning KSERR_DECRYPT.

The new error codes allow callers to make more sensible decisions about
whether to continue to search for other keys which might work better.
server/keyexch.c
server/keyset.c
server/tripe.h