Make sure PEM_def_callback() correctly handles negative buffer sizes; all uses
authormiod <miod@openbsd.org>
Wed, 23 Jul 2014 20:43:56 +0000 (20:43 +0000)
committermiod <miod@openbsd.org>
Wed, 23 Jul 2014 20:43:56 +0000 (20:43 +0000)
commit22ef553aae387132af612332a700c963f580fd98
treea72145021bb614ba56656df59c91025ca7ad4980
parentb19b5cc7cf960498d196b6f133d2a51271a8e79e
Make sure PEM_def_callback() correctly handles negative buffer sizes; all uses
within libcrypto are safe, but until we can change this function prototype to
use size_t instead of int, better be safe than sorry.

tweaks and ok guenther@
lib/libcrypto/pem/pem_lib.c
lib/libssl/src/crypto/pem/pem_lib.c