X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=blobdiff_plain;f=xmltooling%2Fsecurity%2Fimpl%2FFilesystemCredentialResolver.cpp;fp=xmltooling%2Fsecurity%2Fimpl%2FFilesystemCredentialResolver.cpp;h=a4bef3ccee9eb7af6c2db2b5146e95c1a44706ef;hp=0c0bbffc156ca14cfcc70de837f18d3cc79b0319;hb=7ff05fc3ab9187bc51b273cd9d232bb948171e5e;hpb=849f7c37c25a0cfe2878c7a60623569ac5dc85fa diff --git a/xmltooling/security/impl/FilesystemCredentialResolver.cpp b/xmltooling/security/impl/FilesystemCredentialResolver.cpp index 0c0bbff..a4bef3c 100644 --- a/xmltooling/security/impl/FilesystemCredentialResolver.cpp +++ b/xmltooling/security/impl/FilesystemCredentialResolver.cpp @@ -392,6 +392,10 @@ FilesystemCredentialResolver::FilesystemCredentialResolver(const DOMElement* e) log.debug("certificate encoding format for (%s) dynamically resolved as (%s)", certpath.c_str(), formatToString(fformat).c_str()); } + Category::getInstance(XMLTOOLING_LOGCAT".CredentialResolver."FILESYSTEM_CREDENTIAL_RESOLVER).info( + "loading certificate from file (%s)", certpath.c_str() + ); + switch(fformat) { case PEM: while (x=PEM_read_bio_X509(in,NULL,passwd_callback,const_cast(certpass.get()))) @@ -463,6 +467,10 @@ FilesystemCredentialResolver::FilesystemCredentialResolver(const DOMElement* e) log.debug("CA certificate encoding format for (%s) dynamically resolved as (%s)", capath.c_str(), formatToString(fformat).c_str()); } + Category::getInstance(XMLTOOLING_LOGCAT".CredentialResolver."FILESYSTEM_CREDENTIAL_RESOLVER).info( + "loading CA certificate from file (%s)", capath.c_str() + ); + switch (fformat) { case PEM: while (x=PEM_read_bio_X509(in,NULL,NULL,NULL)) @@ -504,8 +512,8 @@ FilesystemCredentialResolver::FilesystemCredentialResolver(const DOMElement* e) if (in) BIO_free(in); log_openssl(); - log.error("CA file (%s) can't be opened", capath.c_str()); - throw XMLSecurityException("FilesystemCredentialResolver can't open CA file ($1)",params(1,capath.c_str())); + log.error("CA certificate file (%s) can't be opened", capath.c_str()); + throw XMLSecurityException("FilesystemCredentialResolver can't open CA certificate file ($1)",params(1,capath.c_str())); } extra = XMLHelper::getNextSiblingElement(extra,CAPath); @@ -533,6 +541,9 @@ XSECCryptoKey* FilesystemCredentialResolver::loadKey() #ifdef _DEBUG NDC ndc("loadKey"); #endif + Category::getInstance(XMLTOOLING_LOGCAT".CredentialResolver."FILESYSTEM_CREDENTIAL_RESOLVER).info( + "loading private key from file (%s)", m_keypath.c_str() + ); // Get a EVP_PKEY. EVP_PKEY* pkey=NULL; @@ -588,6 +599,9 @@ XSECCryptoX509CRL* FilesystemCredentialResolver::loadCRL() #ifdef _DEBUG NDC ndc("loadCRL"); #endif + Category::getInstance(XMLTOOLING_LOGCAT".CredentialResolver."FILESYSTEM_CREDENTIAL_RESOLVER).info( + "loading CRL from file (%s)", m_crlpath.c_str() + ); X509_CRL* crl=NULL; BIO* in=BIO_new(BIO_s_file_internal());