Fix CHOICE DER support
This commit is contained in:
@@ -175,7 +175,7 @@ void main(string[] args) {
|
||||
Test.add_func("/encode/choice/1:foo", () => {
|
||||
var choice = new Der.Choice(1, new Utf8String("foo"));
|
||||
var expected = new uint8[] {
|
||||
0x81, 0x05, 0x0c, 0x03, 0x66, 0x6f, 0x6f
|
||||
0xa1, 0x05, 0x0c, 0x03, 0x66, 0x6f, 0x6f
|
||||
};
|
||||
test_encode(choice, expected);
|
||||
});
|
||||
@@ -266,7 +266,7 @@ void main(string[] args) {
|
||||
Test.add_func("/decode/choice/1:foo", () => {
|
||||
var expected_id = 1;
|
||||
var bytes = new uint8[] {
|
||||
0x81, 0x05, 0x0c, 0x03, 0x66, 0x6f, 0x6f
|
||||
0xa1, 0x05, 0x0c, 0x03, 0x66, 0x6f, 0x6f
|
||||
};
|
||||
Der.Choice choice;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user