Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
f83d604a
Commit
f83d604a
authored
Mar 23, 2016
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #567 from guusdk/OF-1118
OF-1118: Don't try to use unsupported encryption settings.
parents
157b1c0b
b6c5ce4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
ConnectionListener.java
...ava/org/jivesoftware/openfire/spi/ConnectionListener.java
+16
-1
No files found.
src/java/org/jivesoftware/openfire/spi/ConnectionListener.java
View file @
f83d604a
...
@@ -767,7 +767,6 @@ public class ConnectionListener
...
@@ -767,7 +767,6 @@ public class ConnectionListener
*
*
* @return An (ordered) set of protocols, never null but possibly empty.
* @return An (ordered) set of protocols, never null but possibly empty.
*/
*/
// TODO add setter!
public
Set
<
String
>
getEncryptionProtocols
()
public
Set
<
String
>
getEncryptionProtocols
()
{
{
final
Set
<
String
>
result
=
new
LinkedHashSet
<>();
final
Set
<
String
>
result
=
new
LinkedHashSet
<>();
...
@@ -781,6 +780,14 @@ public class ConnectionListener
...
@@ -781,6 +780,14 @@ public class ConnectionListener
}
else
{
}
else
{
result
.
addAll
(
Arrays
.
asList
(
csv
.
split
(
"\\s*,\\s*"
)
)
);
result
.
addAll
(
Arrays
.
asList
(
csv
.
split
(
"\\s*,\\s*"
)
)
);
}
}
// OF-1118: Do not return protocols that are not supported by the implementation.
try
{
result
.
retainAll
(
EncryptionArtifactFactory
.
getSupportedProtocols
()
);
}
catch
(
Exception
ex
)
{
Log
.
error
(
"An error occurred while obtaining the supported encryption protocols."
,
ex
);
}
return
result
;
return
result
;
}
}
...
@@ -880,6 +887,14 @@ public class ConnectionListener
...
@@ -880,6 +887,14 @@ public class ConnectionListener
}
else
{
}
else
{
result
.
addAll
(
Arrays
.
asList
(
csv
.
split
(
"\\s*,\\s*"
)
)
);
result
.
addAll
(
Arrays
.
asList
(
csv
.
split
(
"\\s*,\\s*"
)
)
);
}
}
// OF-1118: Do not return cipher suites that are not supported by the implementation.
try
{
result
.
retainAll
(
EncryptionArtifactFactory
.
getSupportedCipherSuites
()
);
}
catch
(
Exception
ex
)
{
Log
.
warn
(
"An error occurred while obtaining the supported encryption cipher suites."
,
ex
);
}
return
result
;
return
result
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment