akmhoque | 7c64d80 | 2013-03-05 10:18:37 -0600 | [diff] [blame] | 1 | #ifndef _NLSR_KM_UTIL_H_ |
| 2 | #define _NLSR_KM_UTIL_H_ |
| 3 | |
| 4 | int |
| 5 | contain_key_name(const unsigned char *ccnb, |
| 6 | struct ccn_parsed_ContentObject *pco); |
| 7 | |
| 8 | struct ccn_charbuf * |
| 9 | get_key_name(const unsigned char *ccnb, |
| 10 | struct ccn_parsed_ContentObject *pco); |
| 11 | |
| 12 | int |
| 13 | check_for_name_component_in_name(const struct ccn_charbuf *name, |
| 14 | const struct ccn_indexbuf *indx, |
| 15 | const char *component); |
| 16 | int |
| 17 | check_for_tag_component_in_name(const struct ccn_charbuf *name, |
| 18 | const struct ccn_indexbuf *indx, |
| 19 | const char *component); |
| 20 | enum key_type |
| 21 | get_key_type_from_key_name(struct ccn_charbuf *keyname); |
| 22 | |
akmhoque | 7c64d80 | 2013-03-05 10:18:37 -0600 | [diff] [blame] | 23 | |
| 24 | int |
| 25 | appendLifetime(struct ccn_charbuf *cb, int lifetime); |
| 26 | |
akmhoque | b8dbba8 | 2013-03-11 11:34:17 -0500 | [diff] [blame] | 27 | char * |
| 28 | get_orig_router_from_key_name(struct ccn_charbuf *name, int more, int type); |
| 29 | |
| 30 | |
| 31 | |
| 32 | char * |
| 33 | get_name_segments_from_name(struct ccn_charbuf *name, |
| 34 | int start_indx, int end_indx); |
| 35 | |
akmhoque | 7c64d80 | 2013-03-05 10:18:37 -0600 | [diff] [blame] | 36 | #endif |