This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from openconnectivity/develop
Merge develop into master
- Loading branch information
Showing
34 changed files
with
1,120 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: OTGC | ||
Version: 1.4.0 | ||
Version: 2.0.2 | ||
Section: custom | ||
Priority: optional | ||
Architecture: amd64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
# Constants | ||
PROJECT_NAME="otgc" | ||
VERSION="1.4.0" | ||
VERSION="2.0.2" | ||
|
||
program=$0 | ||
|
||
|
Submodule iotivity-lite
updated
from 83dfd2 to a27228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
diff --git a/include/oc_pki.h b/include/oc_pki.h | ||
index acbab8c..c16b512 100644 | ||
--- a/include/oc_pki.h | ||
+++ b/include/oc_pki.h | ||
@@ -45,6 +45,9 @@ int oc_pki_add_trust_anchor(size_t device, const unsigned char *cert, | ||
void oc_pki_set_security_profile(size_t device, | ||
oc_sp_types_t supported_profiles, | ||
oc_sp_types_t current_profile, int mfg_credid); | ||
+ | ||
+void oc_pki_remove_credential_by_credid(size_t device, long credid); | ||
+ | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
diff --git a/security/oc_pki.c b/security/oc_pki.c | ||
index a3ecc4f..97e8fb3 100644 | ||
--- a/security/oc_pki.c | ||
+++ b/security/oc_pki.c | ||
@@ -334,6 +334,16 @@ oc_pki_add_trust_anchor(size_t device, const unsigned char *cert, | ||
return pki_add_trust_anchor(device, cert, cert_size, OC_CREDUSAGE_TRUSTCA); | ||
} | ||
|
||
+void | ||
+oc_pki_remove_credential_by_credid(size_t device, long credid) | ||
+{ | ||
+ oc_sec_cred_t *cred = oc_sec_get_cred_by_credid(credid, device); | ||
+ if (cred) | ||
+ { | ||
+ oc_sec_remove_cred(cred, device); | ||
+ } | ||
+} | ||
+ | ||
#else /* OC_PKI */ | ||
typedef int dummy_declaration; | ||
#endif /* !OC_PKI */ | ||
diff --git a/swig/swig_interfaces/oc_pki.i b/swig/swig_interfaces/oc_pki.i | ||
index ae654bb..c4bae02 100644 | ||
--- a/swig/swig_interfaces/oc_pki.i | ||
+++ b/swig/swig_interfaces/oc_pki.i | ||
@@ -32,6 +32,6 @@ | ||
%rename (addMfgTrustAnchor) oc_pki_add_mfg_trust_anchor; | ||
%rename (addTrustAnchor) oc_pki_add_trust_anchor; | ||
%rename (setSecurityProfile) oc_pki_set_security_profile; | ||
+%rename (removeCredentialByCredid) oc_pki_remove_credential_by_credid; | ||
|
||
- | ||
-%include "oc_pki.h" | ||
\ No newline at end of file | ||
+%include "oc_pki.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.