EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElSSHClient.Versions

TElSSHClient     See also    


 

This property specifies SSH versions which can be used during the connection

 
 

Declaration

[C#]
    TSSHVersions Versions;

    TSSHVersions = SmallInt;
      sbSSH1 = SmallInt(1);
      sbSSH2 = SmallInt(2);

[VB.NET]
    Property Versions As TSSHVersions

    TSSHVersions As SmallInt
      Const sbSSH1 As SmallInt = 1
      Const sbSSH2 As SmallInt = 2

[Pascal]
    property Versions : TSSHVersions;
    TSSHVersions = set of TSSHVersion;

[VB6]
    Sub IElSSHClientX.EnableVersion(Version As tagTxSSHVersion)
    Sub IElSSHClientX.DisableVersion(Version As tagTxSSHVersion)
    Function IElSSHClientX.IsVersionEnabled(Version As tagTxSSHVersion) As Boolean

[ActiveX]
    HRESULT _stdcall IElSSHClientX.EnableVersion( [in] TxSSHVersion Version );
    HRESULT _stdcall IElSSHClientX.DisableVersion( [in] TxSSHVersion Version );
    HRESULT _stdcall IElSSHClientX.IsVersionEnabled( [in] TxSSHVersion Version, [out, retval] VARIANT_BOOL * Value) ;     typedef long TxSSHVersions;

[DLL]
    not implemented;
 
 

Values:

[.NET] [Pascal] [ActiveX] Description
sbSSH1 = 1 sbSSH1 sbSSH1 = 1 SSH version 1
sbSSH2 = 2 sbSSH2 sbSSH2 = 2 SSH version 2
Declared in
[.NET] [Pascal]
Namespace: SBSSHCommon
Assembly: SecureBlackbox.SSHCommon
Unit: SBSSHCommon

 
 

Description

    Set this property before calling the Open method. It should contain the set of SSH versions which can be used during the secure connection.

    Note:  SSHv1 is vulnerable to the man-in-the-middle attack, so it must be used very carefully. We recommend you to use SSHv2 protocol if REALLY secure connection is required.

    Note:  Protocol version setting differs for VCL and ActiveX and .NET versions. To enable several SSH versions in ActiveX and .NET use bitwise OR operation, for example "sbSSH1 | sbSSH2".

    Example:  The following shows how to set the property for different SecureBlackbox editions:

[C#]
    TElSSHClient.Versions = SBSSHCommon.Unit.sbSSH1 | SBSSHCommon.Unit.sbSSH2

[VB.NET]
    TElSSHClient.Versions = SBSSHCommon.Unit.sbSSH1 Or SBSSHCommon.Unit.sbSSH2

[Pascal]
    TElSSHClient.Versions = sbSSH1 Or sbSSH2

[VB6]
    IElSSHClientX.EnableVersion SSHBBoxCli6.sbSSH1 Or SSHBBoxCli6.sbSSH1

[ActiveX]
    IElSSHClientX.EnableVersion(SSHBBoxCli6.sbSSH1 | SSHBBoxCli6.sbSSH1);

 
 

See also:     Version

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation