src/map_asn1.h
branchkeysync
changeset 940 5f0a9d0f0ecd
parent 723 be101850681e
child 969 bf2aac3565a3
     1.1 --- a/src/map_asn1.h	Fri Jul 29 10:45:13 2016 +0200
     1.2 +++ b/src/map_asn1.h	Fri Jul 29 12:09:04 2016 +0200
     1.3 @@ -1,9 +1,9 @@
     1.4  #pragma once
     1.5  
     1.6  #include "pEpEngine.h"
     1.7 -#include "stringlist.h"
     1.8 +#include "identitylist.h"
     1.9  #include "../asn.1/Identity.h"
    1.10 -#include "../asn.1/KeyList.h"
    1.11 +#include "../asn.1/IdentityList.h"
    1.12  
    1.13  #ifdef __cplusplus
    1.14  extern "C" {
    1.15 @@ -43,11 +43,11 @@
    1.16  pEp_identity *Identity_to_Struct(Identity_t *ident, pEp_identity *result);
    1.17  
    1.18  
    1.19 -// KeyList_from_stringlist() - convert stringlist_t into ASN.1 KeyList_t
    1.20 +// IdentityList_from_identity_list() - convert identity_list_t into ASN.1 IdentityList_t
    1.21  //
    1.22  //  params:
    1.23 -//      list (in)           stringlist_t to convert
    1.24 -//      result (inout)      KeyList_t to update or NULL to alloc a new one
    1.25 +//      list (in)           identity_list to convert
    1.26 +//      result (inout)      IdentityList_t to update or NULL to alloc a new one
    1.27  //
    1.28  //  return value:
    1.29  //      pointer to updated or allocated result
    1.30 @@ -55,16 +55,16 @@
    1.31  //  caveat:
    1.32  //      if a new struct is allocated, the ownership goes to the caller
    1.33  
    1.34 -KeyList_t *KeyList_from_stringlist(
    1.35 -        const stringlist_t *list,
    1.36 -        KeyList_t *result
    1.37 +IdentityList_t *IdentityList_from_identity_list(
    1.38 +        const identity_list *list,
    1.39 +        IdentityList_t *result
    1.40      );
    1.41  
    1.42 -// KeyList_to_stringlist() - convert ASN.1 KeyList_t to stringlist_t
    1.43 +// IdentityList_to_identity_list() - convert ASN.1 IdentityList_t to identity_list_t
    1.44  //
    1.45  //  params:
    1.46 -//      list (in)           ASN.1 KeyList_t to convert
    1.47 -//      result (inout)      stringlist_t to update or NULL to alloc a new one
    1.48 +//      list (in)           ASN.1 IdentityList_t to convert
    1.49 +//      result (inout)      identity_list_t to update or NULL to alloc a new one
    1.50  //
    1.51  //  return value:
    1.52  //      pointer to updated or allocated result
    1.53 @@ -72,7 +72,7 @@
    1.54  //  caveat:
    1.55  //      if a new struct is allocated, the ownership goes to the caller
    1.56  
    1.57 -stringlist_t *KeyList_to_stringlist(KeyList_t *list, stringlist_t *result);
    1.58 +identity_list *IdentityList_to_identity_list(IdentityList_t *list, identity_list *result);
    1.59  
    1.60  
    1.61  #ifdef __cplusplus