Get Content by COntent Name
diff --git a/nlsr_km.c b/nlsr_km.c
index 3aa706b..32d6102 100644
--- a/nlsr_km.c
+++ b/nlsr_km.c
@@ -395,7 +395,6 @@
if ( nlsr->debugging )
printf("verify key called\n");
int ret=-1;
- //int res;
if ( contain_key_name(ccnb, pco) == 1){
diff --git a/nlsr_sync.c b/nlsr_sync.c
index 54eb4e3..d98bd36 100644
--- a/nlsr_sync.c
+++ b/nlsr_sync.c
@@ -187,8 +187,8 @@
int allow_stale = 1;
int content_only = 1;
int scope = -1;
- const unsigned char *ptr,*ptr_in;
- size_t length,length_in;
+ const unsigned char *ptr;//,*ptr_in;
+ size_t length;//,length_in;
int resolve_version = CCN_V_HIGHEST;
int timeout_ms = 3000;
const unsigned lifetime_default = CCN_INTEREST_LIFETIME_SEC << 12;
@@ -261,13 +261,13 @@
else{
if ( nlsr->debugging )
printf("Key verification is successful :)\n");
- ptr_in=ptr;
- length_in=length;
- ccn_content_get_value(ptr_in, length_in, &pcobuf1,
- &ptr_in, &length_in);
- *content_data = (unsigned char *) calloc(length_in,
+ //ptr_in=ptr;
+ //length_in=length;
+ //ccn_content_get_value(ptr_in, length_in, &pcobuf1,
+ //&ptr_in, &length_in);
+ *content_data = (unsigned char *) calloc(length,
sizeof(char *));
- memcpy (*content_data, ptr_in, length_in);
+ memcpy (*content_data, ptr, length);
ret=0;
}
}