|
|
@ -11,6 +11,10 @@ |
|
|
|
#include "identity_list.h" |
|
|
|
#include "../asn.1/Identity.h" |
|
|
|
#include "../asn.1/IdentityList.h" |
|
|
|
#include "../asn.1/StringPair.h" |
|
|
|
#include "../asn.1/StringPair.h" |
|
|
|
#include "../asn.1/StringPairList.h" |
|
|
|
#include "../asn.1/PStringList.h" |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
extern "C" { |
|
|
@ -89,6 +93,122 @@ IdentityList_t *IdentityList_from_identity_list( |
|
|
|
|
|
|
|
identity_list *IdentityList_to_identity_list(IdentityList_t *list, identity_list *result); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* <!-- StringPair_from_Struct() --> |
|
|
|
* |
|
|
|
* @brief Convert stringpair_t into ASN.1 StringPair_t |
|
|
|
* |
|
|
|
* @param value[in] stringpair_t to convert |
|
|
|
* @param result[in,out] StringPair_t to update or NULL to alloc a new one |
|
|
|
* |
|
|
|
* @retval pointer to updated or allocated result |
|
|
|
* |
|
|
|
* @warning if a new struct is allocated, the ownership goes to the caller |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
StringPair_t *StringPair_from_Struct( |
|
|
|
const stringpair_t *value, |
|
|
|
StringPair_t *result |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* <!-- StringPair_to_Struct() --> |
|
|
|
* |
|
|
|
* @brief Convert ASN.1 StringPair_t into stringpair_t |
|
|
|
* |
|
|
|
* @param value[in] StringPair_t to convert |
|
|
|
* @param result[inout] stringpair_t to update or NULL to alloc a new one |
|
|
|
* |
|
|
|
* @retval pointer to updated or allocated result |
|
|
|
* |
|
|
|
* @warning if a new struct is allocated, the ownership goes to the caller |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
stringpair_t *StringPair_to_Struct(StringPair_t *value, stringpair_t *result); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* <!-- StringPairList_from_stringpair_list() --> |
|
|
|
* |
|
|
|
* @brief Convert stringpair_list_t into ASN.1 StringPairList_t |
|
|
|
* |
|
|
|
* @param list[in] stringpair_list to convert |
|
|
|
* @param result[inout] StringPairList_t to update or NULL to alloc a new one |
|
|
|
* |
|
|
|
* @retval pointer to updated or allocated result |
|
|
|
* |
|
|
|
* @warning if a new struct is allocated, the ownership goes to the caller |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
StringPairList_t *StringPairList_from_stringpair_list( |
|
|
|
const stringpair_list_t *list, |
|
|
|
StringPairList_t *result |
|
|
|
); |
|
|
|
|
|
|
|
/** |
|
|
|
* <!-- StringPairList_to_stringpair_list() --> |
|
|
|
* |
|
|
|
* @brief Convert ASN.1 StringPairList_t to stringpair_list_t |
|
|
|
* |
|
|
|
* @param list[in] ASN.1 StringPairList_t to convert |
|
|
|
* @param result[inout] stringpair_list_t to update or NULL to alloc a new one |
|
|
|
* |
|
|
|
* @retval pointer to updated or allocated result |
|
|
|
* |
|
|
|
* @warning if a new struct is allocated, the ownership goes to the caller |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
stringpair_list_t *StringPairList_to_stringpair_list( |
|
|
|
StringPairList_t *list, |
|
|
|
stringpair_list_t *result |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* <!-- PStringList_from_stringlist() --> |
|
|
|
* |
|
|
|
* @brief Convert stringlist_t into ASN.1 PStringList_t |
|
|
|
* |
|
|
|
* @param list[in] stringlist to convert |
|
|
|
* @param result[inout] PStringList_t to update or NULL to alloc a new one |
|
|
|
* |
|
|
|
* @retval pointer to updated or allocated result |
|
|
|
* |
|
|
|
* @warning if a new struct is allocated, the ownership goes to the caller |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
PStringList_t *PStringList_from_stringlist( |
|
|
|
const stringlist_t *list, |
|
|
|
PStringList_t *result |
|
|
|
); |
|
|
|
|
|
|
|
/** |
|
|
|
* <!-- PStringList_to_stringlist() --> |
|
|
|
* |
|
|
|
* @brief Convert ASN.1 PStringList_t to stringlist_t |
|
|
|
* |
|
|
|
* @param list[in] ASN.1 PStringList_t to convert |
|
|
|
* @param result[inout] stringlist_t to update or NULL to alloc a new one |
|
|
|
* |
|
|
|
* @retval pointer to updated or allocated result |
|
|
|
* |
|
|
|
* @warning if a new struct is allocated, the ownership goes to the caller |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
stringlist_t *StringPairList_to_stringlist( |
|
|
|
StringPairList_t *list, |
|
|
|
stringlist_t *result |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
} |
|
|
|
#endif |
|
|
|