Support TLS, dynamic listeners and encrypted storage

For example, an empty implementation of this function would pass the test.