View | Details | Raw Unified | Return to bug 242861 | Differences between
and this patch

Collapse All | Expand All

(-)contrib/sendmail/src/tls.c (-5 / +2 lines)
Lines 745-762 Link Here
745
{
745
{
746
	RSA *rsa = NULL;
746
	RSA *rsa = NULL;
747
        BIGNUM *bn_rsa_r4;
747
        BIGNUM *bn_rsa_r4;
748
	int rc;
749
748
750
	bn_rsa_r4 = BN_new();
749
	bn_rsa_r4 = BN_new();
751
        rc = BN_set_word(bn_rsa_r4, RSA_F4);
750
	if ((bn_rsa_r4 != NULL) && BN_set_word(bn_rsa_r4, e) && (rsa = RSA_new()) != NULL)
752
	if ((bn_rsa_r4 != NULL) && BN_set_word(bn_rsa_r4, RSA_F4) && (rsa = RSA_new()) != NULL)
753
	{
751
	{
754
		if (!RSA_generate_key_ex(rsa, RSA_KEYLENGTH, bn_rsa_r4, NULL))
752
		if (!RSA_generate_key_ex(rsa, num, bn_rsa_r4, NULL))
755
		{
753
		{
756
			RSA_free(rsa);
754
			RSA_free(rsa);
757
			rsa = NULL;
755
			rsa = NULL;
758
		}
756
		}
759
		return NULL;
760
	}
757
	}
761
	BN_free(bn_rsa_r4);
758
	BN_free(bn_rsa_r4);
762
	return rsa;
759
	return rsa;

Return to bug 242861