Fix EVP_PKEY_FLAG_AUTOARGLEN behavior.
Converting check_autoarg from a macro to a function lost the behavior. Instead,
just move the logic into p_rsa.c which was the only EVP_PKEY implementation
that even needed the flag.
Also document this behavior on each of the functions. Make note of the out =
NULL case only returning the maximum output size, and not necessarily the
For testing, update example_sign to determine the signature size using the NULL
behavior rather than querying the RSA key.
Reviewed-by: Adam Langley <firstname.lastname@example.org>
6 files changed