Call cl_initialize_crypto() in cl_init()

pull/6/head
Shawn Webb 11 years ago
parent b1351d6bee
commit 78ee2250ae
  1. 2
      clambc/bcrun.c
  2. 2
      clamconf/clamconf.c
  3. 2
      clamd/clamd.c
  4. 2
      clamdscan/clamdscan.c
  5. 2
      freshclam/freshclam.c
  6. 2
      libclamav/others.c
  7. 2
      sigtool/sigtool.c

@ -242,8 +242,6 @@ int main(int argc, char *argv[])
int fd = -1;
unsigned tracelevel;
cl_initialize_crypto();
if(check_flevel())
exit(1);

@ -372,8 +372,6 @@ int main(int argc, char **argv)
unsigned int i, j;
struct cli_environment env;
cl_initialize_crypto();
opts = optparse(NULL, argc, argv, 1, OPT_CLAMCONF, 0, NULL);
if(!opts) {
printf("ERROR: Can't parse command line options\n");

@ -137,8 +137,6 @@ int main(int argc, char **argv)
sigaction(SIGUSR2, &sa, NULL);
#endif
cl_initialize_crypto();
if((opts = optparse(NULL, argc, argv, 1, OPT_CLAMD, 0, NULL)) == NULL) {
mprintf("!Can't parse command line options\n");
return 1;

@ -68,8 +68,6 @@ int main(int argc, char **argv)
struct sigaction sigact;
#endif
cl_initialize_crypto();
if((opts = optparse(NULL, argc, argv, 1, OPT_CLAMDSCAN, OPT_CLAMSCAN, NULL)) == NULL) {
mprintf("!Can't parse command line options\n");
return 2;

@ -298,8 +298,6 @@ main (int argc, char **argv)
if (check_flevel ())
exit (FCE_INIT);
cl_initialize_crypto();
if ((retcl = cl_init (CL_INIT_DEFAULT)))
{
mprintf ("!Can't initialize libclamav: %s\n", cl_strerror (retcl));

@ -286,6 +286,8 @@ int cl_init(unsigned int initoptions)
struct timeval tv;
unsigned int pid = (unsigned int) getpid();
cl_initialize_crypto();
{
unrar_main_header_t x;
if (((char*)&x.flags - (char*)&x) != 3) {

@ -2991,8 +2991,6 @@ int main(int argc, char **argv)
if(check_flevel())
exit(1);
cl_initialize_crypto();
if((ret = cl_init(CL_INIT_DEFAULT)) != CL_SUCCESS) {
mprintf("!Can't initialize libclamav: %s\n", cl_strerror(ret));
return -1;

Loading…
Cancel
Save