hostapd: Fix compile with OpenSSL 1.1.0 + no deprecated APIs