| 3677 |
|
|
| 3678 |
|
if ((file = BIO_new_file(block_state.file.buf, "r")) == NULL) |
| 3679 |
|
{ |
| 3680 |
< |
conf_error_report("Ignoring rsa_public_key_file -- file doesn't exist"); |
| 3680 |
> |
ilog(LOG_TYPE_IRCD, "Ignoring rsa_public_key_file -- file doesn't exist"); |
| 3681 |
|
break; |
| 3682 |
|
} |
| 3683 |
|
|
| 3684 |
|
if ((pkey = PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL)) == NULL) |
| 3685 |
< |
conf_error_report("Ignoring rsa_public_key_file -- key invalid; check key syntax."); |
| 3685 |
> |
ilog(LOG_TYPE_IRCD, "Ignoring rsa_public_key_file -- key invalid; check key syntax"); |
| 3686 |
|
|
| 3687 |
< |
if (RSA_size(ServerInfo.rsa_private_key) > 128) |
| 3688 |
< |
conf_error_report("Ignoring rsa_public_key_file -- key size must be 1024 or below"); |
| 3687 |
> |
if (RSA_size(pkey) > 128) |
| 3688 |
> |
ilog(LOG_TYPE_IRCD, "Ignoring rsa_public_key_file -- key size must be 1024 or below"); |
| 3689 |
|
else |
| 3690 |
|
conf->rsa_public_key = pkey; |
| 3691 |
|
|