make style

This commit is contained in:
merlokk 2021-06-03 19:13:11 +03:00
commit f3f3a5a270
5 changed files with 169 additions and 164 deletions

View file

@ -27,11 +27,16 @@ uint8_t QConstant[CIPURSE_AES_KEY_LENGTH] = {0x74, 0x74, 0x74, 0x74, 0x74, 0x74,
uint8_t CipurseCSecurityLevelEnc(CipurseChannelSecurityLevel lvl) { uint8_t CipurseCSecurityLevelEnc(CipurseChannelSecurityLevel lvl) {
switch (lvl) { switch (lvl) {
case CPSNone: return 0x00; case CPSNone:
case CPSPlain: return 0x00; return 0x00;
case CPSMACed: return 0x01; case CPSPlain:
case CPSEncrypted: return 0x02; return 0x00;
default: return 0x00; case CPSMACed:
return 0x01;
case CPSEncrypted:
return 0x02;
default:
return 0x00;
} }
} }