identification: Support prefixes in string constructors for an explicit type

This commit is contained in:
Martin Willi
2014-10-30 11:05:44 +01:00
parent 46001e1131
commit c0da835a9f
3 changed files with 58 additions and 0 deletions
@@ -174,6 +174,10 @@ static struct {
.data.c = chunk_from_chars(0x30,0x0d,0x31,0x0b,0x30,0x09,0x06,
0x03,0x55,0x04,0x06,0x13,0x02,0x43,0x48) }},
{"C=CH, O", ID_KEY_ID, { .type = ENC_SIMPLE }},
{"IPv4:#c0a80101", ID_IPV4_ADDR, { .type = ENC_CHUNK,
.data.c = chunk_from_chars(0xc0,0xa8,0x01,0x01) }},
{ "email:tester", ID_RFC822_ADDR, { .type = ENC_STRING,
.data.s = "tester" }},
};
START_TEST(test_from_string)