[shibboleth-sp2] 26/119: Error out when no Key element found.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.

commit 6211ad05ed6cdc33435e9b6580cb4b7837d5f66b
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Thu Jun 7 00:05:07 2007 +0000

    Error out when no Key element found.
---
 xmlproviders/CredResolvers.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xmlproviders/CredResolvers.cpp b/xmlproviders/CredResolvers.cpp
index 81f7830..a68ef61 100644
--- a/xmlproviders/CredResolvers.cpp
+++ b/xmlproviders/CredResolvers.cpp
@@ -163,6 +163,9 @@ FileResolver::FileResolver(const DOMElement* e)
         }
 
     }
+    else {
+        throw CredentialException("FileResolver can't access key file, no Key element specified.");
+    }
         
     // Check for Certificate
     e=saml::XML::getFirstChildElement(root,::XML::CREDS_NS,SHIB_L(Certificate));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list