KEYSYNC: Added arbitrary hard coded sync message expiry (10m), and made special case when receiving groupKeys message so that they are not consumed giving a chance to other devices in the group to receive it as well.
4 #include "identity_list.h"
5 #include "../asn.1/Identity.h"
6 #include "../asn.1/IdentityList.h"
7 #include "../asn.1/GeneralizedTime.h"
14 // Identity_from_Struct() - convert pEp_identity into ASN.1 Identity_t
17 // ident (in) pEp_identity to convert
18 // result (inout) Identity_t to update or NULL to alloc a new one
21 // pointer to updated or allocated result
24 // if a new struct is allocated, the ownership goes to the caller
26 Identity_t *Identity_from_Struct(
27 const pEp_identity *ident,
32 // Identity_to_Struct() - convert ASN.1 Identity_t into pEp_identity
35 // ident (in) Identity_t to convert
36 // result (inout) pEp_identity to update or NULL to alloc a new one
39 // pointer to updated or allocated result
42 // if a new struct is allocated, the ownership goes to the caller
44 pEp_identity *Identity_to_Struct(Identity_t *ident, pEp_identity *result);
47 // IdentityList_from_identity_list() - convert identity_list_t into ASN.1 IdentityList_t
50 // list (in) identity_list to convert
51 // result (inout) IdentityList_t to update or NULL to alloc a new one
54 // pointer to updated or allocated result
57 // if a new struct is allocated, the ownership goes to the caller
59 IdentityList_t *IdentityList_from_identity_list(
60 const identity_list *list,
61 IdentityList_t *result
64 // IdentityList_to_identity_list() - convert ASN.1 IdentityList_t to identity_list_t
67 // list (in) ASN.1 IdentityList_t to convert
68 // result (inout) identity_list_t to update or NULL to alloc a new one
71 // pointer to updated or allocated result
74 // if a new struct is allocated, the ownership goes to the caller
76 identity_list *IdentityList_to_identity_list(IdentityList_t *list, identity_list *result);
78 // GeneralizedTime_to_timestamp() - convert ASN.1 GeneralizedTime to timestamp
81 // asntime (in) ASN.1 GeneralizedTime to convert
82 // result (inout) timestamp to update or NULL to alloc a new one
85 // pointer to allocated timestamp
88 // if a new timestamp is allocated, the ownership goes to the caller
90 timestamp *GeneralizedTime_to_timestamp(GeneralizedTime_t * asntime, timestamp *result);
92 // GeneralizedTime_to_time_t() - convert ASN.1 GeneralizedTime to time_t
95 // asntime (in) ASN.1 GeneralizedTime to convert
101 time_t GeneralizedTime_to_time_t(GeneralizedTime_t * asntime);
103 // timestamp_GeneralizedTime_to() - convert ASN.1 timestamp to GeneralizedTime
106 // ts (in) timestam to convert
107 // result (inout) GeneralizedTime_t to update or NULL to alloc a new one
110 // pointer to allocated ASN.1 GeneralizedTime
113 // if a new GeneralizedTime is allocated, the ownership goes to the caller
115 GeneralizedTime_t *timestamp_to_GeneralizedTime(timestamp * ts, GeneralizedTime_t *result);