Changed paths:
M .clang-format
M providers/implementations/encode_decode/encode_key2any.c
Log Message:
-----------
encode_key2any: free key params on error in key_to_p8info and key_to_pubkey
key_to_spki_der_pub_bio leaked the str params blob when key_to_pubkey
failed, since X509_ALGOR_set0 only consumes it on success. Roll the
error-path free into key_to_pubkey and key_to_p8info (also called via
key_to_encp8), so all callers are covered.
Fixes: 8ae40cf57d21 "ENCODER: Refactor provider implementations, and some cleanup"
Complements: 576892d78f80 "Fix d2i_AutoPrivateKey_ex so that is uses the new decoder (and produces non legacy keys)."