encode_key2any.c: Fix build error on OPENSSL_NO_DH and OPENSSL_NO_EC