Add PGP verification info message

This commit is contained in:
Gioacchino Mazzurco 2019-05-14 15:05:19 +02:00
parent 0eee4adaa8
commit c8082fdcc2
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051

View file

@ -974,7 +974,7 @@ bool AuthSSLimpl::AuthX509WithGPG(X509 *x509, uint32_t& diagnostic)
RsPeerDetails pd; RsPeerDetails pd;
if (!AuthGPG::getAuthGPG()->getGPGDetails(issuer, pd)) if (!AuthGPG::getAuthGPG()->getGPGDetails(issuer, pd))
{ {
RsErr() << __PRETTY_FUNCTION__ << " X509 NOT authenticated : " RsInfo() << __PRETTY_FUNCTION__ << " X509 NOT authenticated : "
<< "AuthGPG::getAuthGPG()->getGPGDetails(" << issuer << "AuthGPG::getAuthGPG()->getGPGDetails(" << issuer
<< ",...) returned false." << std::endl; << ",...) returned false." << std::endl;
diagnostic = RS_SSL_HANDSHAKE_DIAGNOSTIC_ISSUER_UNKNOWN; diagnostic = RS_SSL_HANDSHAKE_DIAGNOSTIC_ISSUER_UNKNOWN;
@ -1125,7 +1125,7 @@ bool AuthSSLimpl::AuthX509WithGPG(X509 *x509, uint32_t& diagnostic)
goto err; goto err;
} }
Dbg1() << __PRETTY_FUNCTION__ << " Verified: " << sigtypestring RsInfo() << __PRETTY_FUNCTION__ << " Verified: " << sigtypestring
<< " signature of certificate sslId: " << " signature of certificate sslId: "
<< RsX509Cert::getCertSslId(*x509) << RsX509Cert::getCertSslId(*x509)
<< ", Version " << std::hex << certificate_version << std::dec << ", Version " << std::hex << certificate_version << std::dec
@ -1140,8 +1140,8 @@ bool AuthSSLimpl::AuthX509WithGPG(X509 *x509, uint32_t& diagnostic)
return true; return true;
err: err: // TODO: this label is very short and might collide every easly
RsErr() << __PRETTY_FUNCTION__ << " X509 PGP authentication failed with " RsInfo() << __PRETTY_FUNCTION__ << " X509 PGP authentication failed with "
<< "diagnostic: " << diagnostic << std::endl; << "diagnostic: " << diagnostic << std::endl;
if(buf_in) OPENSSL_free(buf_in); if(buf_in) OPENSSL_free(buf_in);