openssh/openbsd-compat
Damien Miller 42c5ec4b97 refactor libcrypto initialisation
Don't call OpenSSL_add_all_algorithms() unless OpenSSL actually
supports it.

Move all libcrypto initialisation to a single function, and call that
from seed_rng() that is called early in each tool's main().

Prompted by patch from Rosen Penev
2018-11-23 10:42:05 +11:00
..
regress Remove remaining now-obsolete cvs $Ids. 2018-02-15 20:06:19 +11:00
arc4random.c prefer to use getrandom() for PRNG seeding 2018-04-13 13:32:23 +10:00
base64.c - otto@cvs.openbsd.org 2006/10/21 09:55:03 2007-10-26 16:17:24 +10:00
base64.h Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
basename.c - (dtucker) [openbsd-compat/basename.c] Include errno.h. 2006-08-24 19:41:03 +10:00
bcrypt_pbkdf.c Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
bindresvport.c initialise salen in binresvport_sa 2016-05-10 09:51:06 +10:00
blf.h - [configure.ac openbsd-compat/Makefile.in openbsd-compat/bcrypt_pbkdf.c] 2013-12-07 11:51:51 +11:00
blowfish.c Wrap blf.h include in ifdef. From FreeBSD. 2015-04-07 10:47:15 +10:00
bsd-asprintf.c Don't avoid our *sprintf replacements. 2018-10-12 16:58:47 +11:00
bsd-closefrom.c correct snprintf truncation check in closefrom() 2018-07-27 14:20:09 +10:00
bsd-cygwin_util.c cygwin: add missing stdarg.h include 2018-08-13 13:01:18 -07:00
bsd-cygwin_util.h Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
bsd-err.c Add missing includes for bsd-err.c. 2017-08-27 08:55:40 +10:00
bsd-flock.c typo: missing ; 2018-02-26 14:39:14 +11:00
bsd-getline.c Defer setting bufsiz in getdelim. 2018-07-06 13:32:02 +10:00
bsd-getpagesize.c Include includes.h for HAVE_GETPAGESIZE. 2017-10-31 10:09:33 +11:00
bsd-getpeereid.c - (dtucker) [configure.ac openbsd-compat/bsd-getpeereid.c] Bug #1287: Use 2007-03-21 21:39:57 +11:00
bsd-malloc.c Handle calloc(0,x) where different from malloc. 2018-02-26 00:09:04 +11:00
bsd-misc.c Remove unused variable in _ssh_compat_fflush. 2018-09-22 14:41:24 +10:00
bsd-misc.h Check for and work around buggy fflush(NULL). 2018-03-05 19:28:08 +11:00
bsd-nextstep.c Strip trailing whitespace. 2016-08-02 09:44:25 +10:00
bsd-nextstep.h Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
bsd-openpty.c Remove UNICOS code missed during removal. 2018-03-26 13:24:28 +11:00
bsd-poll.c Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
bsd-poll.h expose POLLHUP and POLLNVAL for netcat.c 2015-08-21 15:45:02 +10:00
bsd-setres_id.c Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
bsd-setres_id.h Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
bsd-signal.c Move signal compat code into bsd-signal.{c,h} 2018-02-11 21:24:48 +11:00
bsd-signal.h Move signal compat code into bsd-signal.{c,h} 2018-02-11 21:24:48 +11:00
bsd-snprintf.c Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
bsd-statvfs.c bsd-statvfs: include sys/vfs.h, check for f_flags. 2018-02-26 00:09:04 +11:00
bsd-statvfs.h bsd-statvfs: include sys/vfs.h, check for f_flags. 2018-02-26 00:09:04 +11:00
bsd-waitpid.c Replace spaces with tabs. 2016-08-02 10:01:52 +10:00
bsd-waitpid.h Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
chacha_private.h - (djm) [openbsd-compat/arc4random.c openbsd-compat/chacha_private.h] Pull 2013-10-09 10:42:32 +11:00
charclass.h - djm@cvs.openbsd.org 2010/09/25 09:30:16 2010-10-07 21:39:17 +11:00
daemon.c - (dtucker) [auth-passwd.c auth1.c auth2-kbdint.c auth2-none.c auth2-passwd.c 2009-03-08 11:40:27 +11:00
dirname.c - (dtucker) [openbsd-compat/daemon.c] Update from OpenBSD 1.10 -> 1.13. 2005-11-10 17:33:00 +11:00
explicit_bzero.c Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
fake-rfc2553.c Replace spaces with tabs. 2016-08-02 10:01:52 +10:00
fake-rfc2553.h Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
fmt_scaled.c sync fmt_scaled.c 2018-05-14 14:40:08 +10:00
freezero.c Include stdlib.h for declaration of free. 2018-07-11 12:14:09 +10:00
getcwd.c Repair $OpenBSD markers. 2016-08-02 09:06:27 +10:00
getgrouplist.c Repair $OpenBSD markers. 2016-08-02 09:06:27 +10:00
getopt_long.c - (dtucker) [openbsd-compat/getopt.h openbsd-compat/getopt_long.c 2013-05-10 18:08:49 +10:00
getopt.h - (dtucker) [openbsd-compat/getopt.h] Remove unneeded bits. 2013-05-17 16:03:48 +10:00
getrrsetbyname-ldns.c avoid uninitialised free of ldns_res 2014-12-30 08:16:11 +11:00
getrrsetbyname.c - (dtucker) [INSTALL LICENCE configure.ac openbsd-compat/Makefile.in 2011-11-04 11:25:24 +11:00
getrrsetbyname.h - jakob@cvs.openbsd.org 2007/10/11 18:36:41 2007-10-26 16:26:46 +10:00
glob.c Prevent name collisions with system glob (bz#2463) 2015-10-29 10:48:23 +11:00
glob.h Prevent name collisions with system glob (bz#2463) 2015-10-29 10:48:23 +11:00
inet_aton.c whitespace at EOL 2016-05-31 16:45:28 +10:00
inet_ntoa.c - (dtucker) [openbsd-compat/inet_nto.c] Update from OpenBSD 1.4 -> 1.6. 2005-11-10 17:23:54 +11:00
inet_ntop.c - otto@cvs.openbsd.org 2008/12/09 19:38:38 2011-09-23 11:16:09 +10:00
kludge-fd_set.c - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c] 2014-10-01 09:43:07 +10:00
libressl-api-compat.c fix compilation with openssl built without ECC 2018-11-09 14:19:24 +11:00
Makefile.in adapt -portable to OpenSSL 1.1x API 2018-09-13 12:13:50 +10:00
md5.c support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
md5.h support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
mktemp.c - (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm 2011-10-01 18:46:12 +10:00
openbsd-compat.h Add implementation of getline. 2018-07-02 21:36:31 +10:00
openssl-compat.c refactor libcrypto initialisation 2018-11-23 10:42:05 +11:00
openssl-compat.h refactor libcrypto initialisation 2018-11-23 10:42:05 +11:00
port-aix.c Some AIX fixes; report from Michael Felt 2018-08-11 18:08:45 -07:00
port-aix.h Adapt portable to legacy buffer API removal 2018-07-10 19:39:52 +10:00
port-irix.c Replace spaces with tabs. 2016-08-02 10:01:52 +10:00
port-irix.h Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
port-linux.c Include stdlib.h. 2018-09-07 14:01:39 +10:00
port-linux.h Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
port-net.c Fix tunnel forwarding broken in 7.7p1 2018-04-13 13:38:06 +10:00
port-net.h fix rdomain compilation errors 2017-10-27 08:42:33 +11:00
port-solaris.c Use !=NULL instead of >0 for getdefaultproj. 2016-10-26 08:43:25 +11:00
port-solaris.h Remove obsolete CVS $Id from source files. 2016-08-17 14:08:42 +10:00
port-uw.c check for NULL return from shadow_pw() 2018-10-11 11:03:54 +11:00
port-uw.h 20070326 2007-03-26 09:35:28 -07:00
pwcache.c - (dtucker) [openbsd-compat/pwcache.c] Shrink ifdef area to prevent unused 2010-01-16 13:53:52 +11:00
readpassphrase.c Move signal compat code into bsd-signal.{c,h} 2018-02-11 21:24:48 +11:00
readpassphrase.h - (dtucker) [openbsd-compat/readpassphrase.h] Update from OpenBSD 1.3 -> 1.5. 2005-11-10 16:58:47 +11:00
reallocarray.c Wrap stdint.h includes in ifdefs. 2015-02-23 03:07:24 +11:00
realpath.c fix compilation on systems without SYMLOOP_MAX 2015-10-15 15:48:28 -07:00
recallocarray.c Wrap stdint.h include in #ifdef. 2017-06-09 13:36:29 +10:00
rmd160.c Wrap endian.h include inside ifdef (bz#2370). 2015-04-17 10:40:23 +10:00
rmd160.h support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
rresvport.c - (djm) [openbsd-compat/rresvport.c] Add unistd.h for missing close() 2008-07-14 12:03:27 +10:00
setenv.c - (djm) [openbsd-compat/setenv.c] Forklift upgrade, including inclusion 2011-09-23 11:26:34 +10:00
setproctitle.c Initial len for the fmt=NULL case. 2018-09-07 14:06:57 +10:00
sha1.c support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
sha1.h support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
sha2.c Many typo fixes from Karsten Weiss 2018-04-10 10:19:02 +10:00
sha2.h Repair $OpenBSD marker. 2016-08-02 09:02:42 +10:00
sigact.c - (djm) [openbsd-compat/sigact.c] Avoid NULL derefs in ancient sigaction 2008-06-15 10:55:34 +10:00
sigact.h - (dtucker) [openbsd-compat/sigact.h] Update from OpenBSD 1.2 -> 1.3. 2005-11-10 19:43:48 +11:00
strcasestr.c Add strcasestr to compat library. 2016-12-13 10:23:03 +11:00
strlcat.c - (dtucker) [openbsd-compat/{LOTS}] Move the "OPENBSD ORIGINAL" markers to 2005-11-10 16:18:56 +11:00
strlcpy.c - millert@cvs.openbsd.org 2006/05/05 15:27:38 2011-09-23 10:38:11 +10:00
strmode.c - (dtucker) [openbsd-compat/strmode.c] Update from OpenBSD 1.5 -> 1.7. 2005-11-10 16:38:54 +11:00
strndup.c Use includes.h instead of config.h. 2018-04-29 17:54:12 +10:00
strnlen.c Use includes.h instead of config.h. 2018-04-29 17:54:12 +10:00
strptime.c - (dtucker) [configure.ac openbsd-compat/Makefile.in 2010-08-16 13:15:23 +10:00
strsep.c - (dtucker) [openbsd-compat/strsep.c] Update from OpenBSD 1.5 -> 1.6. 2005-11-10 17:28:35 +11:00
strtoll.c - (dtucker) [openbsd-compat/{realpath.c,stroll.c,rresvport.c}] $OpenBSD tag. 2005-11-12 14:28:05 +11:00
strtonum.c - (dtucker) [openbsd-compat/strtonum.c] Include stdlib.h for strtoll, 2006-08-05 16:27:20 +10:00
strtoul.c - (dtucker) [openbsd-compat/strtoul.c] Update from OpenBSD 1.5 -> 1.7. 2005-11-10 16:48:10 +11:00
strtoull.c - (dtucker) [configure.ac openbsd-compat/Makefile.in openbsd-compat/strtoull.c 2013-02-15 12:13:01 +11:00
sys-queue.h Undef a few new macros in sys-queue.h. 2018-07-14 16:49:01 +10:00
sys-tree.h - (dtucker) [configure.ac openbsd-compat/sys-tree.h] Test if compiler allows 2013-02-08 11:50:09 +11:00
timingsafe_bcmp.c - matthew@cvs.openbsd.org 2010/09/24 13:33:00 2010-10-07 21:25:27 +11:00
vis.c Move DEF_WEAK into defines.h. 2016-10-15 05:51:12 +11:00
vis.h Update vis.h and vis.c from OpenBSD. 2016-06-03 16:03:44 +10:00
xcrypt.c in pick_salt() avoid dereference of NULL passwords 2018-10-10 14:57:00 +11:00