Edit

kc3-lang/libressl/crypto/compat/arc4random.h

Branch :

  • Browse

    Commit

  • Author : Brent Cook
    Date : 2015-02-10 23:49:31
    Hash : fe3f7fc6
    Message : Add experimental AIX support. This includes a WIP failsafe issetugid for now, while research continues on the proper way to do this in a race-free fashion in AIX.

  • crypto/compat/arc4random.h
  • #ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H
    #define LIBCRYPTOCOMPAT_ARC4RANDOM_H
    
    #include <sys/param.h>
    
    #if defined(_AIX)
    #include "arc4random_aix.h"
    
    #elif defined(__FreeBSD__)
    #include "arc4random_freebsd.h"
    
    #elif defined(__hpux)
    #include "arc4random_hpux.h"
    
    #elif defined(__linux__)
    #include "arc4random_linux.h"
    
    #elif defined(__NetBSD__)
    #include "arc4random_netbsd.h"
    
    #elif defined(__APPLE__)
    #include "arc4random_osx.h"
    
    #elif defined(__sun)
    #include "arc4random_solaris.h"
    
    #elif defined(_WIN32)
    #include "arc4random_win.h"
    
    #else
    #error "No arc4random hooks defined for this platform."
    
    #endif
    
    #endif