Skip to content

Commit

Permalink
Fixed security issue in ccnl-core.c: Reply of the crypto server must
Browse files Browse the repository at this point in the history
be delivered by the cryptoface!
  • Loading branch information
blacksheeep committed Dec 2, 2013
1 parent b8680b5 commit 28e6cd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ccnl-core.c
Expand Up @@ -21,6 +21,9 @@
* 2013-10-12 add crypto support <christopher.scherb@unibas.ch>
*/

#include "ccnl-core.h"


#define CCNL_VERSION "2013-07-27"


Expand Down Expand Up @@ -925,7 +928,8 @@ ccnl_core_RX_i_or_c(struct ccnl_relay_s *relay, struct ccnl_face_s *from,

#ifdef CCNL_USE_MGMT_SIGNATUES
if (p->compcnt == 2 && !memcmp(p->comp[0], "ccnx", 4)
&& !memcmp(p->comp[1], "crypto", 6)) {
&& !memcmp(p->comp[1], "crypto", 6) &&
from == relay->crypto_face) {
rc = ccnl_crypto(relay, buf, p, from); goto Done;
}
#endif /*CCNL_USE_MGMT_SIGNATUES*/
Expand Down

0 comments on commit 28e6cd5

Please sign in to comment.