Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iotivity-lite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IoTivity
iotivity-lite
Commits
67df64e4
Commit
67df64e4
authored
Jan 06, 2020
by
Kishen Maloor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose security profiles resource in all builds
Signed-off-by:
Kishen Maloor
<
kishen.maloor@intel.com
>
parent
25b42a7d
Pipeline
#75
passed with stage
in 1 minute and 28 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
api/oc_discovery.c
api/oc_discovery.c
+2
-2
include/oc_ri.h
include/oc_ri.h
+1
-1
security/oc_sp.c
security/oc_sp.c
+0
-4
security/oc_svr.c
security/oc_svr.c
+2
-1
No files found.
api/oc_discovery.c
View file @
67df64e4
...
...
@@ -165,11 +165,11 @@ process_device_resources(CborEncoder *links, oc_request_t *request,
request
,
oc_string
(
anchor
),
links
))
matches
++
;
#ifdef OC_PKI
if
(
filter_resource
(
oc_core_get_resource_by_index
(
OCF_SEC_SP
,
device_index
),
request
,
oc_string
(
anchor
),
links
))
matches
++
;
#ifdef OC_PKI
if
(
filter_resource
(
oc_core_get_resource_by_index
(
OCF_SEC_CSR
,
device_index
),
request
,
oc_string
(
anchor
),
links
))
matches
++
;
...
...
@@ -389,11 +389,11 @@ process_oic_1_1_device_object(CborEncoder *device, oc_request_t *request,
oc_rep_array
(
links
)))
matches
++
;
#ifdef OC_PKI
if
(
filter_oic_1_1_resource
(
oc_core_get_resource_by_index
(
OCF_SEC_SP
,
device_num
),
request
,
oc_rep_array
(
links
)))
matches
++
;
#ifdef OC_PKI
if
(
filter_oic_1_1_resource
(
oc_core_get_resource_by_index
(
OCF_SEC_CSR
,
device_num
),
request
,
oc_rep_array
(
links
)))
...
...
include/oc_ri.h
View file @
67df64e4
...
...
@@ -108,8 +108,8 @@ typedef enum {
OCF_SEC_PSTAT
,
OCF_SEC_ACL
,
OCF_SEC_CRED
,
#ifdef OC_PKI
OCF_SEC_SP
,
#ifdef OC_PKI
OCF_SEC_CSR
,
OCF_SEC_ROLES
,
#endif
/* OC_PKI */
...
...
security/oc_sp.c
View file @
67df64e4
...
...
@@ -15,7 +15,6 @@
*/
#ifdef OC_SECURITY
#ifdef OC_PKI
#include "oc_sp.h"
#include "oc_api.h"
#include "oc_core_res.h"
...
...
@@ -229,7 +228,4 @@ post_sp(oc_request_t *request, oc_interface_mask_t iface_mask, void *data)
}
}
#else
/* OC_PKI */
typedef
int
dummy_declaration
;
#endif
/* !OC_PKI */
#endif
/* OC_SECURITY */
security/oc_svr.c
View file @
67df64e4
...
...
@@ -57,10 +57,11 @@ oc_sec_create_svr(void)
OC_IF_BASELINE
,
OC_DISCOVERABLE
|
OC_SECURE
,
get_cred
,
0
,
post_cred
,
delete_cred
,
1
,
"oic.r.cred"
);
#ifdef OC_PKI
oc_core_populate_resource
(
OCF_SEC_SP
,
i
,
"/oic/sec/sp"
,
OC_IF_BASELINE
,
OC_IF_BASELINE
,
OC_DISCOVERABLE
|
OC_SECURE
,
get_sp
,
0
,
post_sp
,
0
,
1
,
"oic.r.sp"
);
#ifdef OC_PKI
oc_core_populate_resource
(
OCF_SEC_CSR
,
i
,
"/oic/sec/csr"
,
OC_IF_BASELINE
,
OC_IF_BASELINE
,
OC_DISCOVERABLE
|
OC_SECURE
,
get_csr
,
0
,
0
,
0
,
1
,
"oic.r.csr"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment