Browse Source

mconn-crypt: PKCS8 public key

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
d90a0bcb27
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/mconn-crypt.c

+ 2
- 1
src/mconn-crypt.c View File

@ -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;


Loading…
Cancel
Save