Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Ray Milkey
2015-10-21 12:13:49 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d9dfe11fb5d179df1de80bec4f0053e08b8c44ed
d9dfe11f
1 parent
9803071b
Bug fixes for TLS authentication
Change-Id: I568273cb6fc5f0c95c15dc37ad17f51c2090917b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
apps/aaa/src/main/java/org/onosproject/aaa/AAA.java
apps/aaa/src/main/java/org/onosproject/aaa/AAA.java
View file @
d9dfe11
...
...
@@ -394,8 +394,9 @@ public class AAA {
stateMachine
.
challengeState
());
stateMachine
.
setRequestAuthenticator
(
radiusPayload
.
generateAuthCode
());
sendRADIUSPacket
(
radiusPayload
);
radiusPayload
.
addMessageAuthenticator
(
AAA
.
this
.
radiusSecret
);
sendRADIUSPacket
(
radiusPayload
);
// TODO: this gets called on every fragment, should only be called at TLS-Start
stateMachine
.
requestAccess
();
...
...
@@ -473,7 +474,9 @@ public class AAA {
RADIUS
inboundRadiusPacket
;
while
(!
done
)
{
try
{
DatagramPacket
inboundBasePacket
=
new
DatagramPacket
(
new
byte
[
1000
],
1000
);
byte
[]
packetBuffer
=
new
byte
[
RADIUS
.
RADIUS_MAX_LENGTH
];
DatagramPacket
inboundBasePacket
=
new
DatagramPacket
(
packetBuffer
,
packetBuffer
.
length
);
DatagramSocket
socket
=
radiusSocket
;
socket
.
receive
(
inboundBasePacket
);
log
.
info
(
"Packet #{} received"
,
packetNumber
++);
...
...
Please
register
or
login
to post a comment