def fingerprint_callback(fingerprint):
 config_print = fingerprint.replace(':', '_')
 if config.has_option('trusted_servers', config_print):
  return True
 response = raw_input(('Connect to %s y/N? ' % fingerprint))
 if response:
  config.set('trusted_servers', config_print, 'trusted')
 return (response == 'y')

def fingerprint_callback ( fingerprint ) : config_print = fingerprint . replace ( ':' , '_' ) if config . has_option ( 'trusted_servers' , config_print ) : return True response = raw_input ( ( 'Connect to %s y/N? ' % fingerprint ) ) if response : config . set ( 'trusted_servers' , config_print , 'trusted' ) return ( response == 'y' )
called during an ssl handshake with the fingerprint of the key of the remote host .