Jason
2006-11-17 21:33:13 UTC
I have an application that uses Wininet to connect to other servers. For
one we need to get and check the server certificate and see if it is valid.
All works fine with IE6, but upgrading to IE7 and the program fails. When
checking trhe information manually using IE7 I can see the certificate and
everything looks fine. When using WININET to get the information I get an
errorcode 120 (INVALID BUFFER). I have tried increasing the buffer, but I
always get the error. I have checked the new settings in the Internet
Options to make sure that SSL is enabled and have checked the encryption of
the site to make sure it is 128-bit. I don't know what else to do. I am
using the following code:
IF
InternetQueryOption(hRequest,INTERNET_OPTION_SECURITY_CERTIFICATE,,dwBytesAvailable)
If there is anyone that can help point me in the right direction, I would
really appreciate it.
one we need to get and check the server certificate and see if it is valid.
All works fine with IE6, but upgrading to IE7 and the program fails. When
checking trhe information manually using IE7 I can see the certificate and
everything looks fine. When using WININET to get the information I get an
errorcode 120 (INVALID BUFFER). I have tried increasing the buffer, but I
always get the error. I have checked the new settings in the Internet
Options to make sure that SSL is enabled and have checked the encryption of
the site to make sure it is 128-bit. I don't know what else to do. I am
using the following code:
IF
InternetQueryOption(hRequest,INTERNET_OPTION_SECURITY_CERTIFICATE,,dwBytesAvailable)
If there is anyone that can help point me in the right direction, I would
really appreciate it.
--
Jason Johnson
***@att.net
Jason Johnson
***@att.net