Updated libcoap to send messages using secure port
authorSachin Agrawal <sachin.agrawal@intel.com>
Wed, 5 Nov 2014 02:30:34 +0000 (18:30 -0800)
committerSachin Agrawal <sachin.agrawal@intel.com>
Wed, 5 Nov 2014 21:46:17 +0000 (13:46 -0800)
commit7492775381254895edbe84754a27947d6f4022f9
tree48ee23cdc60b6219e36b553bbd9f10ae663e4d38
parentc9258c8bfe191494eccee95d8d9a4374d9f04e0e
Updated libcoap to send messages using secure port

Whenever a REST request is received by OIC Stack on secure
port, it needs to keep track of this fact for two reasons:
1) It allows upper layer to grant/deny access to secure resource
if the request was unauthenticated.
2) It also allows OC Stack to encrypt the response for a secure
request.
Since existing code was using a mechanism of send_flag to keep
track of various send mechanisms, it was modified to a bit mask
flag.

Change-Id: I293d4378a1e90234daf2553b6c6defdb6a3abac5
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
csdk/libcoap-4.1.1/net.c
csdk/libcoap-4.1.1/net.h
csdk/occoap/include/occoaphelper.h
csdk/occoap/src/occoap.c
csdk/occoap/src/occoaphelper.c