mozilla/PyBrowserID — pull request #4 by rfk (2012-05-08 03:17:19+00:00)
Title: Provide a pure-python fallback for when M2Crypto is not available.

M2Crypto is unpleasant as a hard dependency, since it often doesn't `pip install` cleanly. This patch adds a pure-python fallback that can be used if M2Crypto is not available.

As a concrete example of why this is useful, see https://bugzilla.mozilla.org/show_bug.cgi?id=751485.
This bug adds the ability to run the server-syncstorage functional tests using a live tokenserver, and hence needs to generate mock browserid assertions. Not having to depend on M2Crypto will make it easier for QA to run such tests.