<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/26390">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">msc: always require ciphering for UTRAN<br><br>OsmoMSC treats UTRAN SecurityCommand as ciphering and UTRAN requires<br>the SecurityCommand even when not requiring any encryption.<br><br>Fixes: 505a94a610fc ("Make UTRAN encryption algorithms configurable")<br>Change-Id: I8896ecc2f23c8fdb2b3e83b3aeabd55a0911a612<br>---<br>M src/libmsc/msc_a.c<br>1 file changed, 3 insertions(+), 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/90/26390/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c</span><br><span>index cb7566a..424248a 100644</span><br><span>--- a/src/libmsc/msc_a.c</span><br><span>+++ b/src/libmsc/msc_a.c</span><br><span>@@ -109,8 +109,10 @@</span><br><span> bool msc_a_require_ciphering(const struct msc_a *msc_a) {</span><br><span> struct gsm_network *net = msc_a_net(msc_a);</span><br><span> bool is_utran = (msc_a->c.ran->type == OSMO_RAT_UTRAN_IU);</span><br><span style="color: hsl(120, 100%, 40%);">+ /* UTRAN requires a SecurityCommand which OsmoMSC treats as Ciphering.</span><br><span style="color: hsl(120, 100%, 40%);">+ * Depending on the uea_encryption_mask there might be no encryption. */</span><br><span> if (is_utran)</span><br><span style="color: hsl(0, 100%, 40%);">- return net->uea_encryption_mask > (1 << OSMO_UTRAN_UEA0);</span><br><span style="color: hsl(120, 100%, 40%);">+ return true;</span><br><span> else</span><br><span> return net->a5_encryption_mask > 0x1;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/26390">change 26390</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/+/26390"/><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: I8896ecc2f23c8fdb2b3e83b3aeabd55a0911a612 </div>
<div style="display:none"> Gerrit-Change-Number: 26390 </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-MessageType: newchange </div>