akmhoque | 7c64d80 | 2013-03-05 10:18:37 -0600 | [diff] [blame] | 1 | #ifndef _NLSR_KM_H_ |
| 2 | #define _NLSR_KM_H_ |
| 3 | |
| 4 | enum key_type{ |
| 5 | ROOT_KEY, //0 |
| 6 | SITE_KEY, //1 |
| 7 | OPERATOR_KEY,//2 |
| 8 | ROUTING_KEY,//3 |
| 9 | NLSR_KEY,//4 |
| 10 | UNKNOWN_KEY//5 |
| 11 | }; |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | int |
| 17 | sign_content_with_user_defined_keystore(struct ccn_charbuf *content_name, |
| 18 | struct ccn_charbuf *resultbuf, |
| 19 | const void *data, |
| 20 | size_t data_size, |
| 21 | char *keystore_path, |
| 22 | char *keystore_passphrase, |
| 23 | char *key_repo_name, |
| 24 | char *site_name, |
| 25 | char *router_name); |
| 26 | |
| 27 | int contain_key_name(const unsigned char *ccnb, |
| 28 | struct ccn_parsed_ContentObject *pco); |
| 29 | struct ccn_charbuf * get_key_name(const unsigned char *ccnb, |
| 30 | struct ccn_parsed_ContentObject *pco); |
| 31 | |
akmhoque | 6e2ba84 | 2013-03-05 19:35:26 -0600 | [diff] [blame] | 32 | int verify_key(const unsigned char *ccnb, |
akmhoque | b795818 | 2013-03-11 12:03:54 -0500 | [diff] [blame] | 33 | struct ccn_parsed_ContentObject *pco, |
| 34 | int content_type); |
akmhoque | 7c64d80 | 2013-03-05 10:18:37 -0600 | [diff] [blame] | 35 | |
| 36 | #endif |