Tizen 2.0 Release
[platform/core/messaging/email-service.git] / email-api / include / email-api-smime.h
1 /*
2 *  email-service
3 *
4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5 *
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
7
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
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
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.
19 *
20 */
21
22 #ifndef __EMAIL_API_SMIME_H__
23 #define __EMAIL_API_SMIME_H__
24
25 #include "email-types.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31 EXPORT_API int email_add_certificate(char *certificate_path, char *email_address);
32
33 EXPORT_API int email_delete_certificate(char *email_address);
34
35 EXPORT_API int email_get_certificate(char *email_address, email_certificate_t **certificate);
36
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);
38
39 EXPORT_API int email_verify_signature(int mail_id, int *verify);
40
41 EXPORT_API int email_verify_certificate(char *certificate_path, int *verify);
42
43 EXPORT_API int email_get_resolve_recipients(int account_id, char *email_address, unsigned *handle);
44
45 EXPORT_API int email_validate_certificate(int account_id, char *email_address, unsigned *handle);
46
47 EXPORT_API int email_free_certificate(email_certificate_t **certificate, int count);
48
49 #ifdef __cplusplus
50 }
51 #endif /* __cplusplus */
52
53 #endif /* __EMAIL_API_SMIME_H__ */