Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake
In directory sc8-pr-cvs1:/tmp/cvs-serv13883
Modified Files:
TlsServerCertificateRequest.cs
Log Message:
Finxihed decoding of distinguished names ( nedds testing but in first place seems to work )
Index: TlsServerCertificateRequest.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsServerCertificateRequest.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TlsServerCertificateRequest.cs 8 Oct 2003 16:32:03 -0000 1.5
--- TlsServerCertificateRequest.cs 8 Oct 2003 18:23:18 -0000 1.6
***************
*** 19,22 ****
--- 19,23 ----
using System;
using System.Text;
+ using Mono.Security;
namespace System.Security.Tls.Handshake
***************
*** 67,74 ****
}
! // Read requested certificate authorities
! byte[] rdn = Reader.ReadBytes(Reader.ReadShort());
! #warning "Process distinguished names here"
}
--- 68,96 ----
}
! // Read requested certificate authorities (Distinguised Names)
! /*
! Name ::= SEQUENCE OF RelativeDistinguishedName
!
! RelativeDistinguishedName ::= SET OF AttributeValueAssertion
!
! AttributeValueAssertion ::= SEQUENCE {
! attributeType OBJECT IDENTIFIER
! attributeValue ANY }
! */
!
! int tmp = Reader.ReadShort();
! ASN1 rdn = new ASN1(Reader.ReadBytes(Reader.ReadShort()));
!
! distinguisedNames = new string[rdn.Count];
!
! for (int i = 0; i < rdn.Count; i++)
! {
! // element[0] = attributeType
! // element[1] = attributeValue
! ASN1 element = new ASN1(rdn[i].Value);
!
! distinguisedNames[i] = Encoding.UTF8.GetString(element[1].Value);
! }
}
|