mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 08:15:53 +01:00
86 lines
2.0 KiB
ObjectPascal
86 lines
2.0 KiB
ObjectPascal
|
unit Net.CrossSslSocket.Base;
|
|||
|
|
|||
|
interface
|
|||
|
|
|||
|
uses
|
|||
|
Net.CrossSocket.Base;
|
|||
|
|
|||
|
type
|
|||
|
/// <summary>
|
|||
|
/// SSL Socket
|
|||
|
/// </summary>
|
|||
|
/// <remarks>
|
|||
|
/// <20><>ȷ<EFBFBD><C8B7>ʹ<EFBFBD>ò<EFBFBD><C3B2><EFBFBD>:
|
|||
|
/// <list type="number">
|
|||
|
/// <item>
|
|||
|
/// SetCertificateificate <20><> SetCertificateificateFile
|
|||
|
/// </item>
|
|||
|
/// <item>
|
|||
|
/// SetPrivateKey <20><> SetPrivateKeyFile, <20>ͻ<EFBFBD><CDBB>˲<EFBFBD><CBB2><EFBFBD>Ҫ<EFBFBD><D2AA>һ<EFBFBD><D2BB>
|
|||
|
/// </item>
|
|||
|
/// <item>
|
|||
|
/// Connect / Listen
|
|||
|
/// </item>
|
|||
|
/// </list>
|
|||
|
/// </remarks>
|
|||
|
ICrossSslSocket = interface(ICrossSocket)
|
|||
|
['{A4765486-A0F1-4EFD-BC39-FA16AED21A6A}']
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>
|
|||
|
/// </summary>
|
|||
|
/// <param name="ACertBuf">
|
|||
|
/// ֤<>黺<EFBFBD><E9BBBA><EFBFBD><EFBFBD>
|
|||
|
/// </param>
|
|||
|
/// <param name="ACertBufSize">
|
|||
|
/// ֤<>黺<EFBFBD><E9BBBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
|||
|
/// </param>
|
|||
|
procedure SetCertificate(const ACertBuf: Pointer; const ACertBufSize: Integer); overload;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>
|
|||
|
/// </summary>
|
|||
|
/// <param name="ACertStr">
|
|||
|
/// ֤<><D6A4><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|||
|
/// </param>
|
|||
|
procedure SetCertificate(const ACertStr: string); overload;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>
|
|||
|
/// </summary>
|
|||
|
/// <param name="ACertFile">
|
|||
|
/// ֤<><D6A4><EFBFBD>ļ<EFBFBD>
|
|||
|
/// </param>
|
|||
|
procedure SetCertificateFile(const ACertFile: string);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>˽Կ
|
|||
|
/// </summary>
|
|||
|
/// <param name="APKeyBuf">
|
|||
|
/// ˽Կ<CBBD><D4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
/// </param>
|
|||
|
/// <param name="APKeyBufSize">
|
|||
|
/// ˽Կ<CBBD><D4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
|||
|
/// </param>
|
|||
|
procedure SetPrivateKey(const APKeyBuf: Pointer; const APKeyBufSize: Integer); overload;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˽Կ
|
|||
|
/// </summary>
|
|||
|
/// <param name="APKeyStr">
|
|||
|
/// ˽Կ<CBBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|||
|
/// </param>
|
|||
|
procedure SetPrivateKey(const APKeyStr: string); overload;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>˽Կ
|
|||
|
/// </summary>
|
|||
|
/// <param name="APKeyFile">
|
|||
|
/// ˽Կ<CBBD>ļ<EFBFBD>
|
|||
|
/// </param>
|
|||
|
procedure SetPrivateKeyFile(const APKeyFile: string);
|
|||
|
end;
|
|||
|
|
|||
|
implementation
|
|||
|
|
|||
|
end.
|