Project

General

Profile

Bug #1091 » decode_der.patch

Jack Flemming, 01/27/2014 04:31 PM

View differences:

src/util-decode-der.c
Asn1Generic *cert;
uint8_t c;
if (errcode)
*errcode = ERR_DER_GENERIC;
/* Check that buffer is an ASN.1 structure (basic checks) */
if (d_ptr[0] != 0x30 && d_ptr[1] != 0x82) /* Sequence */
return NULL;
(2-2/2)