<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/26391">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ran_msg_iu: ensure UEA0 is not passwd to ranap_new_msg_sec_mod_cmd2()<br><br>Since ranap_new_msg_sec_mod_cmd2() doesn't support UEA0 we must not pass it to it.<br>The reason behind is that UEA0 can't passed in the TLV of a SecurityCommand and is implicit<br>UEA0 if the TLV is not present.<br><br>Fixes: 505a94a610fc ("Make UTRAN encryption algorithms configurable")<br>Change-Id: I3271d27c09fc8d70a912bce998ceffbce64dd95e<br>---<br>M src/libmsc/ran_msg_iu.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/91/26391/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libmsc/ran_msg_iu.c b/src/libmsc/ran_msg_iu.c</span><br><span>index 8ffdd93..9a37e5c 100644</span><br><span>--- a/src/libmsc/ran_msg_iu.c</span><br><span>+++ b/src/libmsc/ran_msg_iu.c</span><br><span>@@ -382,7 +382,7 @@</span><br><span>     /* TODO: Do we need to check if the UE supports all of the algorithms and build an intersection like</span><br><span>          * in the case of A5? */</span><br><span>     return ranap_new_msg_sec_mod_cmd2(cm->vec->ik, cm->utran.uea_encryption_mask > (1 << OSMO_UTRAN_UEA0) ? cm->vec->ck : NULL,</span><br><span style="color: hsl(0, 100%, 40%);">-                                       RANAP_KeyStatus_new, 0x06, cm->utran.uea_encryption_mask);</span><br><span style="color: hsl(120, 100%, 40%);">+                                         RANAP_KeyStatus_new, 0x06, cm->utran.uea_encryption_mask & ~(1 << OSMO_UTRAN_UEA0));</span><br><span> }</span><br><span> </span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/26391">change 26391</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-msc/+/26391"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3271d27c09fc8d70a912bce998ceffbce64dd95e </div>
<div style="display:none"> Gerrit-Change-Number: 26391 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>