我有一个使用 java QuickFix 库的应用程序。我正在尝试将其移植到 C++。问题是该库的 java 版本似乎通过 SSL 连接发送数据,而 C++ 库发送未加密的数据。在 java 中,当我将配置文件传递给库时,SSL 在库内部启用。将完全相同的文件传递给 C++,但在第二种情况下未打开 SSL。
请帮助我,如何在 C++ 中使用带有 SSL 的 QuickFix?
配置文件(对不起??太多敏感信息):
[default]
# QuickFixJ specific parameters (please do not modify)
FileStorePath=logs/session/
MessageProcessingDelay=6000
# Default parameter settings for your client (modify/add as needed), to be applied to all sessions.
ConnectionType=initiator
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ReconnectInterval=5
BeginString=FIX.4.4
SocketConnectHost=???.???.???.???
SocketConnectPort=??????
TargetCompID=??????
Username=??????
Password=??????
UseDataDictionary=N
#The following three lines are needed for Apache Mina SSL support only.
SocketUseSSL=Y
SocketKeyStore=config/ssl/ApacheMina/keystore.jks
SocketKeyStorePassword=?????????
#Declare and configure quote and trade sessions
# beginning with a '[session]' designator for each session.
[session]
SenderCompID=????????
Account=???????????
[session]
SenderCompID=???????
Account=??????