@@ -425,40 +425,40 @@ TEST_F(AuthenticationPluginTest, validate_local_identity_kagree_algo)
425
425
auto test_fn = [this ](
426
426
const std::string& alg,
427
427
ValidationResult_t expected_result) -> void
428
- {
429
- IdentityHandle* local_identity_handle = nullptr ;
430
- GUID_t adjusted_participant_key;
431
- uint32_t domain_id = 0 ;
432
- RTPSParticipantAttributes participant_attr;
433
- GUID_t candidate_participant_key;
434
- SecurityException exception ;
435
- ValidationResult_t result = ValidationResult_t::VALIDATION_FAILED;
436
-
437
- fill_candidate_participant_key (candidate_participant_key);
438
- participant_attr.properties = get_valid_policy ();
439
- participant_attr.properties .properties ().emplace_back (
440
- Property (" dds.sec.auth.builtin.PKI-DH.preferred_key_agreement" , alg));
441
- result = plugin.validate_local_identity (&local_identity_handle,
442
- adjusted_participant_key,
443
- domain_id,
444
- participant_attr,
445
- candidate_participant_key,
446
- exception );
447
-
448
- ASSERT_TRUE (result == expected_result);
449
- if (ValidationResult_t::VALIDATION_OK == result)
450
- {
451
- ASSERT_TRUE (local_identity_handle != nullptr );
452
- check_local_identity_handle (*local_identity_handle);
453
- ASSERT_TRUE (adjusted_participant_key != GUID_t::unknown ());
454
- ASSERT_TRUE (plugin.return_identity_handle (local_identity_handle, exception ));
455
- }
456
- else
457
- {
458
- ASSERT_TRUE (local_identity_handle == nullptr );
459
- ASSERT_TRUE (adjusted_participant_key == GUID_t::unknown ());
460
- }
461
- };
428
+ {
429
+ IdentityHandle* local_identity_handle = nullptr ;
430
+ GUID_t adjusted_participant_key;
431
+ uint32_t domain_id = 0 ;
432
+ RTPSParticipantAttributes participant_attr;
433
+ GUID_t candidate_participant_key;
434
+ SecurityException exception ;
435
+ ValidationResult_t result = ValidationResult_t::VALIDATION_FAILED;
436
+
437
+ fill_candidate_participant_key (candidate_participant_key);
438
+ participant_attr.properties = get_valid_policy ();
439
+ participant_attr.properties .properties ().emplace_back (
440
+ Property (" dds.sec.auth.builtin.PKI-DH.preferred_key_agreement" , alg));
441
+ result = plugin.validate_local_identity (&local_identity_handle,
442
+ adjusted_participant_key,
443
+ domain_id,
444
+ participant_attr,
445
+ candidate_participant_key,
446
+ exception );
447
+
448
+ ASSERT_TRUE (result == expected_result);
449
+ if (ValidationResult_t::VALIDATION_OK == result)
450
+ {
451
+ ASSERT_TRUE (local_identity_handle != nullptr );
452
+ check_local_identity_handle (*local_identity_handle);
453
+ ASSERT_TRUE (adjusted_participant_key != GUID_t::unknown ());
454
+ ASSERT_TRUE (plugin.return_identity_handle (local_identity_handle, exception ));
455
+ }
456
+ else
457
+ {
458
+ ASSERT_TRUE (local_identity_handle == nullptr );
459
+ ASSERT_TRUE (adjusted_participant_key == GUID_t::unknown ());
460
+ }
461
+ };
462
462
463
463
for (const std::string& value : correct_values)
464
464
{
0 commit comments