Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent server side component to TIdBlockCipherIntercept?

I want to encrypt some packets sent between a TIdTCPClient and a TIdTCPServer component. On the client side, I can use TIdBlockCipherIntercept to implement my encryption/decryption. But, I can't find the matching server side component to assign to my IdTCPServer, and I couldn't find anything on Google. What should I do?

like image 583
iMan Biglari Avatar asked Mar 11 '13 12:03

iMan Biglari


1 Answers

In the absence of a TIdServerIntercept descendant, you can handle the OnConnect event and assign a TIdBlockCipherIntercept instance to the server connection's Intercept property.

AContext.Connection.Intercept := TIdBlockCipherIntercept.Create(AContext.Connection);
like image 178
Rob Kennedy Avatar answered Nov 15 '22 08:11

Rob Kennedy