mtree(8): Convert to LibreSSL hash API.
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 17 Apr 2019 03:43:57 +0000 (06:43 +0300)
committerzrj <zrj@dragonflybsd.org>
Wed, 24 Apr 2019 17:18:35 +0000 (20:18 +0300)
commita512a68cfd0a387f2f0cd67487cee6e85014fc84
tree5349acb504d6c6c3e9b2579e33178651d160990b
parent193f58b865d149b40a0c74c2df3b9050d4efab68
mtree(8): Convert to LibreSSL hash API.

Add new function dohash() that handles md5, rmd160 and all sha variants.
This change makes SHA384 available to use too. Utility is too complicated
and need to be split up.

While there, simplify crunchgen rescue build.
usr.sbin/mtree/Makefile
usr.sbin/mtree/compare.c
usr.sbin/mtree/create.c
usr.sbin/mtree/extern.h
usr.sbin/mtree/hash.c [new file with mode: 0644]