summaryrefslogtreecommitdiff
path: root/src/signer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-17 00:26:04 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-17 00:26:04 +0000
commitbfb33feb40c5b014e9eae3958b1ecb8161f1d090 (patch)
treeb191a383b22233c395aabe03f7d8f745a99821fc /src/signer.cc
parentac265d3d008328b9bdaf00c39ebcd86f263605c7 (diff)
parent6e72e1d36f23a4236c4677f22792a6a4590943a3 (diff)
Merge master.
Diffstat (limited to 'src/signer.cc')
-rw-r--r--src/signer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signer.cc b/src/signer.cc
index a280cb07..8b3cf31d 100644
--- a/src/signer.cc
+++ b/src/signer.cc
@@ -123,8 +123,9 @@ Signer::add_signature_value (xmlpp::Node* parent, string ns) const
throw MiscError ("could not set key name");
}
- if (xmlSecDSigCtxSign (signature_context, parent->cobj ()) < 0) {
- throw MiscError ("could not sign");
+ int const r = xmlSecDSigCtxSign (signature_context, parent->cobj ());
+ if (r < 0) {
+ throw MiscError (String::compose ("could not sign (%1)", r));
}
xmlSecDSigCtxDestroy (signature_context);