Skip to content

Commit 298b488

Browse files
Merge pull request #6749 from cconlon/jniCertReq
Add WOLFSSL_CERT_EXT to --enable-jni, minor CSR items
2 parents 0352b38 + a2e2a3e commit 298b488

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5991,6 +5991,11 @@ then
59915991
ENABLED_CERTGEN="yes"
59925992
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
59935993
fi
5994+
if test "x$ENABLED_CERTREQ" = "xno"
5995+
then
5996+
ENABLED_CERTREQ="yes"
5997+
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_REQ"
5998+
fi
59945999
if test "x$ENABLED_SNI" = "xno"
59956000
then
59966001
ENABLED_SNI="yes"

src/x509.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9691,7 +9691,8 @@ WOLF_STACK_OF(WOLFSSL_X509)* wolfSSL_X509_chain_up_ref(
96919691
}
96929692
if (req->keyUsageSet)
96939693
cert->keyUsage = req->keyUsage;
9694-
/* Extended Key Usage not supported. */
9694+
9695+
cert->extKeyUsage = req->extKeyUsage;
96959696
#endif
96969697

96979698
XMEMCPY(cert->challengePw, req->challengePw, CTC_NAME_SIZE);
@@ -12611,6 +12612,10 @@ static int get_dn_attr_by_nid(int n, const char** buf)
1261112612
str = "ST";
1261212613
len = 2;
1261312614
break;
12615+
case NID_streetAddress:
12616+
str = "street";
12617+
len = 6;
12618+
break;
1261412619
case NID_organizationName:
1261512620
str = "O";
1261612621
len = 1;
@@ -12619,6 +12624,10 @@ static int get_dn_attr_by_nid(int n, const char** buf)
1261912624
str = "OU";
1262012625
len = 2;
1262112626
break;
12627+
case NID_postalCode:
12628+
str = "postalCode";
12629+
len = 10;
12630+
break;
1262212631
case NID_emailAddress:
1262312632
str = "emailAddress";
1262412633
len = 12;
@@ -12651,6 +12660,10 @@ static int get_dn_attr_by_nid(int n, const char** buf)
1265112660
str = "contentType";
1265212661
len = 11;
1265312662
break;
12663+
case NID_userId:
12664+
str = "UID";
12665+
len = 3;
12666+
break;
1265412667
default:
1265512668
WOLFSSL_MSG("Attribute type not found");
1265612669
str = NULL;

0 commit comments

Comments
 (0)