Indy10SSLExample

所属分类:其他
开发工具:Delphi
文件大小:9KB
下载次数:6
上传日期:2018-01-31 15:15:21
上 传 者Mizmin
说明:  indy 10 demo - ssl demo source

文件列表:
sslServer10Main.pas (7575, 2005-03-29)
sample.crt (993, 2002-08-08)
sample.key (985, 2005-03-29)
sampleRoot.pem (993, 2002-08-08)
sslClient10.dpr (213, 2005-03-29)
sslClient10Main.dfm (2867, 2005-03-29)
sslClient10Main.pas (4288, 2005-03-29)
sslServer10.dpr (213, 2005-03-29)
sslServer10Main.dfm (2402, 2005-03-29)

{ SIMPLE INDY 10 SSL CLIENT AND SERVER Written by Ralph Sickinger, Best Manufacturing Practices Center of Excellence (BMPCOE) e-mail: ralph@bmpcoe.org SSL CLIENT 10: This program is a simply TCP Client that makes an SSL connection on port 3000. To connect to a server, enter the IP address of the server in the box labeled "Host:", and then press the "Connect" button. Once a connection has been established, the client displays any text received from the server in the memo area. To send text to the server, enter it in the available edit box, and then press [enter]. SSL SERVER 10: This program establishes a TCP Server that listens for SSL connections on port 3000. When a connection is received, the server responds with "Hello", and then listens for any other lines of text sent from the client. When a line is received, it is echoed to the screen as well as back to the client. Note: in order to run this program, you must have libeay32.dll and ssleay32.dll installed where the application can find them (either in the Windows System32 folder, or in the same folder as the application itself. These files can be downloaded from: http://indy.fulgan.com/SSL/ The server also requires that the certificate files (sample.crt, sample.key, and sampleRoot.pem) be available in the same folder as the excutable. Changes from Indy 9: * In order to compile the application, you'll have to add the Indy 10 source folders to the Project/Options/Directories-Conditionals/Search Path; e.g: C:\Indy10\Lib\Core;C:\Indy10\Lib\System;C:\Indy10\Lib\Protocols * All instances of AThread.Connection.ReadLn (or WriteLn) must be changed to AContext.Connection.IOHandler.ReadLn * You must add the OnConnect method to check for SSL usage and set the passThrough property (see procedure IdTCPServerConnect). This one is CRITICAL! * You will have to manually add "IdContext" to the "uses" clause. }

近期下载者

相关文件


收藏者