Convert ext/openssl to HNI

Part of #1480