mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
correct DIST_POINT_NAME type value
This commit is contained in:
@@ -4118,8 +4118,9 @@ static WOLFSSL_DIST_POINT_NAME* wolfSSL_DIST_POINT_NAME_new(void)
|
|||||||
}
|
}
|
||||||
gns->type = STACK_TYPE_GEN_NAME;
|
gns->type = STACK_TYPE_GEN_NAME;
|
||||||
|
|
||||||
|
/* Setting type to 0 because this is fullname */
|
||||||
dpn->name.fullname = gns;
|
dpn->name.fullname = gns;
|
||||||
dpn->type = CRL_DIST_OID;
|
dpn->type = 0;
|
||||||
|
|
||||||
return dpn;
|
return dpn;
|
||||||
}
|
}
|
||||||
|
@@ -42524,6 +42524,7 @@ static int test_wolfSSL_sk_DIST_POINT(void)
|
|||||||
int bytes, i, j;
|
int bytes, i, j;
|
||||||
XFILE f;
|
XFILE f;
|
||||||
DIST_POINT* dp;
|
DIST_POINT* dp;
|
||||||
|
DIST_POINT_NAME* dpn;
|
||||||
GENERAL_NAME* gn;
|
GENERAL_NAME* gn;
|
||||||
ASN1_IA5STRING* uri;
|
ASN1_IA5STRING* uri;
|
||||||
STACK_OF(DIST_POINT)* dps;
|
STACK_OF(DIST_POINT)* dps;
|
||||||
@@ -42546,6 +42547,10 @@ static int test_wolfSSL_sk_DIST_POINT(void)
|
|||||||
AssertIntEQ(sk_DIST_POINT_num(dps), 1);
|
AssertIntEQ(sk_DIST_POINT_num(dps), 1);
|
||||||
for (i = 0; i < sk_DIST_POINT_num(dps); i++) {
|
for (i = 0; i < sk_DIST_POINT_num(dps); i++) {
|
||||||
AssertNotNull(dp = sk_DIST_POINT_value(dps, i));
|
AssertNotNull(dp = sk_DIST_POINT_value(dps, i));
|
||||||
|
AssertNotNull(dpn = dp->distpoint);
|
||||||
|
|
||||||
|
/* this should be type 0, fullname */
|
||||||
|
AssertIntEQ(dpn->type, 0);
|
||||||
|
|
||||||
gns = dp->distpoint->name.fullname;
|
gns = dp->distpoint->name.fullname;
|
||||||
AssertNotNull(gns);
|
AssertNotNull(gns);
|
||||||
|
Reference in New Issue
Block a user