Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls
In directory sc8-pr-cvs1:/tmp/cvs-serv13668
Modified Files:
SslClientStream.cs
Log Message:
Add correct implementation of RaiseClientCertificateSelection
Index: SslClientStream.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/SslClientStream.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SslClientStream.cs 17 Nov 2003 11:00:20 -0000 1.4
--- SslClientStream.cs 21 Nov 2003 12:24:26 -0000 1.5
***************
*** 56,61 ****
#region INTERNAL_EVENTS
! internal event CertificateValidationCallback ServerCertValidation;
! internal event CertificateSelectionCallback ClientCertSelection;
#endregion
--- 56,61 ----
#region INTERNAL_EVENTS
! internal event CertificateValidationCallback ServerCertValidation;
! internal event CertificateSelectionCallback ClientCertSelection;
#endregion
***************
*** 986,990 ****
}
! internal bool RaiseClientCertificateSelection(
X509CertificateCollection clientCertificates,
X509Certificate serverCertificate,
--- 986,990 ----
}
! internal X509Certificate RaiseClientCertificateSelection(
X509CertificateCollection clientCertificates,
X509Certificate serverCertificate,
***************
*** 992,1000 ****
X509CertificateCollection serverRequestedCertificates)
{
! #warning "Add implementation"
! return true;
}
-
#endregion
--- 992,1006 ----
X509CertificateCollection serverRequestedCertificates)
{
! if (this.ClientCertSelection != null)
! {
! return this.ClientCertSelection(
! clientCertificates,
! serverCertificate,
! targetHost,
! serverRequestedCertificates);
! }
! return null;
}
#endregion
|