Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / resource / csdk / stack / samples / linux / secure / common.h
index 408ba59..ea899c3 100644 (file)
 #ifndef OCSAMPLE_COMMON_H_
 #define OCSAMPLE_COMMON_H_
 
+#include "ocstack.h"
+
 /* Get the result in string format. */
 const char *getResult(OCStackResult result);
 
-/* Read the credentials from persistent storage and provide to OC stack. */
-OCStackResult SetCredentials(const char* filename);
+/* Removes the new line character from a NULL terminated C string. */
+void StripNewLineChar(char* str);
 
 #endif //OCSAMPLE_COMMON_H_
 
+