@@ -274,12 +274,11 @@ RED_AUTO_TEST_CASE(TestWithoutExistingLicense)
274
274
class CaptureLicenseStore : public LicenseApi
275
275
{
276
276
public:
277
- bytes_view get_license_v1 (char const * client_name, char const * target_ip, uint32_t version, char const * scope,
277
+ bytes_view get_license_v1 (char const * client_name, uint32_t version, char const * scope,
278
278
char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE>& hwid, writable_bytes_view out,
279
279
bool enable_log) override
280
280
{
281
281
(void )client_name;
282
- (void )target_ip;
283
282
(void )version;
284
283
(void )scope;
285
284
(void )company_name;
@@ -304,18 +303,14 @@ RED_AUTO_TEST_CASE(TestWithoutExistingLicense)
304
303
return bytes_view { out.data (), 0 };
305
304
}
306
305
307
- bool put_license (char const * client_name, char const * target_ip, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE> const & hwid, bytes_view in, bool enable_log) override
306
+ bool put_license (char const * client_name, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE> const & hwid, bytes_view in, bool enable_log) override
308
307
{
309
308
(void )enable_log;
310
309
311
310
LOG (LOG_INFO, " /*CaptureLicenseStore */ const char license_client_name[] =" );
312
311
hexdump_c (client_name, ::strlen (client_name));
313
312
LOG (LOG_INFO, " /*CaptureLicenseStore */ ;" );
314
313
315
- LOG (LOG_INFO, " /*CaptureLicenseStore */ const char target_ip[] =" );
316
- hexdump_c (target_ip, ::strlen (target_ip));
317
- LOG (LOG_INFO, " /*CaptureLicenseStore */ ;" );
318
-
319
314
LOG (LOG_INFO, " /*CaptureLicenseStore */ uint32_t license_version = %u" , version);
320
315
LOG (LOG_INFO, " /*CaptureLicenseStore */ ;" );
321
316
@@ -355,12 +350,11 @@ RED_AUTO_TEST_CASE(TestWithoutExistingLicense)
355
350
expected_hwid (hwid),
356
351
expected_license_data (license_data) {}
357
352
358
- bytes_view get_license_v1 (char const * client_name, char const * target_ip, uint32_t version, char const * scope,
353
+ bytes_view get_license_v1 (char const * client_name, uint32_t version, char const * scope,
359
354
char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE>& hwid, writable_bytes_view out,
360
355
bool enable_log) override
361
356
{
362
357
(void )client_name;
363
- (void )target_ip;
364
358
(void )version;
365
359
(void )scope;
366
360
(void )company_name;
@@ -385,10 +379,9 @@ RED_AUTO_TEST_CASE(TestWithoutExistingLicense)
385
379
return bytes_view { out.data (), 0 };
386
380
}
387
381
388
- bool put_license (char const * client_name, char const * target_ip, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE> const & hwid, bytes_view in, bool enable_log) override
382
+ bool put_license (char const * client_name, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE> const & hwid, bytes_view in, bool enable_log) override
389
383
{
390
384
(void )enable_log;
391
- (void )target_ip;
392
385
393
386
RED_CHECK_EQ (client_name, this ->expected_client_name );
394
387
RED_CHECK_EQ (version, this ->expected_version );
@@ -471,10 +464,9 @@ RED_AUTO_TEST_CASE(TestWithExistingLicense)
471
464
expected_hwid (hwid),
472
465
expected_license_data (license_data) {}
473
466
474
- bytes_view get_license_v1 (char const * client_name, char const * target_ip, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE>& hwid, writable_bytes_view out, bool enable_log) override
467
+ bytes_view get_license_v1 (char const * client_name, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE>& hwid, writable_bytes_view out, bool enable_log) override
475
468
{
476
469
(void )enable_log;
477
- (void )target_ip;
478
470
479
471
RED_CHECK_EQ (client_name, this ->expected_client_name );
480
472
RED_CHECK_EQ (version, this ->expected_version );
@@ -513,12 +505,11 @@ RED_AUTO_TEST_CASE(TestWithExistingLicense)
513
505
return bytes_view { out.data (), effective_license_size };
514
506
}
515
507
516
- bool put_license (char const * client_name, char const * target_ip, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE> const & hwid, bytes_view in, bool enable_log) override
508
+ bool put_license (char const * client_name, uint32_t version, char const * scope, char const * company_name, char const * product_id, std::array<uint8_t , LIC::LICENSE_HWID_SIZE> const & hwid, bytes_view in, bool enable_log) override
517
509
{
518
510
(void )enable_log;
519
511
(void )hwid;
520
512
(void )in;
521
- (void )target_ip;
522
513
523
514
RED_CHECK_EQ (client_name, this ->expected_client_name );
524
515
RED_CHECK_EQ (version, this ->expected_version );
0 commit comments