diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-05-29 07:06:02 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-05-29 07:06:02 +0000 |
commit | 353c7b57c8e09fc0e8d08c4f4ff53557b1758c4a (patch) | |
tree | 74226712ebdda35b4eed720016171a3395b631b0 /src/libstrongswan/utils/identification.h | |
parent | 3c3595adfd251cbef1aa7edb6984ed63cd32d205 (diff) | |
download | strongswan-353c7b57c8e09fc0e8d08c4f4ff53557b1758c4a.tar.bz2 strongswan-353c7b57c8e09fc0e8d08c4f4ff53557b1758c4a.tar.xz |
reworked parsing and matching of subjectAltNames
Diffstat (limited to 'src/libstrongswan/utils/identification.h')
-rw-r--r-- | src/libstrongswan/utils/identification.h | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/src/libstrongswan/utils/identification.h b/src/libstrongswan/utils/identification.h index e1e147fab..ca1b53454 100644 --- a/src/libstrongswan/utils/identification.h +++ b/src/libstrongswan/utils/identification.h @@ -37,6 +37,11 @@ typedef enum id_type_t id_type_t; enum id_type_t { /** + * private type which matches any other id. + */ + ID_ANY = 0, + + /** * ID data is a single four (4) octet IPv4 address. */ ID_IPV4_ADDR = 1, @@ -78,11 +83,12 @@ enum id_type_t { * types of identification. */ ID_KEY_ID = 11, - + /** - * Special type of PRIVATE USE which matches to any other id. + * private type which represents a GeneralName of type URI */ - ID_ANY = 201, + ID_DER_ASN1_GN_URI = 201, + }; /** @@ -90,23 +96,6 @@ enum id_type_t { */ extern mapping_t id_type_m[]; -/** - * Different kinds of generalNames - */ -typedef enum generalNames_t generalNames_t; - -enum generalNames_t { - GN_OTHER_NAME = 0, - GN_RFC822_NAME = 1, - GN_DNS_NAME = 2, - GN_X400_ADDRESS = 3, - GN_DIRECTORY_NAME = 4, - GN_EDI_PARTY_NAME = 5, - GN_URI = 6, - GN_IP_ADDRESS = 7, - GN_REGISTERED_ID = 8, -}; - typedef struct identification_t identification_t; /** @@ -120,6 +109,7 @@ typedef struct identification_t identification_t; * - ID_DER_ASN1_DN * - ID_DER_ASN1_GN * - ID_KEY_ID + * - ID_DER_ASN1_GN_URI * * @b Constructors: * - identification_create_from_string() |