Hello,
I'd like to know how to retrieve RSA parameters and keys from SSL_CTX. I 'd
like to put them into RSA *rsa structure in order to sign buffered data by
using :

int RSA_sign(int type, const unsigned char *m, unsigned int m_len,
    unsigned char *sigret, unsigned int *siglen, RSA *rsa);


I found this one, but it does the reverse...i.e from RSA* to SSL_CTX :

int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);


Thanks for your help,

ikuzar.

Reply via email to