Lines Matching defs:rsa
14 #include <openssl/rsa.h>
17 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa)
22 if (rsa == NULL) {
31 RSA_up_ref(rsa);
32 if (EVP_PKEY_assign_RSA(pkey, rsa) <= 0) {
33 RSA_free(rsa);
47 RSA *rsa = NULL;
61 rsa = d2i_RSAPrivateKey_bio(in, NULL);
64 rsa = PEM_read_bio_RSAPrivateKey(in, NULL,
71 if (rsa == NULL) {
75 ret = SSL_use_RSAPrivateKey(ssl, rsa);
76 RSA_free(rsa);
86 RSA *rsa;
89 if ((rsa = d2i_RSAPrivateKey(NULL, &p, (long)len)) == NULL) {
94 ret = SSL_use_RSAPrivateKey(ssl, rsa);
95 RSA_free(rsa);
99 int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa)
104 if (rsa == NULL) {
113 RSA_up_ref(rsa);
114 if (EVP_PKEY_assign_RSA(pkey, rsa) <= 0) {
115 RSA_free(rsa);
129 RSA *rsa = NULL;
143 rsa = d2i_RSAPrivateKey_bio(in, NULL);
146 rsa = PEM_read_bio_RSAPrivateKey(in, NULL,
153 if (rsa == NULL) {
157 ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa);
158 RSA_free(rsa);
169 RSA *rsa;
172 if ((rsa = d2i_RSAPrivateKey(NULL, &p, (long)len)) == NULL) {
177 ret = SSL_CTX_use_RSAPrivateKey(ctx, rsa);
178 RSA_free(rsa);