ssl-params-openssl.c revision e59faf65ce864fe95dc00f5d52b8323cdbd0608a
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "write-full.h"
#include "ssl-params.h"
#ifdef HAVE_OPENSSL
/* 2 or 5. Haven't seen their difference explained anywhere, but 2 is the
default.. */
#define DH_GENERATOR 2
static const char *ssl_last_error(void)
{
unsigned long err;
char *buf;
err = ERR_get_error();
if (err == 0)
return buf;
}
{
unsigned char *buf, *p;
int len;
i_fatal("DH_generate_parameters(bits=%d, gen=%d) failed: %s",
}
if (len < 0)
}
{
unsigned int i;
int bits;
for (i = 0; i < N_ELEMENTS(dh_param_bitsizes); i++)
bits = 0;
}
#endif