OID_UNKNOWN (-1) requires int type
This commit is contained in:
@@ -618,9 +618,9 @@ static bool parse_certificate(chunk_t blob, private_x509ac_t *this)
|
||||
bool critical;
|
||||
chunk_t object;
|
||||
u_int level;
|
||||
u_int type = OID_UNKNOWN;
|
||||
u_int extn_oid = OID_UNKNOWN;
|
||||
int objectID = 0;
|
||||
int type = OID_UNKNOWN;
|
||||
int extn_oid = OID_UNKNOWN;
|
||||
|
||||
asn1_init(&ctx, blob, 0, FALSE, FALSE);
|
||||
while (objectID < AC_OBJ_ROOF)
|
||||
|
||||
@@ -466,11 +466,11 @@ static chunk_t ocsp_build_request(private_ocsp_t *this)
|
||||
static bool ocsp_parse_basic_response(chunk_t blob, int level0, response_t *res)
|
||||
{
|
||||
u_int level, version;
|
||||
u_int extn_oid = OID_UNKNOWN;
|
||||
asn1_ctx_t ctx;
|
||||
bool critical;
|
||||
chunk_t object;
|
||||
int objectID = 0;
|
||||
int extn_oid = OID_UNKNOWN;
|
||||
|
||||
asn1_init(&ctx, blob, level0, FALSE, FALSE);
|
||||
|
||||
@@ -546,9 +546,8 @@ static response_status ocsp_parse_response(response_t *res)
|
||||
chunk_t object;
|
||||
u_int level;
|
||||
int objectID = 0;
|
||||
|
||||
int ocspResponseType = OID_UNKNOWN;
|
||||
response_status rStatus = STATUS_INTERNALERROR;
|
||||
u_int ocspResponseType = OID_UNKNOWN;
|
||||
|
||||
asn1_init(&ctx, res->chunk, 0, FALSE, FALSE);
|
||||
|
||||
|
||||
@@ -453,8 +453,8 @@ parse_otherName(chunk_t blob, int level0)
|
||||
{
|
||||
asn1_ctx_t ctx;
|
||||
chunk_t object;
|
||||
int objectID = 0;
|
||||
u_int level;
|
||||
int objectID = 0;
|
||||
int oid = OID_UNKNOWN;
|
||||
|
||||
asn1_init(&ctx, blob, level0, FALSE, FALSE);
|
||||
@@ -639,8 +639,7 @@ static void parse_authorityInfoAccess(chunk_t blob, int level0, linked_list_t *l
|
||||
chunk_t object;
|
||||
u_int level;
|
||||
int objectID = 0;
|
||||
|
||||
u_int accessMethod = OID_UNKNOWN;
|
||||
int accessMethod = OID_UNKNOWN;
|
||||
|
||||
asn1_init(&ctx, blob, level0, FALSE, FALSE);
|
||||
while (objectID < AUTH_INFO_ACCESS_ROOF)
|
||||
@@ -759,8 +758,8 @@ static bool parse_certificate(chunk_t blob, u_int level0, private_x509_t *this)
|
||||
bool critical;
|
||||
chunk_t object;
|
||||
u_int level;
|
||||
u_int extn_oid = OID_UNKNOWN;
|
||||
int objectID = 0;
|
||||
int extn_oid = OID_UNKNOWN;
|
||||
|
||||
asn1_init(&ctx, blob, level0, FALSE, FALSE);
|
||||
while (objectID < X509_OBJ_ROOF)
|
||||
|
||||
Reference in New Issue
Block a user