aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_peer_fsm.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-05-30 15:03:28 +0200
committerAnders Svensson <[email protected]>2013-05-30 15:30:35 +0200
commit169ec3dde995d48c02cb4d65e2fd69139a3a805b (patch)
tree35627c7b46bae2bece57afae70097c93ef8b3ebe /lib/diameter/src/base/diameter_peer_fsm.erl
parent22685099ace9802016bf6203c525702084717d72 (diff)
downloadotp-169ec3dde995d48c02cb4d65e2fd69139a3a805b.tar.gz
otp-169ec3dde995d48c02cb4d65e2fd69139a3a805b.tar.bz2
otp-169ec3dde995d48c02cb4d65e2fd69139a3a805b.zip
Don't send default Inband-Security-Id in CER/CEA
RFC 6733 recommends against the use of Inband-Security-Id, so only send a value that differs from the default.
Diffstat (limited to 'lib/diameter/src/base/diameter_peer_fsm.erl')
-rw-r--r--lib/diameter/src/base/diameter_peer_fsm.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl
index 6be4259510..d9db630ec0 100644
--- a/lib/diameter/src/base/diameter_peer_fsm.erl
+++ b/lib/diameter/src/base/diameter_peer_fsm.erl
@@ -702,7 +702,7 @@ build_answer('CER',
N -> {cea(CEA, N, Dict0), [fun open/5, Pkt,
SupportedApps,
Caps,
- {accept, hd([_] = IS)}]}
+ {accept, inband_security(IS)}]}
catch
?FAILURE(Reason) ->
rejected(Reason, {'CER', Reason, Caps, Pkt}, S)
@@ -719,6 +719,11 @@ build_answer(Type,
RC = rc(H, Es),
{answer(Type, RC, Es, S), post(Type, RC, Pkt, S)}.
+inband_security([]) ->
+ ?NO_INBAND_SECURITY;
+inband_security([IS]) ->
+ IS.
+
cea(CEA, ok, _) ->
CEA;
cea(CEA, 2001, _) ->