| | |
| | | * pc-identifiers.h |
| | | * |
| | | * Created on: Apr 16, 2014 |
| | | * Author: devel |
| | | * |
| | | */ |
| | | |
| | | #ifndef PC_IDENTIFIERS_H_ |
| | | #define PC_IDENTIFIERS_H_ |
| | | #include "api/datatypes.h" |
| | | |
| | | #include <licensecc/datatypes.h> |
| | | #include "base/base.h" |
| | | |
| | | #ifdef __cplusplus |
| | |
| | | #endif |
| | | |
| | | typedef unsigned char PcIdentifier[6]; |
| | | typedef char UserPcIdentifier[21]; |
| | | |
| | | typedef char PcSignature[21]; |
| | | |
| | | FUNCTION_RETURN generate_pc_id(PcIdentifier * identifiers, unsigned int * array_size, |
| | | IDENTIFICATION_STRATEGY strategy); |
| | | |
| | | EVENT_TYPE validate_user_pc_identifier(UserPcIdentifier str_code); |
| | | EVENT_TYPE validate_pc_signature(PcSignature str_code); |
| | | |
| | | /** |
| | | * Generates an UserPcIdentifier. |
| | | * |
| | | * @param identifier_out |
| | | * @param strategy |
| | | * @return |
| | | */ |
| | | FUNCTION_RETURN generate_user_pc_signature(PcSignature identifier_out, |
| | | IDENTIFICATION_STRATEGY strategy); |
| | | |
| | | #ifdef __cplusplus |
| | | } |