Refactor PSK Credential retrieval interface
[platform/upstream/iotivity.git] / resource / csdk / security / include / securevirtualresourcetypes.h
index e08cda4..2533a78 100644 (file)
@@ -43,6 +43,9 @@
 
 #include <stdint.h> // for uint8_t typedef
 #include <stdbool.h>
+#ifdef __WITH_X509__
+#include "byte_array.h"
+#endif /* __WITH_X509__ */
 
 #ifdef __cplusplus
 extern "C" {
@@ -259,6 +262,10 @@ typedef char *OicUrn_t; //TODO is URN type defined elsewhere?
 typedef struct OicUuid OicUuid_t; //TODO is UUID type defined elsewhere?
 
 
+#ifdef __WITH_X509__
+typedef struct OicSecCrl OicSecCrl_t;
+#endif /* __WITH_X509__ */
+
 /**
  * @brief   /oic/uuid (Universal Unique Identifier) data type.
  */
@@ -437,6 +444,15 @@ struct OicSecSvc
     OicSecSvc_t             *next;
 };
 
+#ifdef __WITH_X509__
+struct OicSecCrl
+{
+    uint16_t CrlId;
+    ByteArray ThisUpdate;   
+    ByteArray CrlData;      
+};
+#endif /* __WITH_X509__ */
+
 #ifdef __cplusplus
 }
 #endif