[Mono-devel-list] Type of '...' is not CLS-compliant
Carlos Guzman Alvarez
carlosga at telefonica.net
Sat Apr 10 09:46:14 EDT 2004
Hello:
I'm trying to build the PgSqlClient sources
(pgsqlclient.sourceforge.net) with the latest mono from CVS, i'm getting
this on build (all builds fine with .NET in Windows):
./PostgreSql.Data.PgSqlClient/source/PgConnection.cs(45) error CS3003:
Type of 'PostgreSql.Data.PgSqlClient.PgConnection.ServerCertValidation'
is not CLS-compliant
./PostgreSql.Data.PgSqlClient/source/PgConnection.cs(46) error CS3003:
Type of 'PostgreSql.Data.PgSqlClient.PgConnection.ClientCertSelection'
is not CLS-compliant
./PostgreSql.Data.PgSqlClient/source/PgConnection.cs(47) error CS3003:
Type of 'PostgreSql.Data.PgSqlClient.PgConnection.PrivateKeySelection'
is not CLS-compliant
The declarations:
public event CertificateValidationCallback ServerCertValidation;
public event CertificateSelectionCallback ClientCertSelection;
public event PrivateKeySelectionCallback PrivateKeySelection;
The callbacks are defined in the Mono.Security assembly as:
public delegate bool CertificateValidationCallback(
X509Certificate certificate,
int[] certificateErrors);
public delegate X509Certificate CertificateSelectionCallback(
X509CertificateCollection clientCertificates,
X509Certificate serverCertificate, string targetHost,
X509CertificateCollection serverRequestedCertificates);
public delegate AsymmetricAlgorithm PrivateKeySelectionCallback(
X509Certificate certificate,
string targetHost);
Any idea on how to solve this ??
--
Best regards
Carlos Guzmán Ãlvarez
Vigo-Spain
More information about the Mono-devel-list
mailing list