This file contains the definition for class CWTLSName.
enum { null(0), text(1), binary(2), key_hash_sha(254), x509_name(255)} IdentifierType;
We only support text and x509_name as these are the only meaningful identifiers.. x509_name is X.500 Distinguished Name, and should use our existing X.500 DN implementation.
struct { IdentifierType identifier_type; select (identifier_type) { case null: struct {}; case text: CharacterSet character_set; opaque name<1.. 2^8-1>; case binary: opaque identifier<1..2^8-1>; case key_hash_sha: opaque key_hash[20]; case x509_name: opaque distinguished_name<1..2^8-1>; } Identifier;
uint16 CharacterSet;
This maps on to one of the IANA defined character sets. There are rather a lot of these. We just support the text type, with either Latin1 or UTF8 encoding.
Enumerates the types of WTLS certificate name forms/identifiers.
Only text strings and X.500 Distinguished Names are currently supported.
Enumerator | Value | Description |
---|---|---|
EWTLSNull | 0x00 | |
EWTLSText | 0x01 | |
EWTLSBinary | 0x02 | |
EWTLSKeyHashSha | 0xfe | |
EWTLSX500DN | 0xff |