15 if (!SSL_CTX_need_tmp_RSA(
ctx))
return 1;
20 BN_set_word(
e,RSA_F4);
22 res = (long) RSA_generate_key_ex(rsa,len,
e,NULL);
25 if (res == -1)
return 0;
29 res = SSL_CTX_set_tmp_rsa(
ctx,rsa);
44 bio = BIO_new_file(
dhfile,
"r");
46 dh = PEM_read_bio_DHparams(bio,0,0,0);
49 if (!SSL_CTX_set_tmp_dh(
ctx,dh))
return 0;
int ssl_params_dh(SSL_CTX *ctx, const char *dhfile)
int ssl_params_rsa(SSL_CTX *ctx, int len)
Header file to be used with sqmail; previously called ssl.h. (name clash)