forked from wolfSSL/wolfssl
Merge pull request #5721 from philljj/zd15011
This commit is contained in:
@@ -4118,8 +4118,10 @@ static WOLFSSL_DIST_POINT_NAME* wolfSSL_DIST_POINT_NAME_new(void)
|
||||
}
|
||||
gns->type = STACK_TYPE_GEN_NAME;
|
||||
|
||||
/* DIST_POINT_NAME type may be 0 or 1, indicating whether fullname or
|
||||
* relativename is used. See: RFC 5280 section 4.2.1.13 */
|
||||
dpn->name.fullname = gns;
|
||||
dpn->type = CRL_DIST_OID;
|
||||
dpn->type = 0;
|
||||
|
||||
return dpn;
|
||||
}
|
||||
|
@@ -42572,6 +42572,7 @@ static int test_wolfSSL_sk_DIST_POINT(void)
|
||||
int bytes, i, j;
|
||||
XFILE f;
|
||||
DIST_POINT* dp;
|
||||
DIST_POINT_NAME* dpn;
|
||||
GENERAL_NAME* gn;
|
||||
ASN1_IA5STRING* uri;
|
||||
STACK_OF(DIST_POINT)* dps;
|
||||
@@ -42594,6 +42595,10 @@ static int test_wolfSSL_sk_DIST_POINT(void)
|
||||
AssertIntEQ(sk_DIST_POINT_num(dps), 1);
|
||||
for (i = 0; i < sk_DIST_POINT_num(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;
|
||||
AssertNotNull(gns);
|
||||
|
Reference in New Issue
Block a user