projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.9.2
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
security
/
include
/
internal
/
psinterface.h
diff --git
a/resource/csdk/security/include/internal/ocsecurityinternal.h
b/resource/csdk/security/include/internal/psinterface.h
similarity index 50%
rename from
resource/csdk/security/include/internal/ocsecurityinternal.h
rename to
resource/csdk/security/include/internal/psinterface.h
index
d080546
..
b48c674
100644
(file)
--- a/
resource/csdk/security/include/internal/ocsecurityinternal.h
+++ b/
resource/csdk/security/include/internal/psinterface.h
@@
-1,6
+1,6
@@
//******************************************************************
//
//******************************************************************
//
-// Copyright 201
4
Intel Mobile Communications GmbH All Rights Reserved.
+// Copyright 201
5
Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
@@
-18,35
+18,29
@@
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#ifndef OC_SECURITY_INTERNAL_H
-#define OC_SECURITY_INTERNAL_H
-
-#include "ocsecurityconfig.h"
+#ifndef IOTVT_SRM_PSI_H
+#define IOTVT_SRM_PSI_H
/**
/**
- * This callback is used by lower stack (i.e. CA layer) to retrieve PSK
- * credentials from RI security layer.
- *
- * Note: When finished, caller should initialize memory to zeroes and
- * invoke OCFree to delete @p credInfo.
+ * Reads the Secure Virtual Database from PS into dynamically allocated
+ * memory buffer.
*
*
- * @
param credInfo
- *
binary blob containing PSK credentials
+ * @
note Caller of this method MUST use OCFree() method to release memory
+ *
referenced by return value.
*
*
- * @retval
none
+ * @retval
reference to memory buffer containing SVR database.
*/
*/
-#ifdef __WITH_DTLS__
-void GetDtlsPskCredentials(CADtlsPskCredsBlob_t **credInfo);
-#endif //__WITH_DTLS__
-
+char * GetSVRDatabase();
/**
/**
- * This
internal API removes/clears the global variable holding the security
- *
config data. This needs to be invoked when OIC stack is shutting down
.
+ * This
method is used by a entity handlers of SVR's to update
+ *
SVR database
.
*
*
- * @retval none
+ * @param rsrcName string denoting the SVR name ("acl", "cred", "pstat" etc).
+ * @param jsonObj JSON object containing the SVR contents.
+ *
+ * @retval OC_STACK_OK for Success, otherwise some error value
*/
*/
-void DeinitOCSecurityInfo();
-
-#endif //OC_SECURITY_INTERNAL_H
+OCStackResult UpdateSVRDatabase(const char* rsrcName, cJSON* jsonObj);
+#endif //IOTVT_SRM_PSI_H