i2d_PUBKEY_bio
rv = i2d_PUBKEY_bio(mem_outpubkey, pkey);
if (!i2d_PUBKEY_bio(out, pkey))
int i2d_PUBKEY_bio(BIO *bp, const EVP_PKEY *pkey);