libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <cfg.h>
Public Attributes | |
void(* | free )(ptpmgmt_spp spp) |
bool(* | addKey )(ptpmgmt_spp spp, uint32_t id, enum PTPMGMT_HMAC_t type, const void *value, size_t size, size_t digest, bool replace) |
bool(* | have )(const_ptpmgmt_spp spp, uint32_t key) |
size_t(* | mac_size )(const_ptpmgmt_spp spp, uint32_t key) |
const void *(* | key )(const_ptpmgmt_spp spp, uint32_t key) |
size_t(* | key_size )(const_ptpmgmt_spp spp, uint32_t key) |
size_t(* | keys )(const_ptpmgmt_spp spp) |
enum PTPMGMT_HMAC_t(* | htype )(const_ptpmgmt_spp spp, uint32_t key) |
uint8_t(* | ownID )(const_ptpmgmt_spp spp) |
The ptpmgmt spp structure hold a authentication security parameters object and call backs to call C++ methods
bool(* ptpmgmt_spp_t::addKey) (ptpmgmt_spp spp, uint32_t id, enum PTPMGMT_HMAC_t type, const void *value, size_t size, size_t digest, bool replace) |
Set a new key
[in,out] | spp | authentication security parameters object |
[in] | id | id the Key |
[in] | type | of the key |
[in] | value | of the key |
[in] | size | of the key |
[in] | digest | size to use with the key |
[in] | replace | an existing key if exist |
void(* ptpmgmt_spp_t::free) (ptpmgmt_spp spp) |
< Free a authentication security parameters object
[in,out] | spp | authentication security parameters object |
bool(* ptpmgmt_spp_t::have) (const_ptpmgmt_spp spp, uint32_t key) |
Verify key exist
[in] | spp | authentication security parameters object |
[in] | key | ID |
enum PTPMGMT_HMAC_t(* ptpmgmt_spp_t::htype) (const_ptpmgmt_spp spp, uint32_t key) |
Get key type
[in] | spp | authentication security parameters object |
[in] | key | ID |
const void*(* ptpmgmt_spp_t::key) (const_ptpmgmt_spp spp, uint32_t key) |
Get key
[in] | spp | authentication security parameters object |
[in] | key | ID |
size_t(* ptpmgmt_spp_t::key_size) (const_ptpmgmt_spp spp, uint32_t key) |
Get key size
[in] | spp | authentication security parameters object |
[in] | key | ID |
size_t(* ptpmgmt_spp_t::keys) (const_ptpmgmt_spp spp) |
Get number of keys
[in] | spp | authentication security parameters object |
[in] | key | ID |
size_t(* ptpmgmt_spp_t::mac_size) (const_ptpmgmt_spp spp, uint32_t key) |
Get MAC digest size to use with the key
[in] | spp | authentication security parameters object |
[in] | key | ID |
uint8_t(* ptpmgmt_spp_t::ownID) (const_ptpmgmt_spp spp) |
Return own SPP ID
[in] | spp | authentication security parameters object |