예제 #1
0
파일: HostKey.cs 프로젝트: x893/SharpSSH
 public HostKey(string host, byte[] key)
 {
     m_host = host;
     m_key = key;
     if (key[8] == 'd')
         m_type = HostKeyTypes.SSHDSS;
     else if (key[8] == 'r')
         m_type = HostKeyTypes.SSHRSA;
     else
         throw new JSchException("Invalid key type");
 }
예제 #2
0
파일: HostKey.cs 프로젝트: x893/SharpSSH
 internal HostKey(string host, HostKeyTypes type, byte[] key)
 {
     m_host = host;
     m_type = type;
     m_key = key;
 }