If stuff is xmlsec version dependent we have to be able to know that

This commit is contained in:
Roland Hedberg
2010-12-09 09:50:45 +01:00
parent c2c13703b7
commit 542ecec61a

View File

@@ -86,6 +86,14 @@ class XmlsecError(Exception):
# else:
# return make_instance(klass, spec, base64encode)
def xmlsec_version(execname):
com_list = [execname,"--version"]
pof = Popen(com_list, stderr=PIPE, stdout=PIPE)
try:
return pof.stdout.read().split(" ")[1]
except Exception:
return ""
def _make_vals(val, klass, seccont, klass_inst=None, prop=None, part=False,
base64encode=False, elements_to_sign=None):
"""