@@ -1320,47 +1320,47 @@ namespace pcpp
1320
1320
: LdapResponseLayer(std::move(asn1Record), data, dataLen, prevLayer, packet)
1321
1321
{}
1322
1322
};
1323
- } // namespace pcpp
1324
-
1325
- inline std::ostream& operator <<(std::ostream& os, const pcpp::LdapControl& control)
1326
- {
1327
- os << " {" << control.controlType << " , " << control.controlValue << " }" ;
1328
- return os;
1329
- }
1330
1323
1331
- inline std::ostream& operator <<(std::ostream& os, const pcpp::LdapAttribute& attr)
1332
- {
1333
- os << " {" << attr.type << " , {" ;
1324
+ inline std::ostream& operator <<(std::ostream& os, const pcpp::LdapControl& control)
1325
+ {
1326
+ os << " {" << control.controlType << " , " << control.controlValue << " }" ;
1327
+ return os;
1328
+ }
1334
1329
1335
- std::string separator;
1336
- for (const auto & value : attr.values )
1330
+ inline std::ostream& operator <<(std::ostream& os, const pcpp::LdapAttribute& attr)
1337
1331
{
1338
- os << separator << value;
1339
- if (separator.empty ())
1332
+ os << " {" << attr.type << " , {" ;
1333
+
1334
+ std::string separator;
1335
+ for (const auto & value : attr.values )
1340
1336
{
1341
- separator = " , " ;
1337
+ os << separator << value;
1338
+ if (separator.empty ())
1339
+ {
1340
+ separator = " , " ;
1341
+ }
1342
1342
}
1343
- }
1344
1343
1345
- os << " }}" ;
1346
- return os;
1347
- }
1348
-
1349
- inline std::ostream& operator <<(std::ostream& os,
1350
- const pcpp::LdapBindRequestLayer::SaslAuthentication& saslAuthentication)
1351
- {
1352
- os << " {" << saslAuthentication.mechanism << " , {" ;
1344
+ os << " }}" ;
1345
+ return os;
1346
+ }
1353
1347
1354
- std::string separator;
1355
- for ( const auto & value : saslAuthentication. credentials )
1348
+ inline std::ostream& operator <<(std::ostream& os,
1349
+ const pcpp::LdapBindRequestLayer::SaslAuthentication& saslAuthentication)
1356
1350
{
1357
- os << separator << " 0x" << std::hex << static_cast <int >(value) << std::dec;
1358
- if (separator.empty ())
1351
+ os << " {" << saslAuthentication.mechanism << " , {" ;
1352
+
1353
+ std::string separator;
1354
+ for (const auto & value : saslAuthentication.credentials )
1359
1355
{
1360
- separator = " , " ;
1356
+ os << separator << " 0x" << std::hex << static_cast <int >(value) << std::dec;
1357
+ if (separator.empty ())
1358
+ {
1359
+ separator = " , " ;
1360
+ }
1361
1361
}
1362
- }
1363
1362
1364
- os << " }}" ;
1365
- return os;
1366
- }
1363
+ os << " }}" ;
1364
+ return os;
1365
+ }
1366
+ } // namespace pcpp
0 commit comments