Resolve warnings in VC-WIN32 build, which allows to add /WX.
It's argued that /WX allows to keep better focus on new code, which motivates its comeback... Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4721)
This commit is contained in:
parent
802127e8fc
commit
3a63c0edab
24 changed files with 182 additions and 162 deletions
|
@ -577,14 +577,14 @@ static size_t der_encode_length(size_t len, unsigned char **pp)
|
|||
|
||||
if (pp != NULL) {
|
||||
if (lenbytes == 1) {
|
||||
*(*pp)++ = len;
|
||||
*(*pp)++ = (unsigned char)len;
|
||||
} else {
|
||||
*(*pp)++ = lenbytes - 1;
|
||||
*(*pp)++ = (unsigned char)(lenbytes - 1);
|
||||
if (lenbytes == 2) {
|
||||
*(*pp)++ = 0x80 | len;
|
||||
*(*pp)++ = (unsigned char)(0x80 | len);
|
||||
} else {
|
||||
*(*pp)++ = 0x80 | (len >> 8);
|
||||
*(*pp)++ = len & 0xff;
|
||||
*(*pp)++ = (unsigned char)(0x80 | (len >> 8));
|
||||
*(*pp)++ = (unsigned char)(len);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue