Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.7.0.4
openapi_user_manager.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2020 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_user_manager.h
28 *
29 * @purpose User Manager Configuration and Status
30 *
31 * @component OpEN
32 *
33 * @create 18/01/2013
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_USER_MGR_H_INCLUDED
39 #define OPENAPI_USER_MGR_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
44 typedef enum
45 {
50 
52 typedef enum
53 {
58 
60 typedef enum
61 {
72 
74 typedef enum
75 {
81 
83 typedef enum
84 {
92 
94 typedef enum
95 {
101 
103 typedef enum
104 {
111 
113 typedef enum
114 {
120 
122 typedef enum
123 {
124  OPEN_LOGIN_TYPE_UNKNWN = 0,
125  OPEN_LOGIN_TYPE_SERIAL = 1,
126  OPEN_LOGIN_TYPE_TELNET = 2,
127  OPEN_LOGIN_TYPE_SSH = 3,
128  OPEN_LOGIN_TYPE_HTTP = 4,
129  OPEN_LOGIN_TYPE_HTTPS = 5,
130  OPEN_LOGIN_TYPE_SNMP = 6,
131  OPEN_LOGIN_TYPE_PING = 7,
132  OPEN_LOGIN_TYPE_UDS = 8,
133  OPEN_LOGIN_TYPE_LAST = 9
135 
137 typedef enum
138 {
139  OPEN_ENCRYPT_TYPE_NONE = 0,
140  OPEN_ENCRYPT_TYPE_AES = 1,
141  OPEN_ENCRYPT_TYPE_MD5_SALT = 2,
142  OPEN_ENCRYPT_TYPE_LAST = 3
144 
145 #define OPEN_LOGIN_SIZE 65
146 #define OPEN_PASSWORD_SIZE 65
148 /*****************************************************************/
174 open_error_t openapiUserSet(openapiClientHandle_t *client_handle,
175  open_buffdesc *userName,
176  open_buffdesc *password);
177 
178 /*****************************************************************/
196  open_buffdesc *username);
197 
198 /*****************************************************************/
218  open_buffdesc *prevUserName,
219  open_buffdesc *nextUserName);
220 
221 /*****************************************************************/
239  OPEN_LOGIN_TYPE_t sessionType,
240  uint32_t *prevSessionID);
241 
242 /*****************************************************************/
257  uint32_t sessionID);
258 
259 /*****************************************************************/
274  uint32_t *maxUsers);
275 
276 /*****************************************************************/
299  open_buffdesc *userName,
301 
302 /*****************************************************************/
323  open_buffdesc *userName,
325 
326 /*****************************************************************/
340  uint32_t *userNameSize);
341 
342 /*****************************************************************/
361  open_buffdesc *userName);
362 
363 /*****************************************************************/
379  uint32_t *passwordMinSize,
380  uint32_t *passwordMaxSize);
381 
382 /*****************************************************************/
404  open_buffdesc *userName);
405 
406 /*****************************************************************/
430  OPEN_ACCESS_LEVEL_t accessLevel,
431  open_buffdesc *authListName);
432 
433 /*****************************************************************/
468  OPEN_ACCESS_LEVEL_t accessLevel,
469  open_buffdesc *authListName,
470  open_buffdesc *authMethod);
471 
472 /*****************************************************************/
496  OPEN_ACCESS_LEVEL_t authLevel,
497  open_buffdesc *authListName,
498  open_buffdesc *methodList);
499 
500 /*****************************************************************/
519  OPEN_ACCESS_LEVEL_t authLevel,
520  open_buffdesc *authListName);
521 
522 /*****************************************************************/
543  OPEN_ACCESS_LEVEL_t authLevel,
544  open_buffdesc *prevAuthListName,
545  open_buffdesc *nextAuthListName);
546 /*****************************************************************/
568  OPEN_ACCESS_LEVEL_t accessLevel,
569  open_buffdesc *authListName);
570 
571 /*****************************************************************/
595  OPEN_ACCESS_LINE_t accessLine,
596  OPEN_ACCESS_LEVEL_t accessLevel,
597  open_buffdesc *authListName);
598 
599 /*****************************************************************/
619  OPEN_ACCESS_LINE_t accessLine,
620  OPEN_ACCESS_LEVEL_t accessLevel,
621  open_buffdesc *authListName);
622 
623 /*****************************************************************/
642  OPEN_ACCESS_LINE_t accessLine,
643  OPEN_ACCESS_LEVEL_t accessLevel);
644 
645 /*****************************************************************/
662  uint32_t *authListNameSize);
663 
664 /*****************************************************************/
683  uint32_t *maxAuthMethods);
684 
685 
686 /*****************************************************************/
705  open_buffdesc *authListName);
706 
707 /*****************************************************************/
726  open_buffdesc *acctListName);
727 
728 /*****************************************************************/
747  open_buffdesc *authorListName);
748 
749 /*****************************************************************/
773  open_buffdesc *authorListName);
774 
775 /*****************************************************************/
806  open_buffdesc *authorListName,
807  open_buffdesc *authorMethod);
808 
809 /*****************************************************************/
826  uint32_t *authorListNameSize);
827 
828 /*****************************************************************/
846  uint32_t *maxAuthorMethods);
847 
848 /*****************************************************************/
872  open_buffdesc *authorListName);
873 
874 /*****************************************************************/
895  open_buffdesc *authorListName);
896 
897 /*****************************************************************/
922  open_buffdesc *prevAuthorListName,
923  open_buffdesc *nextAuthorListName);
924 
925 /*****************************************************************/
951  open_buffdesc *authorListName,
952  open_buffdesc *authorMethodList);
953 
954 /*****************************************************************/
974  OPEN_ACCESS_LINE_t accessLine,
976  open_buffdesc *authorListName);
977 
978 /*****************************************************************/
998  OPEN_ACCESS_LINE_t accessLine,
1000  open_buffdesc *authorListName);
1001 
1002 /*****************************************************************/
1022  OPEN_ACCESS_LINE_t accessLine,
1024 
1025 /*****************************************************************/
1049  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1050  OPEN_USER_MGR_RECORD_TYPES_t recordType,
1051  open_buffdesc *acctListName);
1052 
1053 /*****************************************************************/
1084  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1085  open_buffdesc *acctListName,
1086  open_buffdesc *acctMethod);
1087 
1088 /*****************************************************************/
1110  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1111  open_buffdesc *acctListName,
1112  open_buffdesc *methodList);
1113 
1114 /*****************************************************************/
1134  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1135  open_buffdesc *acctListName,
1136  OPEN_USER_MGR_RECORD_TYPES_t *recordType);
1137 
1138 /*****************************************************************/
1156  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1157  open_buffdesc *acctListName);
1158 
1159 /*****************************************************************/
1182  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1183  open_buffdesc *prevAcctListName,
1184  open_buffdesc *nextAcctListName);
1185 
1186 /*****************************************************************/
1210  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1211  open_buffdesc *acctListName);
1212 
1213 /*****************************************************************/
1233  OPEN_ACCESS_LINE_t accessLine,
1234  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1235  open_buffdesc *acctListName);
1236 
1237 /*****************************************************************/
1256  OPEN_ACCESS_LINE_t accessLine,
1257  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1258  open_buffdesc *acctListName);
1259 
1260 /*****************************************************************/
1277  OPEN_ACCESS_LINE_t accessLine,
1278  OPEN_USER_MGR_ACCT_TYPES_t acctType);
1279 
1280 /*****************************************************************/
1297  uint32_t *maxAcctMethods);
1298 
1299 /*****************************************************************/
1315  uint32_t *acctListNameSize);
1316 
1317 /*****************************************************************/
1336  open_buffdesc *enablePswd);
1337 
1338 /*****************************************************************/
1354 
1355 /*****************************************************************/
1381  open_buffdesc *userName,
1382  open_buffdesc *password,
1383  OPEN_LOGIN_ACCESS_LEVELS_t *accessLevel);
1384 
1385 /*****************************************************************/
1410  open_buffdesc *userName,
1411  open_buffdesc *password,
1412  open_buffdesc *logintype,
1413  open_buffdesc *inetaddr,
1414  uint32_t *accessLevel,
1415  open_buffdesc *sessionId);
1416 
1417 
1418 /************************************************************************/
1435  open_buffdesc *sessionId,
1436  open_buffdesc *logintype,
1437  open_buffdesc *inetaddr,
1438  uint32_t *accessLevel);
1439 
1440 /************************************************************************/
1454  open_buffdesc *sessionId);
1455 
1456 /*****************************************************************/
1475  OPEN_ACCESS_LINE_t accessLine,
1476  OPEN_ACCESS_LEVEL_t accessLevel,
1477  OPEN_BOOL_t *authStatus);
1478 
1479 /*****************************************************************/
1496  open_buffdesc *userName,
1497  open_buffdesc *userPassword);
1498 
1499 /*****************************************************************/
1517  uint32_t id,
1518  open_buffdesc *name);
1519 
1520 /*****************************************************************/
1536  uint32_t id,
1537  open_inet_addr_t *addr);
1538 
1539 /*****************************************************************/
1555  uint32_t id,
1556  uint32_t *timeVal);
1557 
1558 /*****************************************************************/
1574  uint32_t id,
1575  uint32_t *timeVal);
1576 
1577 /*****************************************************************/
1593  uint32_t id,
1594  OPEN_LOGIN_TYPE_t *type);
1595 
1596 /*****************************************************************/
1626  open_buffdesc *userName,
1627  open_buffdesc *password,
1628  OPEN_ENCRYPT_TYPE_t encryptType,
1629  OPEN_BOOL_t encrypted);
1630 
1631 /*****************************************************************/
1652  open_buffdesc *userName,
1653  OPEN_ENCRYPT_TYPE_t *encryptType);
1654 
1655 /*****************************************************************/
1676  open_buffdesc *enablePswd,
1677  OPEN_ENCRYPT_TYPE_t encryptType,
1678  OPEN_BOOL_t encrypted);
1679 
1680 /*****************************************************************/
1696  OPEN_ENCRYPT_TYPE_t *encryptType);
1697 
1698 #endif
1699