Commit 639b60f
James Edington
Add DerObject.__repr__()
The base case handles sequences and most primitives.
Special handling was required for `DerOctetString` and `DerBitString`
since they store their value at `.payload` rather than `.value`.
Special handling was required for `DerNull` since its current
constructor takes no argument at all, not even `None`.
This should make "playpenning" around with ASN.1-based formats a lot
more convenient.1 parent dc99309 commit 639b60f
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
261 | 276 | | |
262 | 277 | | |
263 | 278 | | |
| |||
687 | 702 | | |
688 | 703 | | |
689 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
690 | 708 | | |
691 | 709 | | |
692 | 710 | | |
| |||
696 | 714 | | |
697 | 715 | | |
698 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
699 | 720 | | |
700 | 721 | | |
701 | 722 | | |
| |||
885 | 906 | | |
886 | 907 | | |
887 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
888 | 912 | | |
889 | 913 | | |
890 | 914 | | |
| |||
0 commit comments