Configure the length of HSM header.

Jan 29, 2011 at 5:44 PM

Thanks for an excellent HSM simulator.

It would be beneficial if the message header length could be configured.
I use a long header for different purposes f.ex. correlating a responses with a requests.

The trailer, can not always be used for this purpose because in a real HSM it is not always returned.
A real HSM seems to return only header + host command + response code when response code
is not equal 00 or 01. (Possibly when ever return code is less then 10.) Both the EOM as well as the
message trailer is dropped.

The simulator (0.92) seems to always return the EOM + trailer.

Jan 29, 2011 at 6:47 PM

Download the latest dev build and let me know if it works for you. You can change the header length in the XML configuration file.

Feb 1, 2011 at 9:32 PM

Now it works fine. /Thanks