Global.SimpleVerifier.verifyServerHostKey (hostname, port, serverHostKeyAlgorithm, serverHostKey)
Sourcecode in /home/hannes/helma/modules/helma/Ssh.js:
51:   verifyServerHostKey: function(hostname, port, serverHostKeyAlgorithm, serverHostKey) {
52:               var result = knownHosts.verifyHostkey(hostname, serverHostKeyAlgorithm, serverHostKey);
53:               switch (result) {
54:                   case SSHPKG.KnownHosts.HOSTKEY_IS_OK:
55:                       debug("verifyServerHostKey", "received known host key, proceeding");
56:                       return true;
57:                   case SSHPKG.KnownHosts.HOSTKEY_IS_NEW:
58:                       if (paranoid == true) {
59:                           debug("verifyServerHostKey", "received unknown host key, rejecting");
60:                          return false;
61:                      } else {
62:                          debug("verifyServerHostKey", "received new host key, adding temporarily to known hosts");
63:                          var hn = java.lang.reflect.Array.newInstance(java.lang.String, 1);
64:                          hn[0] = hostname;
65:                          knownHosts.addHostkey(hn, serverHostKeyAlgorithm, serverHostKey);
66:                          return true;
67:                      }
68:                  case SSHPKG.KnownHosts.HOSTKEY_HAS_CHANGED:
69:                      debug("verifyServerHostKey", "WARNING: host key has changed, rejecting");
70:                  default:
71:                      return false;
72:              }
73:              return;
74:          }