blob: 204a59266c42670618de68bbf16e8592a6ecdffe [file] [log] [blame]
akmhoque7c64d802013-03-05 10:18:37 -06001#ifndef _NLSR_KM_UTIL_H_
2#define _NLSR_KM_UTIL_H_
3
4int
5contain_key_name(const unsigned char *ccnb,
6 struct ccn_parsed_ContentObject *pco);
7
8struct ccn_charbuf *
9get_key_name(const unsigned char *ccnb,
10 struct ccn_parsed_ContentObject *pco);
11
12int
13check_for_name_component_in_name(const struct ccn_charbuf *name,
14 const struct ccn_indexbuf *indx,
15 const char *component);
16int
17check_for_tag_component_in_name(const struct ccn_charbuf *name,
18 const struct ccn_indexbuf *indx,
19 const char *component);
20enum key_type
21get_key_type_from_key_name(struct ccn_charbuf *keyname);
22
akmhoque7adb2772013-03-05 16:30:59 -060023int
24get_orig_router_from_key_name(struct ccn_charbuf *orig_router,
25 struct ccn_charbuf *name);
26
akmhoque7c64d802013-03-05 10:18:37 -060027
28int
29appendLifetime(struct ccn_charbuf *cb, int lifetime);
30
31#endif