diff --git a/test/blackbox/common/BlackboxTestsSecurity.cpp b/test/blackbox/common/BlackboxTestsSecurity.cpp index 6406bc2b664..120e12e6d87 100644 --- a/test/blackbox/common/BlackboxTestsSecurity.cpp +++ b/test/blackbox/common/BlackboxTestsSecurity.cpp @@ -58,25 +58,25 @@ enum class key_agree_alg static void fill_basic_pub_auth( PropertyPolicy& policy) { - policy.properties().emplace_back(Property("dds.sec.auth.plugin", "builtin.PKI-DH")); - policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.identity_ca", - "file://" + std::string(certs_path) + "/maincacert.pem")); - policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.identity_certificate", - "file://" + std::string(certs_path) + "/mainpubcert.pem")); - policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.private_key", - "file://" + std::string(certs_path) + "/mainpubkey.pem")); + policy.properties().emplace_back("dds.sec.auth.plugin", "builtin.PKI-DH"); + policy.properties().emplace_back("dds.sec.auth.builtin.PKI-DH.identity_ca", + "file://" + std::string(certs_path) + "/maincacert.pem"); + policy.properties().emplace_back("dds.sec.auth.builtin.PKI-DH.identity_certificate", + "file://" + std::string(certs_path) + "/mainpubcert.pem"); + policy.properties().emplace_back("dds.sec.auth.builtin.PKI-DH.private_key", + "file://" + std::string(certs_path) + "/mainpubkey.pem"); } static void fill_basic_sub_auth( PropertyPolicy& policy) { - policy.properties().emplace_back(Property("dds.sec.auth.plugin", "builtin.PKI-DH")); - policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.identity_ca", - "file://" + std::string(certs_path) + "/maincacert.pem")); - policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.identity_certificate", - "file://" + std::string(certs_path) + "/mainsubcert.pem")); - policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.private_key", - "file://" + std::string(certs_path) + "/mainsubkey.pem")); + policy.properties().emplace_back("dds.sec.auth.plugin", "builtin.PKI-DH"); + policy.properties().emplace_back("dds.sec.auth.builtin.PKI-DH.identity_ca", + "file://" + std::string(certs_path) + "/maincacert.pem"); + policy.properties().emplace_back("dds.sec.auth.builtin.PKI-DH.identity_certificate", + "file://" + std::string(certs_path) + "/mainsubcert.pem"); + policy.properties().emplace_back("dds.sec.auth.builtin.PKI-DH.private_key", + "file://" + std::string(certs_path) + "/mainsubkey.pem"); } class Security : public testing::TestWithParam> @@ -669,8 +669,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_rtps_ok) PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -679,8 +678,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_rtps_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -727,8 +725,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_shm_transport_ok) PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -737,8 +734,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_shm_transport_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -787,8 +783,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_shm_udp_transport_ok) PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -797,8 +792,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_shm_udp_transport_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -835,8 +829,7 @@ TEST(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_rtps_ok) PropertyPolicy pub_property_policy, sub_property_policy; fill_basic_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -846,8 +839,7 @@ TEST(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_rtps_ok) ASSERT_TRUE(reader.isInitialized()); fill_basic_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -884,8 +876,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_rtps_ok_same_participant) property_policy; fill_pub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); wreader.pub_history_depth(10).sub_history_depth(10).sub_reliability(eprosima::fastdds::dds::RELIABLE_RELIABILITY_QOS) @@ -917,8 +908,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_large_string) PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -927,8 +917,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_large_string) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -965,8 +954,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_rtps_large_string PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -976,8 +964,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_rtps_large_string ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1013,8 +1000,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_rtps_data300kb) PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(5). @@ -1023,8 +1009,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_rtps_data300kb) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); // When doing fragmentation, it is necessary to have some degree of @@ -1069,8 +1054,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_rtps_data300kb) PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); reader.history_depth(5). @@ -1080,8 +1064,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_rtps_data300kb) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); // When doing fragmentation, it is necessary to have some degree of @@ -1126,8 +1109,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_ok) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1137,8 +1119,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1177,8 +1158,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_ok) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1189,8 +1169,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1228,8 +1207,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_submessage_ok_same_partici property_policy; fill_pub_auth(pub_property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); @@ -1265,8 +1243,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_larg pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1276,8 +1253,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_larg ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1316,8 +1292,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_large_ pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1328,8 +1303,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_large_ ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1367,8 +1341,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_data pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); reader.history_depth(5). @@ -1378,8 +1351,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_data ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); // When doing fragmentation, it is necessary to have some degree of @@ -1426,8 +1398,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_data30 pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); reader.history_depth(5). @@ -1438,8 +1409,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_data30 ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); // When doing fragmentation, it is necessary to have some degree of @@ -1485,8 +1455,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_ok) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1496,8 +1465,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1536,8 +1504,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_ok) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1548,8 +1515,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1587,8 +1553,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_payload_ok_same_participan property_policy; fill_pub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -1622,8 +1587,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_payload_ok_same_participan PropertyPolicy pub_property_policy, sub_property_policy, property_policy; fill_pub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -1659,8 +1623,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_large_s pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1670,8 +1633,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_large_s ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1710,8 +1672,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_large_str pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); reader.history_depth(10). @@ -1722,8 +1683,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_large_str ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); writer.history_depth(10). @@ -1761,8 +1721,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_data300 pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); reader.history_depth(5). @@ -1772,8 +1731,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_data300 ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); // When doing fragmentation, it is necessary to have some degree of @@ -1820,8 +1778,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_data300kb pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); reader.history_depth(5). @@ -1832,8 +1789,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_data300kb ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); // When doing fragmentation, it is necessary to have some degree of @@ -1879,8 +1835,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_all_ok) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -1892,8 +1847,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_all_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -1934,8 +1888,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_ok) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -1948,8 +1901,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_ok) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -1989,8 +1941,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_all_large_strin pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2002,8 +1953,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_all_large_strin ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2044,8 +1994,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_large_string) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2058,8 +2007,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_large_string) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2099,8 +2047,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_all_data300kb) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2112,8 +2059,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_all_data300kb) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2162,8 +2108,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_data300kb) pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2176,8 +2121,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_data300kb) ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2226,8 +2170,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_data300kb_mix pub_property_policy, sub_property_policy; fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2240,8 +2183,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_all_data300kb_mix ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2289,8 +2231,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_user_data) pub_property_policy, sub_property_policy; fill_pub_auth(pub_part_property_policy); - pub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2303,8 +2244,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_user_data) ASSERT_TRUE(writer.isInitialized()); fill_sub_auth(sub_part_property_policy); - sub_part_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_part_property_policy.properties().emplace_back("rtps.participant.rtps_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT"); sub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT"); @@ -2356,8 +2296,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_governance_rule_o PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2375,8 +2314,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_governance_rule_o ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2424,8 +2362,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_governance_rule_o PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2441,8 +2378,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_governance_rule_o ASSERT_FALSE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2467,8 +2403,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_multiple_endpoint PropertyPolicy pub_property_policy; fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2490,8 +2425,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_multiple_endpoint PropertyPolicy sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2537,8 +2471,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2554,8 +2487,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid ASSERT_FALSE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2581,8 +2513,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2600,8 +2531,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2650,8 +2580,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2667,8 +2596,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid ASSERT_FALSE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2694,8 +2622,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid PropertyPolicy pub_property_policy, sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2714,8 +2641,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid ASSERT_TRUE(reader.isInitialized()); fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2765,8 +2691,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid // Prepare subscriptions security properties PropertyPolicy sub_property_policy; fill_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2793,8 +2718,7 @@ TEST_P(Security, BuiltinAuthenticationAndAccessAndCryptoPlugin_Permissions_valid // Prepare publication security properties PropertyPolicy pub_property_policy; fill_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -2873,8 +2797,7 @@ void prepare_pkcs11_nodes( "file://" + std::string(certs_path) + "/mainsubcert.pem")); sub_property_policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.private_key", reader_private_key_url)); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property( @@ -2897,8 +2820,7 @@ void prepare_pkcs11_nodes( "file://" + std::string(certs_path) + "/mainpubcert.pem")); pub_property_policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.private_key", writer_private_key_url)); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property( @@ -3008,8 +2930,7 @@ static void CommonPermissionsConfigure( { PropertyPolicy sub_property_policy(extra_properties); fill_basic_sub_auth(sub_property_policy); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property("dds.sec.access.builtin.Access-Permissions.permissions_ca", @@ -3031,8 +2952,7 @@ static void CommonPermissionsConfigure( PropertyPolicy pub_property_policy(extra_properties); fill_basic_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property("dds.sec.access.builtin.Access-Permissions.permissions_ca", @@ -3107,8 +3027,7 @@ TEST_P(Security, RemoveParticipantProxyDataonSecurityManagerLeaseExpired_validat fill_pub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); property_policy.properties().emplace_back(Property( @@ -3137,8 +3056,7 @@ TEST_P(Security, RemoveParticipantProxyDataonSecurityManagerLeaseExpired_validat PropertyPolicy property_policy; fill_sub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); property_policy.properties().emplace_back(Property( @@ -3223,8 +3141,7 @@ TEST(Security, AllowUnauthenticatedParticipants_EntityCreationFailsIfRTPSProtect PropertyPolicy property_policy; fill_basic_sub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); property_policy.properties().emplace_back(Property( @@ -3259,8 +3176,7 @@ TEST(Security, AllowUnauthenticatedParticipants_TwoSecureParticipantsWithDiffere "file://" + std::string(certs_path) + "/othersubcert.pem")); sub_property_policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.private_key", "file://" + std::string(certs_path) + "/othersubkey.pem")); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property("dds.sec.access.builtin.Access-Permissions.permissions_ca", @@ -3277,8 +3193,7 @@ TEST(Security, AllowUnauthenticatedParticipants_TwoSecureParticipantsWithDiffere ASSERT_TRUE(reader.isInitialized()); fill_basic_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property("dds.sec.access.builtin.Access-Permissions.permissions_ca", @@ -3334,8 +3249,7 @@ TEST(Security, AllowUnauthenticatedParticipants_TwoParticipantsDifferentCertific "file://" + std::string(certs_path) + "/othersubcert.pem")); sub_property_policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.private_key", "file://" + std::string(certs_path) + "/othersubkey.pem")); - sub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + sub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); sub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); sub_property_policy.properties().emplace_back(Property("dds.sec.access.builtin.Access-Permissions.permissions_ca", @@ -3353,8 +3267,7 @@ TEST(Security, AllowUnauthenticatedParticipants_TwoParticipantsDifferentCertific ASSERT_TRUE(reader.isInitialized()); fill_basic_pub_auth(pub_property_policy); - pub_property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + pub_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); pub_property_policy.properties().emplace_back(Property("dds.sec.access.plugin", "builtin.Access-Permissions")); pub_property_policy.properties().emplace_back(Property("dds.sec.access.builtin.Access-Permissions.permissions_ca", @@ -4358,8 +4271,7 @@ TEST(Security, ValidateAuthenticationHandshakePropertiesParsing) PropertyPolicy property_policy; fill_basic_sub_auth(property_policy); - property_policy.properties().emplace_back(Property("dds.sec.crypto.plugin", - "builtin.AES-GCM-GMAC")); + property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC"); // max_handshake_requests out of bounds property_policy.properties().emplace_back(Property("dds.sec.auth.builtin.PKI-DH.max_handshake_requests",