Drop tags 95, 96 if securelogon is on. Changed application to spark
This commit is contained in:
1 parent
4428e74d10
commit
c14ffe900a
1 file changed
+13
-4
@@ -723,11 +723,16 @@ OutFIXPtr make_logon (uint32_t seq_num,
|
||||
using namespace fix;
|
||||
|
||||
buffer.add<SenderSubID> (session_cfg.sender_subid());
|
||||
buffer.add<RawDataLength>(session_cfg.raw_data ().size ());
|
||||
buffer.add<RawData>(session_cfg.raw_data ());
|
||||
buffer.add<EncryptMethod> (0);
|
||||
buffer.add<HeartBtInt> (session_cfg.seconds_between_hbs ());
|
||||
buffer.add<ApplicationSystemName> ("O2");
|
||||
|
||||
#ifndef BTS_EDGE
|
||||
const char * application = "O2";
|
||||
#else
|
||||
const char * application = "O2";
|
||||
#endif
|
||||
|
||||
buffer.add<ApplicationSystemName> (application);
|
||||
buffer.add<ApplicationSystemVersion> ("1.0");
|
||||
buffer.add<ApplicationSystemVendor> ("BTS");
|
||||
|
||||
@@ -755,7 +760,7 @@ OutFIXPtr make_logon (uint32_t seq_num,
|
||||
std::to_string(session_cfg.seconds_between_hbs()),
|
||||
session_cfg.sender_locationid(),
|
||||
last_seq_num_str,
|
||||
"O2",
|
||||
application,
|
||||
"1.0",
|
||||
"BTS");
|
||||
#ifndef BTS_EDGE
|
||||
@@ -767,6 +772,10 @@ OutFIXPtr make_logon (uint32_t seq_num,
|
||||
buffer.add<EncryptedPasswordLen>(ld.signature.size());
|
||||
buffer.add<EncryptedPassword>(ld.signature);
|
||||
}
|
||||
else {
|
||||
buffer.add<RawDataLength>(session_cfg.raw_data ().size ());
|
||||
buffer.add<RawData>(session_cfg.raw_data ());
|
||||
}
|
||||
|
||||
stream.close ();
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user