You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
444 B

  1. --- a/src/opensslfingerprint.cxx
  2. +++ b/src/opensslfingerprint.cxx
  3. @@ -110,7 +110,9 @@ std::string getCertFingerprint(const std
  4. snprintf(&fpbuf[57], 3, "%02x", md[19]);
  5. if (Debug) {
  6. - syslog (LOG_DEBUG, "Cert: %s, fingerprint: %s", x->name, fpbuf);
  7. + char *namebuf = X509_NAME_oneline(X509_get_subject_name(x),NULL,0);
  8. + syslog (LOG_DEBUG, "Cert: %s, fingerprint: %s", namebuf, fpbuf);
  9. + free(namebuf);
  10. }
  11. std::string fp = fpbuf;