Le 9 oct. 2013 20:06, "Bastian Bittorf" <[email protected]> a écrit : > > * Felix Fietkau <[email protected]> [09.10.2013 19:54]: > > > it's not 'openssl' itself in my case, but the ability to handle 'sha256': > > I think we should probably just put a self-contained utility in tools/ > > and use that instead of relying on different kinds of host tools. > > So selfcompiling a small tool on the host? > > I'am unsure if this is needed, if we rely on > openssl-sha256 anyway? than it would be better to > check not only for the existence of 'openssl' but > for the ability to work with 'sha256'. > > openssl is available for on all host platforms anyway. > > if 'sha256' is not supportet (like on my install), > than the build should abort...
PostgreSQL has a self-contained BSD licensed sh256 implementation here: http://doxygen.postgresql.org/sha2_8c_source.html which could possibly be wrapped to read from a file and output the hash on stdout.
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
