identification: Support custom types in string constructor prefixes

This commit is contained in:
Martin Willi
2014-10-30 11:07:08 +01:00
parent c0da835a9f
commit 6528338753
3 changed files with 48 additions and 0 deletions
+3
View File
@@ -307,6 +307,9 @@ struct identification_t {
* dns:, asn1dn:, asn1gn: and keyid:. If a # follows the :, the remaining data
* is interpreted as hex encoded binary data for that ID, otherwise the raw
* string following the prefix is used as identity data, without conversion.
* To specify a non-standard ID type, the numerical type may be prefixed
* between curly backets, building a prefix. For instance the "{1}:" prefix
* defines an ID_IPV4_ADDR type.
*
* This constructor never returns NULL. If it does not find a suitable
* conversion function, it will copy the string to an ID_KEY_ID.