From e8c6964bdf64ca3f35e5b805d81cf955fd83411c Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Wed, 2 Jun 2021 20:07:15 +0300 Subject: [PATCH] fix small bug --- client/src/cipurse/cipursecrypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cipurse/cipursecrypto.c b/client/src/cipurse/cipursecrypto.c index dd2db2c66..10bbfa0ff 100644 --- a/client/src/cipurse/cipursecrypto.c +++ b/client/src/cipurse/cipursecrypto.c @@ -186,8 +186,8 @@ void CipurseCSetRandomHost(CipurseContext *ctx) { uint8_t CipurseCGetSMI(CipurseContext *ctx, bool LePresent) { uint8_t res = LePresent ? 1 : 0; - res = res | (CipurseCSecurityLevelEnc(ctx->RequestSecurity) << 2); - res = res | (CipurseCSecurityLevelEnc(ctx->ResponseSecurity) << 6); + res = res | (CipurseCSecurityLevelEnc(ctx->ResponseSecurity) << 2); + res = res | (CipurseCSecurityLevelEnc(ctx->RequestSecurity) << 6); return res; }