35f3964b5a
* Secured event and authentication decoding by removing deprecated functions. * Added extended, discrete-value, double-out-of-range, signed-out-of-range, unsigned-out-of-range, change-of-characterstring, change-of-status-flags, change-of-reliability, and change-of-timer event notification encode, decode, and unit testing with #ifdef disabled by default.
59 lines
1.7 KiB
C
59 lines
1.7 KiB
C
/**
|
|
* @file
|
|
* @brief BACnet BACnetAuthenticationFactor structure and codecs
|
|
* @author Nikola Jelic <nikola.jelic@euroicc.com>
|
|
* @date 2015
|
|
* @copyright SPDX-License-Identifier: MIT
|
|
*/
|
|
#ifndef BACNET_AUTHENTICATION_FACTOR_H
|
|
#define BACNET_AUTHENTICATION_FACTOR_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
/* BACnet Stack defines - first */
|
|
#include "bacnet/bacdef.h"
|
|
/* BACnet Stack API */
|
|
#include "bacnet/bacapp.h"
|
|
|
|
typedef struct BACnetAuthenticationFactor {
|
|
BACNET_AUTHENTICATION_FACTOR_TYPE format_type;
|
|
uint32_t format_class;
|
|
BACNET_OCTET_STRING value;
|
|
} BACNET_AUTHENTICATION_FACTOR;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
BACNET_STACK_EXPORT
|
|
int bacapp_encode_authentication_factor(
|
|
uint8_t *apdu, const BACNET_AUTHENTICATION_FACTOR *af);
|
|
BACNET_STACK_EXPORT
|
|
int bacapp_encode_context_authentication_factor(
|
|
uint8_t *apdu, uint8_t tag, const BACNET_AUTHENTICATION_FACTOR *af);
|
|
|
|
BACNET_STACK_EXPORT
|
|
int bacnet_authentication_factor_decode(
|
|
const uint8_t *apdu, unsigned apdu_size, BACNET_AUTHENTICATION_FACTOR *af);
|
|
BACNET_STACK_DEPRECATED("Use bacnet_authentication_factor_decode() instead")
|
|
BACNET_STACK_EXPORT
|
|
int bacapp_decode_authentication_factor(
|
|
const uint8_t *apdu, BACNET_AUTHENTICATION_FACTOR *af);
|
|
|
|
BACNET_STACK_EXPORT
|
|
int bacnet_authentication_factor_context_decode(
|
|
const uint8_t *apdu,
|
|
unsigned apdu_size,
|
|
uint8_t tag,
|
|
BACNET_AUTHENTICATION_FACTOR *af);
|
|
BACNET_STACK_DEPRECATED(
|
|
"Use bacnet_authentication_factor_context_decode() instead")
|
|
BACNET_STACK_EXPORT
|
|
int bacapp_decode_context_authentication_factor(
|
|
const uint8_t *apdu, uint8_t tag, BACNET_AUTHENTICATION_FACTOR *af);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif
|