(no commit message)
[strongswan.git] / src / libstrongswan / utils / identification.h
index 5b13d02..3df710c 100644 (file)
 #include "types.h"
 
 #define MAX_WILDCARDS     14
+/**
+ * printf() specifier to print a identification.
+ */
+#define IDENTIFICATION_PRINTF_SPEC 'D'
 
 typedef enum id_type_t id_type_t;
 
@@ -162,16 +166,6 @@ struct identification_t {
        id_type_t (*get_type) (identification_t *this);
        
        /**
-        * @brief Get a string representation of this id.
-        * 
-        * @warning Result points to internal data, do NOT free!
-        * 
-        * @param this          the identification_t object
-        * @return                      string
-        */
-       char *(*get_string) (identification_t *this);
-       
-       /**
         * @brief Check if two identification_t objects are equal.
         * 
         * @param this          the identification_t object
@@ -269,5 +263,4 @@ identification_t * identification_create_from_string(char *string);
  */
 identification_t * identification_create_from_encoding(id_type_t type, chunk_t encoded);
 
-
 #endif /* IDENTIFICATION_H_ */