Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv572
Modified Files:
SslClientStream.cs
Log Message:
Added changes for check that the handshake is finished to the security properties.
Index: SslClientStream.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SslClientStream.cs 17 Feb 2004 17:52:12 -0000 1.6
--- SslClientStream.cs 17 Feb 2004 22:04:16 -0000 1.7
***************
*** 127,136 ****
public CipherAlgorithmType CipherAlgorithm
{
! get { return this.context.Cipher.CipherAlgorithmType;}
}
public int CipherStrength
{
! get { return this.context.Cipher.EffectiveKeyBits;}
}
--- 127,152 ----
public CipherAlgorithmType CipherAlgorithm
{
! get
! {
! if (this.context.HandshakeFinished)
! {
! return this.context.Cipher.CipherAlgorithmType;
! }
!
! return CipherAlgorithmType.None;
! }
}
public int CipherStrength
{
! get
! {
! if (this.context.HandshakeFinished)
! {
! return this.context.Cipher.EffectiveKeyBits;
! }
!
! return 0;
! }
}
***************
*** 142,151 ****
public HashAlgorithmType HashAlgorithm
{
! get { return this.context.Cipher.HashAlgorithmType; }
}
public int HashStrength
{
! get { return this.context.Cipher.HashSize * 8; }
}
--- 158,183 ----
public HashAlgorithmType HashAlgorithm
{
! get
! {
! if (this.context.HandshakeFinished)
! {
! return this.context.Cipher.HashAlgorithmType;
! }
!
! return HashAlgorithmType.None;
! }
}
public int HashStrength
{
! get
! {
! if (this.context.HandshakeFinished)
! {
! return this.context.Cipher.HashSize * 8;
! }
!
! return 0;
! }
}
***************
*** 154,158 ****
get
{
! return this.context.ServerSettings.Certificates[0].RSA.KeySize;
}
}
--- 186,195 ----
get
{
! if (this.context.HandshakeFinished)
! {
! return this.context.ServerSettings.Certificates[0].RSA.KeySize;
! }
!
! return 0;
}
}
***************
*** 160,164 ****
public ExchangeAlgorithmType KeyExchangeAlgorithm
{
! get { return this.context.Cipher.ExchangeAlgorithmType; }
}
--- 197,209 ----
public ExchangeAlgorithmType KeyExchangeAlgorithm
{
! get
! {
! if (this.context.HandshakeFinished)
! {
! return this.context.Cipher.ExchangeAlgorithmType;
! }
!
! return ExchangeAlgorithmType.None;
! }
}
|