Hello
Hello
I've just finish the translation of a tiny C code about SSPI SChannel (SMTP STARTTLS with Microsoft technology)
https://github.com/tothpaul/Delphi/tree/master/TLSClient
https://github.com/tothpaul/Delphi/tree/master/TLSClient
I've just finish the translation of a tiny C code about SSPI SChannel (SMTP STARTTLS with Microsoft technology)
https://github.com/tothpaul/Delphi/tree/master/TLSClient
https://github.com/tothpaul/Delphi/tree/master/TLSClient
I was looking for such sample code since years. Thanks a lot for sharing! I will include something similar for SynMongoDB and SynCrtSock.
ReplyDeleteA. Bouchez you're welcome, they are some mistake in the headers I'll fix them later.
ReplyDeletemy purpose is to use STARTTLS on a IMAP server with a smart card authentication, I don't know how to do this with OpenSSL so I've tried MS way and it works !
I still have some strange behaviors...the first data readed from the secure connexion are the same as just before the STARTTLS command...more probably a bug in my code than in the server implementation :)
Hum...I have a self signed certificat on a server, so Windows returns CERT_E_UNTRUSTEDROOT...so I need to manually verify the certificat (I have it's public key)...but I really don't know how !
ReplyDeletehttps://msdn.microsoft.com/en-us/library/windows/desktop/aa378740(v=vs.85).aspx
AFAIK I have to verify that a RSA encryption of some data is the same with my public key and the one used by the server...but what data should I sign and against wich value should I compare it ?