Browse Source

Logging root certificate

Source commit: b793d8affc4898b5857e9e99c41700373a72be18
Martin Prikryl 1 year ago
parent
commit
c92eea5922
1 changed files with 2 additions and 1 deletions
  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);
 
     UnicodeString RootCert = UnicodeString(NeonExportCertificate(RootCertificate));
+    AppLogFmt(L"Root certificate: %s", (RootCert));
     if (RootCert == Certificate)
     {
       Failures &= ~NE_SSL_UNTRUSTED;
-      AppLogFmt(L"Certificate is known (%d)", (Failures));
+      AppLogFmt(L"Root certificate is known (%d)", (Failures));
     }
   }