浏览代码

Logging root certificate

Source commit: b793d8affc4898b5857e9e99c41700373a72be18
Martin Prikryl 1 年之前
父节点
当前提交
c92eea5922
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/core/Http.cpp

+ 2 - 1
source/core/Http.cpp

@@ -266,10 +266,11 @@ int THttp::NeonServerSSLCallbackImpl(int Failures, const ne_ssl_certificate * AC
     while (true);
     while (true);
 
 
     UnicodeString RootCert = UnicodeString(NeonExportCertificate(RootCertificate));
     UnicodeString RootCert = UnicodeString(NeonExportCertificate(RootCertificate));
+    AppLogFmt(L"Root certificate: %s", (RootCert));
     if (RootCert == Certificate)
     if (RootCert == Certificate)
     {
     {
       Failures &= ~NE_SSL_UNTRUSTED;
       Failures &= ~NE_SSL_UNTRUSTED;
-      AppLogFmt(L"Certificate is known (%d)", (Failures));
+      AppLogFmt(L"Root certificate is known (%d)", (Failures));
     }
     }
   }
   }