-
Notifications
You must be signed in to change notification settings - Fork 157
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
Perhaps SSLIOHandler descendants should define their own SSL version definitions #569
Comments
I should explain things further. TaurusTLS supports both this version of Indy and the shipping version in RAD Studio. The Values in TaurusTLS do not completely correspond with what you have. I have a value called "Unknown" which is a catchall in case something does not work. |
Moving the But, in any case, I don't see a need for there to be an If you can remove Since you are also copying Indy's |
I have removed the "unknown" value and an exception is now being raised for an invalid value. I too think VerifyMode should not be moved down but the other values probably could be moved. The definitions in TaurusTLS are now: {$I TaurusTLSIndyVers.inc} {$IFDEF GETURIHOST_SUPPORTED} |
They have now been moved to |
For some reason, they got moved back into IdSSLOpenSSL.pas and this is breaking my code. |
PR #572 should fix the problem. |
A bunch of other files got reverted as well. I must have missed a merge when I was bringing some other branches together. I have corrected the problem. |
I noticed that the Indy-10.7 branch has this in IdSSL:
type
TIdSSLVersion = (sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2, sslvTLSv1_3);
TIdSSLVersions = set of TIdSSLVersion;
Perhaps it would be better if the TIdSSLIOHandlerSocketBase and TIdServerIOHandlerSSLBase class descendants define these in their own way. Taurus already defines the SSLVersions very differently than the OpenSSL IOHandlers:
TaurusTLS defines things like this:
type
TTaurusTLSSSLVersion = (Unknown, SSLv2, SSLv23, SSLv3, TLSv1, TLSv1_1,
TLSv1_2, TLSv1_3);
{ May need to update constants below if adding to this set }
TTaurusTLSSSLVersions = set of TTaurusTLSSSLVersion;
TTaurusTLSSSLMode = (sslmUnassigned, sslmClient, sslmServer, sslmBoth);
TTaurusTLSVerifyMode = (sslvrfPeer, sslvrfFailIfNoPeerCert, sslvrfClientOnce);
TTaurusTLSVerifyModeSet = set of TTaurusTLSVerifyMode;
TTaurusTLSCtxMode = (sslCtxClient, sslCtxServer);
const
DEF_SSLVERSION = TLSv1_2;
DEF_SSLVERSIONS = [TLSv1_2, TLSv1_3];
MAX_SSLVERSION = TLSv1_3;
P12_FILETYPE = 3;
This is incompatible with the changes you propose.
The text was updated successfully, but these errors were encountered: