32c9f729a1ae627714a880c0150c12d4b852383f
[framework/security/security-server.git] / src / include / security-server-util.h
1 /*
2  *  security-server
3  *
4  *  Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd All Rights Reserved
5  *
6  *  Contact: Bumjin Im <bj.im@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 SECURITY_SERVER_UTIL_H
23 #define SECURITY_SERVER_UTIL_H
24
25 /* Only for test */
26 /* These msg type MUST BE REMOVED before release **************************/
27 #define SECURITY_SERVER_MSG_TYPE_GET_ALL_COOKIES_REQUEST        0x51
28 #define SECURITY_SERVER_MSG_TYPE_GET_ALL_COOKIES_RESPONSE       0x52
29 #define SECURITY_SERVER_MSG_TYPE_GET_COOKIEINFO_FROM_PID_REQUEST        0x53
30 #define SECURITY_SERVER_MSG_TYPE_GET_COOKIEINFO_RESPONSE        0x54
31 #define SECURITY_SERVER_MSG_TYPE_GET_COOKIEINFO_FROM_COOKIE_REQUEST     0x55
32 /**********************************************************************/
33
34 int util_process_all_cookie(int sockfd, cookie_list* list);
35 int util_process_cookie_from_pid(int sockfd, cookie_list* list);
36 int util_process_cookie_from_cookie(int sockfd, cookie_list* list);
37
38
39 #endif