cvmfs/signature.cc
string Whois() {
  if (!certificate_) return "No certificate loaded";

  string result;
  X509_NAME *subject = X509_get_subject_name(certificate_);
  X509_NAME *issuer = X509_get_issuer_name(certificate_);
  char *buffer = NULL;
  buffer = X509_NAME_oneline(subject, NULL, 0);
  if (buffer) {
    result = "Publisher: " + string(buffer);
    free(buffer);
  }
  buffer = X509_NAME_oneline(issuer, NULL, 0);
  if (buffer) {
    result += "\nCertificate issued by: " + string(buffer);
    free(buffer);
  }
  return result;
}
/**
 * \return Some human-readable information about the loaded certificate.
 */
\return Some human-readable information about the loaded certificate.
\ return Some human - readable information about the loaded certificate .
string Whois() {
  if (!certificate_) return "No certificate loaded";
  string result;
  X509_NAME *subject = X509_get_subject_name(certificate_);
  X509_NAME *issuer = X509_get_issuer_name(certificate_);
  char *buffer = NULL;
  buffer = X509_NAME_oneline(subject, NULL, 0);
  if (buffer) {
    result = "Publisher: " + string(buffer);
    free(buffer);
  }
  buffer = X509_NAME_oneline(issuer, NULL, 0);
  if (buffer) {
    result += "\nCertificate issued by: " + string(buffer);
    free(buffer);
  }
  return result;
}
string Whois ( ) { if ( ! certificate_ ) return " " ; string result ; X509_NAME * subject = X509_get_subject_name ( certificate_ ) ; X509_NAME * issuer = X509_get_issuer_name ( certificate_ ) ; char * buffer = NULL ; buffer = X509_NAME_oneline ( subject , NULL , 0 ) ; if ( buffer ) { result = " " + string ( buffer ) ; free ( buffer ) ; } buffer = X509_NAME_oneline ( issuer , NULL , 0 ) ; if ( buffer ) { result += " \n " + string ( buffer ) ; free ( buffer ) ; } return result ; }
\return Some human-readable information about the loaded certificate.
\ return Some human - readable information about the loaded certificate .