/[cvs]/eggdrop1.8/src/tls.c
ViewVC logotype

Diff of /eggdrop1.8/src/tls.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by pseudo, Tue Oct 19 12:13:33 2010 UTC revision 1.2 by pseudo, Tue Oct 19 14:20:56 2010 UTC
# Line 77  static int ssl_seed(void) Line 77  static int ssl_seed(void)
77    static char rand_file[120];    static char rand_file[120];
78    FILE *fh;    FILE *fh;
79    
80  #if OPENSSL_VERSION_NUMBER >= 0x00905100  #ifdef HAVE_RAND_STATUS
81    if (RAND_status())    if (RAND_status())
82      return 0;     /* Status OK */      return 0;     /* Status OK */
83  #endif  #endif
# Line 103  static int ssl_seed(void) Line 103  static int ssl_seed(void)
103      RAND_seed(&c, sizeof(c));      RAND_seed(&c, sizeof(c));
104      RAND_seed(stackdata, sizeof(stackdata));      RAND_seed(stackdata, sizeof(stackdata));
105    }    }
106  #if OPENSSL_VERSION_NUMBER >= 0x00905100  #ifdef HAVE_RAND_STATUS
107    if (!RAND_status())    if (!RAND_status())
108      return 2;   /* pseudo random data still not ehough */      return 2;   /* pseudo random data still not ehough */
109  #endif  #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23