Fixes a few potential segfauls and includes OpenSSL 1.1 compatibilty. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Fixes compilation with musl. Requires GCC 4.7 or newer, so broken for octeon. Signed-off-by: Jonas Gorski <jogo@openwrt.org>