Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define global TLSVersion in IdSSL #281

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lib/Protocols/IdSSL.pas
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ TIdServerIOHandlerSSLBase = class(TIdServerIOHandler)
TIdClientSSLClass = class of TIdSSLIOHandlerSocketBase;
TIdServerSSLClass = class of TIdServerIOHandlerSSLBase;

type
TIdTLSVersion = (tlsvTLS_flexible, tlsvTLSv1_0, tlsvTLSv1_1, tlsvTLSv1_2, tlsvTLSv1_3);
TIdTLSVersions = set of TIdTLSVersion;

Procedure RegisterSSL(const AProduct, AVendor, ACopyright,
ADescription, AURL : String;
const AClientClass : TIdClientSSLClass; const AServerClass : TIdServerSSLClass);
Expand Down
2 changes: 1 addition & 1 deletion Lib/Protocols/IdSSLOpenSSL.pas
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ interface
IdYarn;

type
TIdSSLVersion = (sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1,sslvTLSv1_1,sslvTLSv1_2);
TIdSSLVersion = (sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2);
TIdSSLVersions = set of TIdSSLVersion;
TIdSSLMode = (sslmUnassigned, sslmClient, sslmServer, sslmBoth);
TIdSSLVerifyMode = (sslvrfPeer, sslvrfFailIfNoPeerCert, sslvrfClientOnce);
Expand Down