Skip to content
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

Fix crash on Python 3 #356

Closed
wants to merge 2 commits into from
Closed

Conversation

mrjoes
Copy link

@mrjoes mrjoes commented Sep 8, 2016

I'm not sure if that's the best fix for the problem and it won't affect anything else.

Long story short - on Python 3, pysaml2 crashes if metadata is signed. create_metadata_string (and other methods) sign the string and expect a binary string as a response. But CryptoBackendXmlSec1.sign_statement forcibly decodes the binary string from xmlsec1 to a normal string.

On Python 2 it should not cause any problems as there's no distinction.

@mrjoes mrjoes closed this Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant