Discussion Forums

Sender and Recipient
Marcus Monaghan / BOOT Computers Limited
27 Aug 2003 10:17AM ET

I am trying to implement encryption into our FIX server and I have a few questions. I'm using the Morgan Stanley API.

When a client sends a logon message I fill the pub_info structure with the password to our keyring and the recipient to us. I decrypt the message which gives me the keys and also populates the pub_info.sender with the clients ID. I obtain the keys from the message and populate the keys structure. So far so good.

Our server processes the logon and attempts to reply. This is where I'm having a problem.

The API calls "pgp" trying to encrypt the message with the sender info, but this has been populated with the clients ID. So pgp tried to obtain the appropriate info from the secure keyring. Does this mean I have to have two structure sets, one for the server and one for the client?

Regards,
Marcus