2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Contact: Bumjin Im <bj.im@samsung.com>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License
20 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
22 * @brief This file contains list of all protocols suported by security-sever.
25 #ifndef _SECURITY_SERVER_PROTOCOLS_
26 #define _SECURITY_SERVER_PROTOCOLS_
31 namespace SecurityServer {
33 extern char const * const SERVICE_SOCKET_SHARED_MEMORY;
34 extern char const * const SERVICE_SOCKET_GET_GID;
35 extern char const * const SERVICE_SOCKET_PRIVILEGE_BY_PID;
36 extern char const * const SERVICE_SOCKET_APP_PERMISSIONS;
37 extern char const * const SERVICE_SOCKET_APP_PRIVILEGE_BY_NAME;
38 extern char const * const SERVICE_SOCKET_COOKIE_GET;
39 extern char const * const SERVICE_SOCKET_COOKIE_CHECK;
40 extern char const * const SERVICE_SOCKET_COOKIE_CHECK_TMP;
41 extern char const * const SERVICE_SOCKET_OPEN_FOR;
42 extern char const * const SERVICE_SOCKET_PASSWD_CHECK;
43 extern char const * const SERVICE_SOCKET_PASSWD_SET;
44 extern char const * const SERVICE_SOCKET_PASSWD_RESET;
46 enum class AppPermissionsAction { ENABLE, DISABLE };
59 enum class PrivilegeCheckHdrs
65 extern const size_t COOKIE_SIZE;
67 enum class PasswordHdrs
73 HDR_SET_PWD_MAX_CHALLENGE,
78 extern const size_t MAX_PASSWORD_LEN;
79 extern const unsigned int MAX_PASSWORD_HISTORY;
80 extern const unsigned int PASSWORD_INFINITE_EXPIRATION_DAYS;
81 extern const time_t PASSWORD_INFINITE_EXPIRATION_TIME;
82 extern const unsigned int PASSWORD_INFINITE_ATTEMPT_COUNT;
84 extern const int SECURITY_SERVER_MAX_OBJ_NAME;
86 } // namespace SecuritySever
88 #endif // _SECURITY_SERVER_PROTOCOLS_