*
******************************************************************/
-#ifndef __DEVICE_CERTIFICATE_MANAGER_H__
-#define __DEVICE_CERTIFICATE_MANAGER_H__
+#ifndef __TIZEN_SECURITY_DEVICE_CERTIFICATE_MANAGER_H__
+#define __TIZEN_SECURITY_DEVICE_CERTIFICATE_MANAGER_H__
#include <stddef.h>
#include <tizen.h>
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
- * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
- * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
+ * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
* @retval #DCM_ERROR_SOCKET Socket error between client and server
+ * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
* @retval #DCM_ERROR_UNKNOWN Unknown error
*
* @see dcm_free_key_context()
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
- * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
- * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
+ * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
* @retval #DCM_ERROR_SOCKET Socket error between client and server
+ * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
* @retval #DCM_ERROR_NO_DATA No such key context object
* @retval #DCM_ERROR_UNKNOWN Unknown error
*
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
- * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
- * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
+ * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
* @retval #DCM_ERROR_SOCKET Socket error between client and server
+ * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
* @retval #DCM_ERROR_NO_DATA No certificate chain available
* @retval #DCM_ERROR_UNKNOWN Unknown error
*/
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
- * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
- * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
+ * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
* @retval #DCM_ERROR_SOCKET Socket error between client and server
+ * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
* @retval #DCM_ERROR_NO_DATA No certificate chain available
* @retval #DCM_ERROR_UNKNOWN Unknown error
*/
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
- * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
- * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
+ * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
* @retval #DCM_ERROR_SOCKET Socket error between client and server
+ * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
* @retval #DCM_ERROR_NO_DATA No certificate chain available
* @retval #DCM_ERROR_UNKNOWN Unknown error
*/
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
- * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
- * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
+ * @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid
* @retval #DCM_ERROR_SOCKET Socket error between client and server
+ * @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
* @retval #DCM_ERROR_UNKNOWN Unknown error
*/
int dcm_create_signature(const void *key_ctx, dcm_digest_algorithm_e md,
char **signature, size_t *signature_len);
/**
- * @brief Handle to a struct containing E2EE message bundle
+ * @brief Handle to a struct containing E2EE message bundle.
* @since_tizen 6.5
*/
typedef struct dcm_e2ee_bundle_s* dcm_e2ee_bundle_h;
/**
- * @platform
* @brief Creates an E2EE message bundle from a binary message.
* @since_tizen 6.5
*
* @return #DCM_ERROR_NONE on success, otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
+ * @retval #DCM_ERROR_NOT_SUPPORTED The message is not in Tizen platform format.
* @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid (message = NULL or bundle = NULL)
* or the message format is invalid.
- * @retval #DCM_ERROR_NOT_SUPPORTED The message is not in Tizen platform format.
*
* @see dcm_e2ee_free_bundle()
* @see #dcm_e2ee_bundle_h
int dcm_e2ee_create_bundle(unsigned char *message, size_t message_len, dcm_e2ee_bundle_h* bundle);
/**
- * @platform
* @brief Releases the memory associated with E2EE message bundle.
* @since_tizen 6.5
*
void dcm_e2ee_free_bundle(dcm_e2ee_bundle_h bundle);
/**
- * @platform
* @brief Retrieves a pointer to the whole binary message contained in the E2EE bundle.
* @since_tizen 6.5
*
size_t* message_len);
/**
- * @platform
* @brief Retrieves a pointer to the platform string contained in the E2EE bundle.
* @since_tizen 6.5
*
int dcm_e2ee_get_bundle_platform(const dcm_e2ee_bundle_h bundle, const char** platform);
/**
- * @platform
* @brief Retrieves a pointer to the package id string contained in the E2EE bundle.
* @since_tizen 6.5
*
int dcm_e2ee_get_bundle_pkg_id(const dcm_e2ee_bundle_h bundle, const char** pkg_id);
/**
- * @platform
* @brief Retrieves a pointer to the payload byte sequence contained in the E2EE bundle.
* @since_tizen 6.5
*
* otherwise a negative error value
*
* @retval #DCM_ERROR_NONE Successful
+ * @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
+ * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
* @retval #DCM_ERROR_INVALID_PARAMETER Input parameter is invalid (@a key_ctx = NULL, @a payload =
* NULL but @a payload_len > 0, @a bundle = NULL, @a signature
* = NULL or @a signature_len = NULL)
* @retval #DCM_ERROR_OUT_OF_MEMORY Out of memory during processing
- * @retval #DCM_ERROR_PERMISSION_DENIED Failed to access device certificate manager
- * @retval #DCM_ERROR_NOT_SUPPORTED Feature needed to run API is not supported
* @retval #DCM_ERROR_SOCKET Socket error between client and server
* @retval #DCM_ERROR_UNKNOWN Unknown error
*
}
#endif
-#endif /* __DEVICE_CERTIFICATE_MANAGER_H__ */
+#endif /* __TIZEN_SECURITY_DEVICE_CERTIFICATE_MANAGER_H__ */