Modified the from removing to deprecated 76/56876/1
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Wed, 13 Jan 2016 08:59:18 +0000 (17:59 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Wed, 13 Jan 2016 08:59:18 +0000 (17:59 +0900)
Change-Id: I59035286210bee5bd5260320ae92c1928565f1d4

email-api/email-api-smime.c
email-api/include/email-api-smime.h

index 1b52e2f..835f127 100755 (executable)
 #include "email-core-signal.h"
 #include "email-ipc.h"
 
+EXPORT_API int email_add_certificate(char *certificate_path, char *email_address)
+{
+       EM_DEBUG_API_BEGIN("");
+       return EMAIL_ERROR_NOT_SUPPORTED;
+}
+
+EXPORT_API int email_delete_certificate(char *email_address)
+{
+       EM_DEBUG_API_BEGIN("");
+       return EMAIL_ERROR_NOT_SUPPORTED;
+}
+
+EXPORT_API int email_get_certificate(char *email_address, email_certificate_t **certificate)
+{
+       EM_DEBUG_API_BEGIN("");
+       return EMAIL_ERROR_NOT_SUPPORTED;
+}
+
+EXPORT_API int email_verify_certificate(char *certificate_path, int *verify)
+{
+       EM_DEBUG_API_BEGIN("");
+       return EMAIL_ERROR_NOT_SUPPORTED;
+}
+
 EXPORT_API int email_get_decrypt_message(int mail_id, email_mail_data_t **output_mail_data,
                                                                                email_attachment_data_t **output_attachment_data,
                                                                                int *output_attachment_count, int *verify)
index 75dbd7d..6517e2a 100755 (executable)
@@ -51,6 +51,46 @@ extern "C" {
 
 
 /**
+ * @brief Stores a public certificate information in the database.
+ *
+ * @since_tizen 2.3
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/email
+ *
+ * @param[in] certificate_path  The file path of public certificate
+ * @param[in] email_address     The keyword for searching the certificate information
+ *
+ * @return  #EMAIL_ERROR_NONE on success,
+ *          otherwise an error code (see #EMAIL_ERROR_XXX) on failure
+ */
+EXPORT_API int email_add_certificate(char *certificate_path, char *email_address) DEPRECATED;
+
+/**
+ * @brief Deletes a public certificate information from the database.
+ *
+ * @param[in]  email_address  The keyword for deleting the certificate information
+ *
+ * @return  #EMAIL_ERROR_NONE on success, 
+ *          otherwise an error code (see #EMAIL_ERROR_XXX) on failure
+ */
+EXPORT_API int email_delete_certificate(char *email_address) DEPRECATED;
+
+/**
+ * @brief Gets the the public certificate information from the database.
+ *
+ * @since_tizen 2.3
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/email
+ *
+ * @param[in]  email_address  The keyword for getting the certificate information
+ * @param[out] certificate    The certificate
+ *
+ * @return  #EMAIL_ERROR_NONE on success, 
+ *          otherwise an error code (see #EMAIL_ERROR_XXX) on failure
+ */
+EXPORT_API int email_get_certificate(char *email_address, email_certificate_t **certificate) DEPRECATED;
+
+/**
  * @brief Gets a decrypted message.
  *
  * @since_tizen 2.3
@@ -126,6 +166,22 @@ EXPORT_API int email_verify_signature(int mail_id, int *verify);
 EXPORT_API int email_verify_signature_ex(email_mail_data_t *input_mail_data, email_attachment_data_t *input_attachment_data, int input_attachment_count, int *verify);
 
 /**
+ * @brief Verifies a certificate.
+ *
+ * @since_tizen 2.3
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/email
+ *
+ * @param[in]   certificate_path  The path of the certificate
+ * @param[out]  verify            The verification status \n
+ *                                false : failed verification, true : verification successful
+ *
+ * @return  #EMAIL_ERROR_NONE on success,
+ *          otherwise an error code (see #EMAIL_ERROR_XXX) on failure
+ */
+EXPORT_API int email_verify_certificate(char *certificate_path, int *verify) DEPRECATED;
+
+/**
  * @brief Gets the certificate from the server (using exchange server).
  *
  * @since_tizen 2.3