Skip to content

Commit b28f7bc

Browse files
author
Roland Hedberg
committed
Path to xmlsec binary should not be hard coded into the script.
1 parent 439852e commit b28f7bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/mdexport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
parser.add_argument('-c', dest='cert')
5050
parser.add_argument('-a', dest='attrsmap')
5151
parser.add_argument('-o', dest='output')
52+
parser.add_argument('-x', dest='xmlsec')
5253
parser.add_argument(dest="item")
5354
args = parser.parse_args()
5455

@@ -60,7 +61,7 @@
6061
elif args.type == "external":
6162
ATTRCONV = ac_factory(args.attrsmap)
6263
httpc = HTTPBase()
63-
crypto = _get_xmlsec_cryptobackend("/opt/local/bin/xmlsec1")
64+
crypto = _get_xmlsec_cryptobackend(args.xmlsec)
6465
sc = SecurityContext(crypto)
6566
metad = MetaDataExtern(ONTS.values(), ATTRCONV, args.url,
6667
sc, cert=args.cert, http=httpc)

0 commit comments

Comments
 (0)