4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __EMAIL_API_SMIME_H__
23 #define __EMAIL_API_SMIME_H__
25 #include "email-types.h"
29 #endif /* __cplusplus */
31 EXPORT_API int email_add_certificate(char *certificate_path, char *email_address);
33 EXPORT_API int email_delete_certificate(char *email_address);
35 EXPORT_API int email_get_certificate(char *email_address, email_certificate_t **certificate);
37 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);
39 EXPORT_API int email_verify_signature(int mail_id, int *verify);
41 EXPORT_API int email_verify_certificate(char *certificate_path, int *verify);
43 EXPORT_API int email_get_resolve_recipients(int account_id, char *email_address, unsigned *handle);
45 EXPORT_API int email_validate_certificate(int account_id, char *email_address, unsigned *handle);
47 EXPORT_API int email_free_certificate(email_certificate_t **certificate, int count);
51 #endif /* __cplusplus */
53 #endif /* __EMAIL_API_SMIME_H__ */