- Added function to detect SSL connection.