Browse Source

documentation

doc_update_sequoia
Volker Birk 6 years ago
parent
commit
7ec5c338a5
2 changed files with 59 additions and 4 deletions
  1. +8
    -2
      src/map_asn1.c
  2. +51
    -2
      src/map_asn1.h

+ 8
- 2
src/map_asn1.c View File

@ -1,7 +1,10 @@
#include "pEp_internal.h"
#include "map_asn1.h"
Identity_t *Identity_from_Struct(const pEp_identity *ident, Identity_t *result)
Identity_t *Identity_from_Struct(
const pEp_identity *ident,
Identity_t *result
)
{
assert(ident);
if (!ident)
@ -116,7 +119,10 @@ enomem:
return NULL;
}
KeyList_t *KeyList_from_stringlist(const stringlist_t *list, KeyList_t *result)
KeyList_t *KeyList_from_stringlist(
const stringlist_t *list,
KeyList_t *result
)
{
assert(list);
if (!list)


+ 51
- 2
src/map_asn1.h View File

@ -9,11 +9,60 @@
extern "C" {
#endif
Identity_t *Identity_from_Struct(const pEp_identity *ident, Identity_t *result);
// Identity_from_Struct() - convert pEp_identity into ASN.1 Identity_t
//
// params:
// ident (in) pEp_identity to convert
// result (inout) Identity_t to update or NULL to alloc a new one
//
// return value:
// pointer to updated or allocated result
Identity_t *Identity_from_Struct(
const pEp_identity *ident,
Identity_t *result
);
// Identity_to_Struct() - convert ASN.1 Identity_t into pEp_identity
//
// params:
// ident (in) Identity_t to convert
// result (inout) pEp_identity to update or NULL to alloc a new one
//
// return value:
// pointer to updated or allocated result
pEp_identity *Identity_to_Struct(Identity_t *ident, pEp_identity *result);
KeyList_t *KeyList_from_stringlist(const stringlist_t *list, KeyList_t *result);
// KeyList_from_stringlist() - convert stringlist_t into ASN.1 KeyList_t
//
// params:
// list (in) stringlist_t to convert
// result (inout) KeyList_t to update or NULL to alloc a new one
//
// return value:
// pointer to updated or allocated result
KeyList_t *KeyList_from_stringlist(
const stringlist_t *list,
KeyList_t *result
);
// KeyList_to_stringlist() - convert ASN.1 KeyList_t to stringlist_t
//
// params:
// list (in) ASN.1 KeyList_t to convert
// result (inout) stringlist_t to update or NULL to alloc a new one
//
// return value:
// pointer to updated or allocated result
stringlist_t *KeyList_to_stringlist(KeyList_t *list, stringlist_t *result);
#ifdef __cplusplus
}
#endif


Loading…
Cancel
Save