T
Torsten Mueller
I know this topic is special and not many people have to face this. But
I have to.
I connect to an Active Directory server using LDAP (Wldap32.dll,
functions in Winldap.h) to request and modify some data.
The connection (SSL) allows certificate checks, one for the server's and
one for the client's certificate. I would a least implement the check of
the server's certificate. In LDAP there's a callback function which is
indeed called when I open the connection:
BOOLEAN _cdecl VerifyServerCert(PLDAP Connection, PCCERT_CONTEXT* ppServerCert)
{
// ...
return TRUE; // don't check, just accept the server certificate
}
But I have no idea where to begin with this. How should I start to
interpret this PCCERT_CONTEXT struct list? Could anyone give me a short
introduction into this?
Note: I don't want to use any additional library like OpenSSL for that.
T.M.
I have to.
I connect to an Active Directory server using LDAP (Wldap32.dll,
functions in Winldap.h) to request and modify some data.
The connection (SSL) allows certificate checks, one for the server's and
one for the client's certificate. I would a least implement the check of
the server's certificate. In LDAP there's a callback function which is
indeed called when I open the connection:
BOOLEAN _cdecl VerifyServerCert(PLDAP Connection, PCCERT_CONTEXT* ppServerCert)
{
// ...
return TRUE; // don't check, just accept the server certificate
}
But I have no idea where to begin with this. How should I start to
interpret this PCCERT_CONTEXT struct list? Could anyone give me a short
introduction into this?
Note: I don't want to use any additional library like OpenSSL for that.
T.M.