08-26-2019, 06:40 AM
Hi rlebeau,
thanks for all your help.
Finally I made some additional changes:
1. I created a separate "ShutDownSSL" procedure, the same was as Indy has a "StartSSL"procedure, and I call explicitly this new procedure after issuing the "CCC" command.
2. I created a separate procedure to issue the CCC ("SendCCC") and removed this part from "SendDataSettings".
This specific VISA server does not accept the original sequence of commands in "SendDataSettings": SendPBSZ -> SendPROT -> CCC
And I think it may have right. PBSZ and PROT should/could be set before login, CCC can be issued only after login, because sending userid and pwd in clear command channel is usually not acceptable.
So, before login I call SendDataSettings, after login I call SendCCC, that sets PassThrough := True and calls ShutDownSSL.
Maybe my changes are not generally appliable, but for my specific situation this is what is required.
Thanks again
Tibor
thanks for all your help.
Finally I made some additional changes:
1. I created a separate "ShutDownSSL" procedure, the same was as Indy has a "StartSSL"procedure, and I call explicitly this new procedure after issuing the "CCC" command.
2. I created a separate procedure to issue the CCC ("SendCCC") and removed this part from "SendDataSettings".
This specific VISA server does not accept the original sequence of commands in "SendDataSettings": SendPBSZ -> SendPROT -> CCC
And I think it may have right. PBSZ and PROT should/could be set before login, CCC can be issued only after login, because sending userid and pwd in clear command channel is usually not acceptable.
So, before login I call SendDataSettings, after login I call SendCCC, that sets PassThrough := True and calls ShutDownSSL.
Maybe my changes are not generally appliable, but for my specific situation this is what is required.
Thanks again
Tibor