<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24671">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc: f_cipher_mode(): verify enc alg in Cipher Mode Complete msg<br><br>Related: SYS#5324<br>Change-Id: I88b386c55e23cc180131e95a005d08cbc3ec102b<br>---<br>M bsc/MSC_ConnectionHandler.ttcn<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-ttcn3-hacks refs/changes/71/24671/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn</span><br><span>index d902301..7fb7130 100644</span><br><span>--- a/bsc/MSC_ConnectionHandler.ttcn</span><br><span>+++ b/bsc/MSC_ConnectionHandler.ttcn</span><br><span>@@ -758,11 +758,13 @@</span><br><span>             repeat;</span><br><span>              }</span><br><span>    [] BSSAP.receive(tr_BSSMAP_CipherModeCompl) -> value bssap {</span><br><span style="color: hsl(0, 100%, 40%);">-         // bssap.bssmap.cipherModeComplete.chosenEncryptionAlgorithm.algoritmhIdentifier</span><br><span>             if (exp_fail == true) {</span><br><span>                      Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Unexpected Cipher Mode Complete");</span><br><span>             } else {</span><br><span>                     setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+                     if (oct2int(bssap.pdu.bssmap.cipherModeComplete.chosenEncryptionAlgorithm.algorithmIdentifier) != enum2int(alg_rsl)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                setverdict(fail, "Unexpected Encryption Algorithm ID in BSSMAP Cipher Mode Complete");</span><br><span style="color: hsl(120, 100%, 40%);">+                      }</span><br><span>            }</span><br><span>            }</span><br><span>    [] BSSAP.receive(tr_BSSMAP_CipherModeRej) -> value bssap {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24671">change 24671</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-ttcn3-hacks/+/24671"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I88b386c55e23cc180131e95a005d08cbc3ec102b </div>
<div style="display:none"> Gerrit-Change-Number: 24671 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>