crypt32: Get rid of a magic number and a redundant assignment.
This commit is contained in:
parent
e4a0633818
commit
8ccd53dd7a
@ -2586,7 +2586,7 @@ static BOOL CRYPT_AsnDecodeAltNameEntry(const BYTE *pbEncoded, DWORD cbEncoded,
|
|||||||
{
|
{
|
||||||
*pcbStructInfo = bytesNeeded;
|
*pcbStructInfo = bytesNeeded;
|
||||||
/* MS used values one greater than the asn1 ones.. sigh */
|
/* MS used values one greater than the asn1 ones.. sigh */
|
||||||
entry->dwAltNameChoice = (pbEncoded[0] & 0x7f) + 1;
|
entry->dwAltNameChoice = (pbEncoded[0] & ASN_TYPE_MASK) + 1;
|
||||||
switch (pbEncoded[0] & ASN_TYPE_MASK)
|
switch (pbEncoded[0] & ASN_TYPE_MASK)
|
||||||
{
|
{
|
||||||
case 1: /* rfc822Name */
|
case 1: /* rfc822Name */
|
||||||
@ -2604,7 +2604,6 @@ static BOOL CRYPT_AsnDecodeAltNameEntry(const BYTE *pbEncoded, DWORD cbEncoded,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 4: /* directoryName */
|
case 4: /* directoryName */
|
||||||
entry->dwAltNameChoice = CERT_ALT_NAME_DIRECTORY_NAME;
|
|
||||||
/* The data are memory-equivalent with the IPAddress case,
|
/* The data are memory-equivalent with the IPAddress case,
|
||||||
* fall-through
|
* fall-through
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user