docs: def get_ssl(database):
      """ Returns SSL options for the selected engine """
  
      # Set available keys per engine
      if database['engine'] == 'postgresql':
          keys = ['sslmode', 'sslcert', 'sslkey',
                  'sslrootcert', 'sslcrl', 'sslcompression']
      else:
          keys = ['ssl_ca', 'ssl_capath', 'ssl_cert', 'ssl_key',
                  'ssl_cipher', 'ssl_check_hostname']
  
      # Loop thru keys
      ssl = {}
      for key in keys:
          value = database.get(key, None)
          if value is not None:
              ssl[key] = value
  
      return ssl