[pgsqlclient-checkins] pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Sec
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client
In directory sc8-pr-cvs1:/tmp/cvs-serv22952
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:
Added changes for allow, in the future, the handshake layer
to work with SSL3 protocol
Index: TlsClientCertificate.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsClientCertificate.cs 14 Oct 2003 10:14:25 -0000 1.3
--- TlsClientCertificate.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 52,56 ****
#region PROTECTED_METHODS
! protected override void Fill()
{
#warning "Check which type of certificates has been requested by the server"
--- 52,61 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
#warning "Check which type of certificates has been requested by the server"
Index: TlsClientCertificateVerify.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TlsClientCertificateVerify.cs 11 Oct 2003 10:09:37 -0000 1.1
--- TlsClientCertificateVerify.cs 16 Oct 2003 14:25:57 -0000 1.2
***************
*** 51,55 ****
#region PROTECTED_METHODS
! protected override void Fill()
{
#warning "Process message here"
--- 51,60 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
#warning "Process message here"
Index: TlsClientFinished.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientFinished.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsClientFinished.cs 14 Oct 2003 10:14:25 -0000 1.3
--- TlsClientFinished.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 51,55 ****
#region PROTECTED_METHODS
! protected override void Fill()
{
// Get hashes of handshake messages
--- 51,60 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
// Get hashes of handshake messages
Index: TlsClientHello.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsClientHello.cs 14 Oct 2003 09:49:02 -0000 1.3
--- TlsClientHello.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 62,66 ****
#region PROTECTED_METHODS
! protected override void Fill()
{
// Client Version
--- 62,71 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
// Client Version
Index: TlsClientKeyExchange.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/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 13 Oct 2003 20:48:19 -0000 1.2
--- TlsClientKeyExchange.cs 16 Oct 2003 14:25:57 -0000 1.3
***************
*** 44,48 ****
#region PROTECTED_METHODS
! protected override void Fill()
{
// Compute pre master secret
--- 44,53 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
// Compute pre master secret
Index: TlsServerCertificate.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsServerCertificate.cs 13 Oct 2003 20:48:19 -0000 1.3
--- TlsServerCertificate.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 69,73 ****
#region PROTECTED_METHODS
! protected override void Parse()
{
this.certificates = new X509CertificateCollection();
--- 69,78 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
this.certificates = new X509CertificateCollection();
Index: TlsServerCertificateRequest.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificateRequest.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsServerCertificateRequest.cs 13 Oct 2003 20:48:19 -0000 1.3
--- TlsServerCertificateRequest.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 62,66 ****
#region PROTECTED_METHODS
! protected override void Parse()
{
// Read requested certificate types
--- 62,71 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
// Read requested certificate types
Index: TlsServerFinished.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TlsServerFinished.cs 14 Oct 2003 10:14:25 -0000 1.4
--- TlsServerFinished.cs 16 Oct 2003 14:25:57 -0000 1.5
***************
*** 52,56 ****
#region PROTECTED_METHODS
! protected override void Parse()
{
byte[] serverPRF = ReadBytes((int)Length);
--- 52,61 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
byte[] serverPRF = ReadBytes((int)Length);
Index: TlsServerHello.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/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 13 Oct 2003 20:48:19 -0000 1.3
--- TlsServerHello.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 65,69 ****
#region PROTECTED_METHODS
! protected override void Parse()
{
// Read protocol version
--- 65,74 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
// Read protocol version
Index: TlsServerHelloDone.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerHelloDone.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsServerHelloDone.cs 13 Oct 2003 20:48:19 -0000 1.3
--- TlsServerHelloDone.cs 16 Oct 2003 14:25:57 -0000 1.4
***************
*** 51,55 ****
#region PROTECTED_METHODS
! protected override void Parse()
{
}
--- 51,59 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! }
!
! protected override void ProcessAsTls1()
{
}
Index: TlsServerKeyExchange.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TlsServerKeyExchange.cs 14 Oct 2003 10:14:25 -0000 1.4
--- TlsServerKeyExchange.cs 16 Oct 2003 14:25:57 -0000 1.5
***************
*** 63,67 ****
#region PROTECTED_METHODS
! protected override void Parse()
{
rsaParams = new RSAParameters();
--- 63,72 ----
#region PROTECTED_METHODS
! protected override void ProcessAsSsl3()
! {
! throw new NotSupportedException();
! }
!
! protected override void ProcessAsTls1()
{
rsaParams = new RSAParameters();
|