-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support verification of multiple signatures #59
Comments
Hi Andrey Kislyuk, I would like to propose an alternative method to solve this problem: This method is also used in the XML Security Library of Aleksey e.g. I'm willing to commit to this open issue considering this is a function I desire in my implementation (using the signxml library). I look forward to hearing from you soon. Kind regards, Diederik Florijn |
Hi @dflorijn, I'm fine with this approach, you're welcome to submit a PR. |
Hi Andrey @kislyuk , I've been quite busy at work so I wasn't able to make much progression lately. Nonetheless, it seems my addition of the xpath expression in the verify function to distinguished between signature elements works (or at least on the XML files I need to verify that contain multiple signatures). What are the next steps before I can make a PR? I suppose make some additions to the test file so to ensure it works properly? I have ran the testfile but I receive 1 error on an expired certificate:
Kind regards, Diederik |
I just committed a fix for the test failure, please try again. You are correct that you will need to add a test case and change the docstring to document your new functionality. |
Hi Andrey @kislyuk , Thank you for your quick response and action! I ran the test yesterday and it was successful with the alteration I made. The last step is adding cases to the unit tests. Do you have a suggestion on what testcases I should create? My idea is to create some sample xml files containing multiple signatures and check these with the xpath parameter. However, I can also copy and change several existing testcases, and simply add the xnode parameter. This ensures that the xpath works, however it excludes documents with multiple signatures. Looking forward to hearing from you. Kind regards, Diederik |
Yes, you should add new test files that contain multiple signatures, and test selecting each of the signatures and any error conditions you can think of (xpath not resolving to anything, etc.) |
The text was updated successfully, but these errors were encountered: