S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_users_loader.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_USERS_LOADER_H_
21#define SOPC_USERS_LOADER_H_
22
23#include <stdio.h>
24
26
27/* Parse the XML users configuration file and provide resulting user authentication and authorization managers
28 *
29 * \param fd Path to XML file compliant with s2opc_clientserver_users_config.xsd schema
30 * \param authentication (ouput) user authentication manager compliant with XML users configuration
31 * \param authorization (ouput) user authorization manager compliant with XML users configuration
32 *
33 * \return true if the parsing succeeded, false otherwise
34 * */
36 SOPC_UserAuthentication_Manager** authentication,
37 SOPC_UserAuthorization_Manager** authorization);
38
39#endif /* SOPC_USERS_LOADER_H_ */
Internal header for SOPC_UserWithAuthorization. Used to shadow its content.
bool SOPC_UsersConfig_Parse(FILE *fd, SOPC_UserAuthentication_Manager **authentication, SOPC_UserAuthorization_Manager **authorization)
Definition sopc_user_manager.h:149
Definition sopc_user_manager.h:161