gcontini
2020-05-02 4bca675b49fdd08f47d811abe57eac16bd8e2953
rename product->feature
3个文件已修改
12 ■■■■ 已修改文件
include/licensecc/datatypes.h 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/licensecc.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/licensecc_properties.h.in 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
include/licensecc/datatypes.h
@@ -102,11 +102,11 @@
     * <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.
src/library/licensecc.cpp
@@ -77,8 +77,8 @@
    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);
    }
src/templates/licensecc_properties.h.in
@@ -51,7 +51,7 @@
#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