Ignore:
Timestamp:
Jan 24, 2008 3:27:30 PM (16 years ago)
Author:
bennylp
Message:

More ticket #61: SRTP will try to use /dev/urandom as RNG if fcntl.h and unistd.h is present. If it fails, it will fallback to using rand()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/build/srtp/srtp_config.h

    r1736 r1738  
    2727    (defined(PJ_M_IA64) && PJ_M_IA64!=0) 
    2828#   define CPU_CISC         1 
    29 #   define HAVE_X86         1   /* use X86 inlined assembly code */ 
     29/* #   define HAVE_X86      1  use X86 inlined assembly code */ 
    3030#else 
    3131#   define CPU_RISC         1 
     
    114114#endif 
    115115 
    116 #define SIZEOF_UNSIGNED_LONG        (sizeof(unsigned long)) 
     116#define SIZEOF_UNSIGNED_LONG        8 
    117117#define SIZEOF_UNSIGNED_LONG_LONG   8 
    118118 
     
    156156/* #define DEV_URANDOM "/dev/urandom" */ 
    157157 
     158/* Only with PJSIP: 
     159 * Try to open PJ_DEV_URANDOM if present 
     160 */ 
     161#if defined(PJ_HAS_FCNTL_H) && defined(PJ_HAS_UNISTD_H) 
     162#   define PJ_DEV_URANDOM       "/dev/urandom" 
     163#endif 
     164 
    158165/* We have overridden libsrtp error mechanism, so these are not used. */ 
    159166/* #undef ERR_REPORTING_FILE */ 
Note: See TracChangeset for help on using the changeset viewer.