Good hygiene with size_t output argument.
authorViktor Dukhovni <openssl-users@dukhovni.org>
Sat, 21 Nov 2015 05:59:07 +0000 (00:59 -0500)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Sat, 21 Nov 2015 10:27:35 +0000 (05:27 -0500)
commit5c649375dd756dcd0b0c81a14a04cd8e87f198c1
tree0203818748c0e33b61ea867c829cf2b8fff4c1d8
parent22a34c2fab39c38cac4a22a0e15ab9a1fd98f57c
Good hygiene with size_t output argument.

Though the callers check the function return value and ignore the
size_t output argument on failure, it is still often not ideal to
store (-1) in size_t on error.  That might signal an unduly large
buffer.  Instead set the size_t to 0, to indicate no space.

Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/s3_cbc.c