S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
util_user.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
25#ifndef UTIL_USER_H_
26#define UTIL_USER_H_
27
28#include <stdbool.h>
29
30#include "constants.h"
31
32/* Retrieve the user token type from user token structure */
34 const constants__t_user_token_i user_authentication_bs__p_user_token);
35
36/* Get the encryption algorithm URI given the security policy */
38
39/*
40 * Check user token compliance with the user token policy. Returns true if it is compliant, false otherwise.
41 * In case of success returns the associated security policy as output parameter.
42 * If the user token policy is empty, the security policy of secure channel is returned.
43 */
45 const OpcUa_UserTokenPolicy* userTokenPolicy,
46 const constants__t_user_token_type_i user_token_type,
47 const constants__t_user_token_i user_token,
48 bool check_encryption_algo,
50
51#endif /* UTIL_USER_H_ */
constants__t_user_token_type_i
Definition constants.h:325
constants__t_SecurityPolicy
Definition constants.h:179
#define constants__t_user_token_i
Definition constants.h:123
Client configuration of a Secure Channel.
Definition sopc_user_app_itf.h:53
Definition sopc_types.h:921
bool util_check_user_token_policy_compliance(const SOPC_SecureChannel_Config *scConfig, const OpcUa_UserTokenPolicy *userTokenPolicy, const constants__t_user_token_type_i user_token_type, const constants__t_user_token_i user_token, bool check_encryption_algo, constants__t_SecurityPolicy *secpol)
constants__t_user_token_type_i util_get_user_token_type_from_token(const constants__t_user_token_i user_authentication_bs__p_user_token)
const char * util_getEncryptionAlgorithm(constants__t_SecurityPolicy secpol)