diff --git a/src/mconn-crypt.c b/src/mconn-crypt.c index ab9cf53..a69d800 100644 --- a/src/mconn-crypt.c +++ b/src/mconn-crypt.c @@ -145,7 +145,8 @@ static gchar *__mconn_get_public_key_as_pem(MConnCryptPrivate *priv) BIO *bm = BIO_new(BIO_s_mem()); /* generate PEM */ - PEM_write_bio_RSAPublicKey(bm, priv->key); + /* PEM_write_bio_RSAPublicKey(bm, priv->key); */ + PEM_write_bio_RSA_PUBKEY(bm, priv->key); /* get PEM as text */ char *oss_pubkey = NULL;