Esempio n. 1
0
 public HostKeyRepository getHostKeyRepository()
 {
     if (known_hosts == null)
     {
         known_hosts = new KnownHosts(this);
     }
     return(known_hosts);
 }
Esempio n. 2
0
 public void setKnownHosts(string filename)
 {
     if (known_hosts == null)
     {
         known_hosts = new KnownHosts(this);
     }
     if (known_hosts is KnownHosts)
     {
         lock (known_hosts)
         {
             ((KnownHosts)known_hosts).setKnownHosts(filename);
         }
     }
 }
Esempio n. 3
0
 public void setKnownHosts(Stream stream)
 {
     if (known_hosts == null)
     {
         known_hosts = new KnownHosts(this);
     }
     if (known_hosts is KnownHosts)
     {
         lock (known_hosts)
         {
             ((KnownHosts)known_hosts).setKnownHosts(stream);
         }
     }
 }
Esempio n. 4
0
 public void setHostKeyRepository(HostKeyRepository hkrepo)
 {
     known_hosts = hkrepo;
 }