Lines Matching defs:rsa
23 /* Example using an in memory PEM user certificate and RSA key to retrieve an
50 RSA *rsa = NULL;
96 /*replace the XXX with the actual RSA key*/
98 "-----BEGIN RSA PRIVATE KEY-----\n"\
115 "-----END RSA PRIVATE KEY-----\n";
141 /*create a bio for the RSA key*/
147 /*read the key bio into an RSA object*/
148 rsa = PEM_read_bio_RSAPrivateKey(kbio, NULL, 0, NULL);
149 if(rsa == NULL) {
153 /*tell SSL to use the RSA key from memory*/
154 ret = SSL_CTX_use_RSAPrivateKey((SSL_CTX*)sslctx, rsa);
166 if(rsa)
167 RSA_free(rsa);