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

TKSS-672: Remove TLCPAuthenticator #673

Merged
merged 1 commit into from
Feb 5, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ static Authenticator valueOf(ProtocolVersion protocolVersion) {
return new DTLS10Authenticator(protocolVersion);
}
} else {
if (protocolVersion.isTLCP11()) {
return new TLCPAuthenticator.TLCP11Authenticator(protocolVersion);
} else if (protocolVersion.useTLS13PlusSpec()) {
if (protocolVersion.useTLS13PlusSpec()) {
return new TLS13Authenticator(protocolVersion);
} else if (protocolVersion.useTLS10PlusSpec()) {
} else if (protocolVersion.useTLS10PlusSpec() || protocolVersion.isTLCP11()) {
return new TLS10Authenticator(protocolVersion);
} else {
return new SSL30Authenticator();
Expand All @@ -86,11 +84,9 @@ static Authenticator valueOf(ProtocolVersion protocolVersion) {
return (T)(new DTLS10Mac(protocolVersion, macAlg, key));
}
} else {
if (protocolVersion.isTLCP11()) {
return (T)(new TLCPAuthenticator.TLCP11Mac(protocolVersion, macAlg, key));
} else if (protocolVersion.useTLS13PlusSpec()) {
if (protocolVersion.useTLS13PlusSpec()) {
throw new RuntimeException("No MacAlg used in TLS 1.3");
} else if (protocolVersion.useTLS10PlusSpec()) {
} else if (protocolVersion.useTLS10PlusSpec() || protocolVersion.isTLCP11()) {
return (T)(new TLS10Mac(protocolVersion, macAlg, key));
} else {
return (T)(new SSL30Mac(protocolVersion, macAlg, key));
Expand Down

This file was deleted.

Loading