private static void RegisterIocProperties()
        {
            if (m_bPropRegistered)
            {
                return;
            }
            m_bPropRegistered = true;

            string[] vScpSftp = new string[] { "SCP", "SFTP" };

            IocPropertyInfoPool.Add(new IocPropertyInfo("HostKey",
                                                        typeof(string), "Fingerprint of expected SSH host key", vScpSftp));

            IocPropertyInfoPool.Add(new IocPropertyInfo("SSHTimeout",
                                                        typeof(string), "SSH Connection Timeout [ms]", vScpSftp));

            IocPropertyInfoPool.Add(new IocPropertyInfo("SSHKey",
                                                        typeof(string), "SSH Private Key", vScpSftp));
        }
        private static void RegisterPlugin()
        {
            if (propertiesRegistered)
            {
                return;
            }

            propertiesRegistered = true;

            var creator = new SshRequestCreator();

            foreach (var protocol in protocols)
            {
                System.Net.WebRequest.RegisterPrefix(protocol, creator);
            }

            IocPropertyInfoPool.Add(new IocPropertyInfo(PropertyKeys.PrivateKey,
                                                        typeof(string), "SSH private key path", protocols));
            IocPropertyInfoPool.Add(new IocPropertyInfo(PropertyKeys.HostKey,
                                                        typeof(string), "Fingerprint of expected SSH host key", protocols));
        }
Exemple #3
0
        static void RegisterIocProperties()
        {
            if (m_bPropRegistered)
            {
                return;
            }
            m_bPropRegistered = true;

            string[] vScpSftp = { "SCP", "SFTP" };



            IocPropertyInfoPool.Add(new IocPropertyInfo("HostKey",
                                                        typeof(string), "Fingerprint of expected SSH host key", vScpSftp));

            /* later...
             * IocPropertyInfoPool.Add(new IocPropertyInfo("PrivateKey",
             *                  typeof(string), "SSH private key path", vScpSftp));
             *          IocPropertyInfoPool.Add(new IocPropertyInfo("Passphrase",
             *                  typeof(string), "Passphrase for encrypted private keys and client certificates",
             *  vScpSftp));
             */
        }