std::string CertName;\r
\r
if (TLSInfo->internals != nullptr && TLSCode == CURLE_OK){\r
+\r
+ // Free the previous certificate data.\r
+\r
+ CertFreeCertificateContext(CertificateData);\r
+\r
PCtxtHandle SSLHandle = (PCtxtHandle)TLSInfo->internals;\r
SECURITY_STATUS GetData = QueryContextAttributes(SSLHandle, SECPKG_ATTR_REMOTE_CERT_CONTEXT, &CertificateData);\r
- //QueryContextAttributesA(TLSInfo->internals, SECPKG_);\r
+\r
}\r
\r
#endif\r