only check return value if ssl is actually enabled, not just if it is compiled in