Refactoring SSL_Window