forked from wbond/asn1crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow better pickle integration (wbond#240)
The way asn1crypto manages its classes does not always play nice with unpickling objects. In particular, pickled Asn1Values cannot always be unpickled in a "fresh" interpreter where the class setup methods for asn1crypto's classes haven't been called yet. See discussion in wbond#239. This commit implements __reduce__ on Asn1Value in such a way that pickle will use asn1crypto's own DER serialisation/deserialisation functionality to handle pickling and unpickling. Fixes wbond#239.
- Loading branch information
1 parent
e116afb
commit fad689f
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters