mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
Merge pull request #1151 from dgarske/fix_asn_keyusage
Fixes bug with creation of the KeyUsage BitString
This commit is contained in:
@@ -1060,7 +1060,8 @@ static word32 SetBitString16Bit(word16 val, byte* output)
|
||||
|
||||
idx = SetBitString(len, unusedBits, output);
|
||||
output[idx++] = (byte)val;
|
||||
output[idx++] = (byte)(val >> 8);
|
||||
if (len > 1)
|
||||
output[idx++] = (byte)(val >> 8);
|
||||
|
||||
return idx;
|
||||
}
|
||||
|
Reference in New Issue
Block a user