Skip to content

Commit

Permalink
Updated DiameterFW DTLS encryption model and bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
p1-martin committed Jul 18, 2019
1 parent 9bb17a3 commit 8ce8e14
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 107 deletions.
1 change: 1 addition & 0 deletions sigfw/sigfw.sigfw/diameterfw.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
],
"application_id_whitelist": [
"0",
"11111111",
"16777251"
],
"command_code_blacklist": [
Expand Down
1 change: 1 addition & 0 deletions sigfw/sigfw.sigfw/diameterfw_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
],
"application_id_whitelist": [
"0",
"11111111",
"16777251"
],
"command_code_blacklist": [
Expand Down
1 change: 1 addition & 0 deletions sigfw/sigfw.sigfw/diameterfw_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
],
"application_id_whitelist": [
"0",
"11111111",
"16777251"
],
"command_code_blacklist": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private void sendNextRequest(int enumType) throws InternalException, IllegalDiam
requestAvps.removeAvp(293);

// example how to add AVP IMSI
byte[] b = hexStringToByteArray("31313131313131313131313131313131");
byte[] b = hexStringToByteArray("313131303131313131313131313131");
requestAvps.addAvp(1, b, true, false);

// example how to add grouped AVP
Expand All @@ -286,10 +286,10 @@ private void sendNextRequest(int enumType) throws InternalException, IllegalDiam

// code , value , vendor, mandatory,protected,isUnsigned32
// (Enumerated)
Avp exchangeType = requestAvps.addAvp(exchangeTypeCode, (long) enumType, vendorID, true, false, true);
//Avp exchangeType = requestAvps.addAvp(exchangeTypeCode, (long) enumType, vendorID, true, false, true);

// code , value , vendor, mandatory,protected, isOctetString
Avp exchengeData = requestAvps.addAvp(exchangeDataCode, TO_SEND[(toSendIndex++)%(TO_SEND.length)], vendorID, true, false, false);
//Avp exchengeData = requestAvps.addAvp(exchangeDataCode, TO_SEND[(toSendIndex++)%(TO_SEND.length)], vendorID, true, false, false);

// creation
// send
Expand Down
Loading

0 comments on commit 8ce8e14

Please sign in to comment.