[pgsqlclient-checkins] pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handsha
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17779 Modified Files: TlsClientCertificate.cs TlsClientCertificateVerify.cs TlsClientFinished.cs TlsClientHello.cs TlsClientKeyExchange.cs TlsServerCertificate.cs TlsServerCertificateRequest.cs TlsServerFinished.cs TlsServerHello.cs TlsServerHelloDone.cs TlsServerKeyExchange.cs Log Message: 2004-03-03 Carlos Guzman Alvarez <car...@te...> * Mono.Security.Protocol.Tls/SslServerStream.cs: - Implemented flow for the server handshake. * Mono.Security.Protocol.Tls/Ciphersuite.cs: * Mono.Security.Protocol.Tls/TlsCiphersuite.cs: * Mono.Security.Protocol.Tls/ClientRecordProtocol.cs: * Mono.Security.Protocol.Tls/ServerRecordProtocol.cs: * Mono.Security.Protocol.Tls/SslClientStream.cs: * Mono.Security.Protocol.Tls/TlsServerSettings.cs: * Mono.Security.Protocol.Tls/TlsClientSettings.cs: * Mono.Security.Protocol.Tls/ClientContext.cs: * Mono.Security.Protocol.Tls.Handshake.Client/*.cs: * Mono.Security.Protocol.Tls.Handshake.Server/*.cs: - Changes for make use of the renamed classes and enums. * Mono.Security.Protocol.Tls.Handshake/TlsHandshakeType.cs: - Renamed to HandshakeType.cs (Enum and file) * Mono.Security.Protocol.Tls.Handshake/TlsHandshakeMessage.cs: - Renamed to HandshakeMessage.cs (Class and file) * Mono.Security.Protocol.Tls.Handshake/TlsClientCertificateType.cs: - Renamed to ClientCertificateType.cs (Enum and file) * Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs: - Renamed to Alert (Class, enums and file) * Mono.Security.Protocol.Tls/TlsContentType.cs: - Renamed to ContentType.cs ( Enum and file ) * Mono.Security.Protocol.Tls/TlsCiphersuiteCollection.cs: - Renamed to CiphersuiteCollection.cs ( Class and file ) * Mono.Security.Protocol.Tls/TlsCiphersuiteFactory.cs: - Renamed to CiphersuiteCollection.cs ( Class and file ) * Mono.Security.Protocol.Tls/TlsSslHandshakeHash.cs: - Renamed to SslHandshakeHash.cs ( Class and file ) * Mono.Security.Protocol.Tls/TlsSslCipherSuite.cs: - Renamed to SslCipherSuite.cs ( Class and file ) Index: TlsClientCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsClientCertificate.cs 23 Feb 2004 12:18:52 -0000 1.4 --- TlsClientCertificate.cs 3 Mar 2004 16:14:40 -0000 1.5 *************** *** 30,39 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientCertificate : TlsHandshakeMessage { #region Constructors public TlsClientCertificate(Context context) ! : base(context, TlsHandshakeType.Certificate) { } --- 30,39 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientCertificate : HandshakeMessage { #region Constructors public TlsClientCertificate(Context context) ! : base(context, HandshakeType.Certificate) { } Index: TlsClientCertificateVerify.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TlsClientCertificateVerify.cs 23 Feb 2004 12:18:52 -0000 1.2 --- TlsClientCertificateVerify.cs 3 Mar 2004 16:14:40 -0000 1.3 *************** *** 31,40 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientCertificateVerify : TlsHandshakeMessage { #region Constructors public TlsClientCertificateVerify(Context context) ! : base(context, TlsHandshakeType.Finished) { } --- 31,40 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientCertificateVerify : HandshakeMessage { #region Constructors public TlsClientCertificateVerify(Context context) ! : base(context, HandshakeType.Finished) { } Index: TlsClientFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientFinished.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TlsClientFinished.cs 23 Feb 2004 12:18:52 -0000 1.2 --- TlsClientFinished.cs 3 Mar 2004 16:14:40 -0000 1.3 *************** *** 30,39 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientFinished : TlsHandshakeMessage { #region Constructors public TlsClientFinished(Context context) ! : base(context, TlsHandshakeType.Finished) { } --- 30,39 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientFinished : HandshakeMessage { #region Constructors public TlsClientFinished(Context context) ! : base(context, HandshakeType.Finished) { } *************** *** 56,60 **** { // Compute handshake messages hashes ! HashAlgorithm hash = new TlsSslHandshakeHash(this.Context.MasterSecret); TlsStream data = new TlsStream(); --- 56,60 ---- { // Compute handshake messages hashes ! HashAlgorithm hash = new SslHandshakeHash(this.Context.MasterSecret); TlsStream data = new TlsStream(); Index: TlsClientHello.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsClientHello.cs 23 Feb 2004 12:18:52 -0000 1.4 --- TlsClientHello.cs 3 Mar 2004 16:14:40 -0000 1.5 *************** *** 28,32 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientHello : TlsHandshakeMessage { #region Fields --- 28,32 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientHello : HandshakeMessage { #region Fields *************** *** 39,43 **** public TlsClientHello(Context context) ! : base(context, TlsHandshakeType.ClientHello) { } --- 39,43 ---- public TlsClientHello(Context context) ! : base(context, HandshakeType.ClientHello) { } Index: TlsClientKeyExchange.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientKeyExchange.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TlsClientKeyExchange.cs 23 Feb 2004 12:18:52 -0000 1.2 --- TlsClientKeyExchange.cs 3 Mar 2004 16:14:40 -0000 1.3 *************** *** 29,33 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientKeyExchange : TlsHandshakeMessage { #region Constructors --- 29,33 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsClientKeyExchange : HandshakeMessage { #region Constructors *************** *** 35,39 **** public TlsClientKeyExchange (Context context) : base(context, ! TlsHandshakeType.ClientKeyExchange) { } --- 35,39 ---- public TlsClientKeyExchange (Context context) : base(context, ! HandshakeType.ClientKeyExchange) { } Index: TlsServerCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsServerCertificate.cs 23 Feb 2004 12:18:52 -0000 1.4 --- TlsServerCertificate.cs 3 Mar 2004 16:14:40 -0000 1.5 *************** *** 35,39 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerCertificate : TlsHandshakeMessage { #region Fields --- 35,39 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerCertificate : HandshakeMessage { #region Fields *************** *** 46,50 **** public TlsServerCertificate(Context context, byte[] buffer) ! : base(context, TlsHandshakeType.Certificate, buffer) { } --- 46,50 ---- public TlsServerCertificate(Context context, byte[] buffer) ! : base(context, HandshakeType.Certificate, buffer) { } Index: TlsServerCertificateRequest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificateRequest.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TlsServerCertificateRequest.cs 23 Feb 2004 12:18:52 -0000 1.2 --- TlsServerCertificateRequest.cs 3 Mar 2004 16:14:40 -0000 1.3 *************** *** 29,38 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerCertificateRequest : TlsHandshakeMessage { #region Fields ! private TlsClientCertificateType[] certificateTypes; ! private string[] distinguisedNames; #endregion --- 29,38 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerCertificateRequest : HandshakeMessage { #region Fields ! private ClientCertificateType[] certificateTypes; ! private string[] distinguisedNames; #endregion *************** *** 41,45 **** public TlsServerCertificateRequest(Context context, byte[] buffer) ! : base(context, TlsHandshakeType.ServerHello, buffer) { } --- 41,45 ---- public TlsServerCertificateRequest(Context context, byte[] buffer) ! : base(context, HandshakeType.ServerHello, buffer) { } *************** *** 72,80 **** int typesCount = this.ReadByte(); ! this.certificateTypes = new TlsClientCertificateType[typesCount]; for (int i = 0; i < typesCount; i++) { ! this.certificateTypes[i] = (TlsClientCertificateType)this.ReadByte(); } --- 72,80 ---- int typesCount = this.ReadByte(); ! this.certificateTypes = new ClientCertificateType[typesCount]; for (int i = 0; i < typesCount; i++) { ! this.certificateTypes[i] = (ClientCertificateType)this.ReadByte(); } Index: TlsServerFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TlsServerFinished.cs 25 Feb 2004 15:42:17 -0000 1.3 --- TlsServerFinished.cs 3 Mar 2004 16:14:40 -0000 1.4 *************** *** 30,39 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerFinished : TlsHandshakeMessage { #region Constructors public TlsServerFinished(Context context, byte[] buffer) ! : base(context, TlsHandshakeType.ServerHello, buffer) { } --- 30,39 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerFinished : HandshakeMessage { #region Constructors public TlsServerFinished(Context context, byte[] buffer) ! : base(context, HandshakeType.ServerHello, buffer) { } *************** *** 61,65 **** { // Compute handshake messages hashes ! HashAlgorithm hash = new TlsSslHandshakeHash(this.Context.MasterSecret); TlsStream data = new TlsStream(); --- 61,65 ---- { // Compute handshake messages hashes ! HashAlgorithm hash = new SslHandshakeHash(this.Context.MasterSecret); TlsStream data = new TlsStream(); Index: TlsServerHello.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerHello.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TlsServerHello.cs 23 Feb 2004 12:18:52 -0000 1.3 --- TlsServerHello.cs 3 Mar 2004 16:14:40 -0000 1.4 *************** *** 27,31 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerHello : TlsHandshakeMessage { #region Fields --- 27,31 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerHello : HandshakeMessage { #region Fields *************** *** 41,45 **** public TlsServerHello(Context context, byte[] buffer) ! : base(context, TlsHandshakeType.ServerHello, buffer) { } --- 41,45 ---- public TlsServerHello(Context context, byte[] buffer) ! : base(context, HandshakeType.ServerHello, buffer) { } *************** *** 126,130 **** this.Context.SupportedCiphers.Clear(); this.Context.SupportedCiphers = null; ! this.Context.SupportedCiphers = TlsCipherSuiteFactory.GetSupportedCiphers(serverProtocol); } else --- 126,130 ---- this.Context.SupportedCiphers.Clear(); this.Context.SupportedCiphers = null; ! this.Context.SupportedCiphers = CipherSuiteFactory.GetSupportedCiphers(serverProtocol); } else Index: TlsServerHelloDone.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerHelloDone.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TlsServerHelloDone.cs 23 Feb 2004 12:18:52 -0000 1.2 --- TlsServerHelloDone.cs 3 Mar 2004 16:14:40 -0000 1.3 *************** *** 27,50 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerHelloDone : TlsHandshakeMessage { #region Constructors public TlsServerHelloDone(Context context, byte[] buffer) ! : base(context, TlsHandshakeType.ServerHello, buffer) ! { ! } ! ! #endregion ! ! #region Methods ! ! public override void Update() { - ClientContext context = (ClientContext)this.Context; - - base.Update(); - - context.HelloDone = true; } --- 27,37 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerHelloDone : HandshakeMessage { #region Constructors public TlsServerHelloDone(Context context, byte[] buffer) ! : base(context, HandshakeType.ServerHello, buffer) { } Index: TlsServerKeyExchange.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TlsServerKeyExchange.cs 23 Feb 2004 12:18:52 -0000 1.2 --- TlsServerKeyExchange.cs 3 Mar 2004 16:14:40 -0000 1.3 *************** *** 31,35 **** namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerKeyExchange : TlsHandshakeMessage { #region Fields --- 31,35 ---- namespace Mono.Security.Protocol.Tls.Handshake.Client { ! internal class TlsServerKeyExchange : HandshakeMessage { #region Fields *************** *** 43,47 **** public TlsServerKeyExchange(Context context, byte[] buffer) ! : base(context, TlsHandshakeType.ServerKeyExchange, buffer) { this.verifySignature(); --- 43,47 ---- public TlsServerKeyExchange(Context context, byte[] buffer) ! : base(context, HandshakeType.ServerKeyExchange, buffer) { this.verifySignature(); |