libressl-portable/openbsd — pull request #15 by kinichiro (2014-12-08 04:23:27+00:00)
Title: EXPERIMENTAL for hpux build.

environment: HP-UX 11.31 ia64, gcc 4.7.1(HP AllianceOne version) or HP C/aC++

added 2 files.

- src/lib/libcrypto/crypto/arc4random_hpux.h - same as arc4random_solaris.h

- src/lib/libcrypto/crypto/getentropy_hpux.c - based on getentropy_solaris.c
change including sys/sha2.h to openssl/sha.h
remove defining SHA512_...
remove including link.h, sys/statfs.h, sys/loadavg.h
add including sys/pstat.h
in getentropy_urandom() routine,
- checking /dev/urandom only
in getentropy_fallback() routine,
- using sysconf(_SC_PAGESIZE) instead of getpagesize()
- using pstat_getprocvm() instead of dl_iterate_phdr()[*]
- using pstat_getdynamic() instead of getloadavg()[*]
[*] using alternate system calls, because
hpux doesn't have dl_iterate_phdr() and getloadavg().