| | |
| | | * <pre> |
| | | * [feature_xx] |
| | | * sig=AAAA |
| | | * [bb] |
| | | * expiry-date |
| | | * [another_feature] |
| | | * expiry-date=20201111 |
| | | * </pre> |
| | | */ |
| | | char feature_name[LCC_API_PROJECT_NAME_SIZE + |
| | | char feature_name[LCC_API_FEATURE_NAME_SIZE + |
| | | 1]; // name of the feature you' (must correspond to the name in the license) |
| | | /** |
| | | * this number passed in by the application must correspond to the magic number used when compiling the library. |
| | |
| | | string project; |
| | | size_t str_size; |
| | | if (callerInformation != nullptr && |
| | | (str_size = license::mstrnlen_s(callerInformation->project_name, sizeof callerInformation->project_name)) > 0) { |
| | | project = string(callerInformation->project_name, str_size); |
| | | (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->project_name)) > 0) { |
| | | project = string(callerInformation->feature_name, str_size); |
| | | } else { |
| | | project = string(LCC_PROJECT_NAME); |
| | | } |
| | |
| | | #define LCC_API_AUDIT_EVENT_NUM 5 |
| | | #define LCC_API_AUDIT_EVENT_PARAM2 255 |
| | | #define LCC_API_VERSION_LENGTH 15 |
| | | #define LCC_API_PROJECT_NAME_SIZE 15 |
| | | #define LCC_API_FEATURE_NAME_SIZE 15 |
| | | #define LCC_API_EXPIRY_DATE_SIZE 10 |
| | | #define LCC_API_ERROR_BUFFER_SIZE 256 |
| | | |