-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8280 from kareem-wolfssl/zd19046
Add support for the RFC822 Mailbox attribute.
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69680,13 +69680,17 @@ static int test_wolfSSL_X509_NAME_ENTRY(void) | |
#ifdef WOLFSSL_CERT_REQ | ||
{ | ||
unsigned char srv_pkcs9p[] = "Server"; | ||
unsigned char rfc822Mlbx[] = "[email protected]"; | ||
unsigned char fvrtDrnk[] = "tequila"; | ||
unsigned char* der = NULL; | ||
char* subject = NULL; | ||
|
||
ExpectIntEQ(X509_NAME_add_entry_by_NID(nm, NID_pkcs9_contentType, | ||
MBSTRING_ASC, srv_pkcs9p, -1, -1, 0), SSL_SUCCESS); | ||
|
||
ExpectIntEQ(X509_NAME_add_entry_by_NID(nm, NID_rfc822Mailbox, | ||
MBSTRING_ASC, rfc822Mlbx, -1, -1, 0), SSL_SUCCESS); | ||
|
||
ExpectIntEQ(X509_NAME_add_entry_by_NID(nm, NID_favouriteDrink, | ||
MBSTRING_ASC, fvrtDrnk, -1, -1, 0), SSL_SUCCESS); | ||
|
||
|
@@ -69695,6 +69699,7 @@ static int test_wolfSSL_X509_NAME_ENTRY(void) | |
ExpectNotNull(der); | ||
|
||
ExpectNotNull(subject = X509_NAME_oneline(nm, NULL, 0)); | ||
ExpectNotNull(XSTRSTR(subject, "[email protected]")); | ||
ExpectNotNull(XSTRSTR(subject, "favouriteDrink=tequila")); | ||
ExpectNotNull(XSTRSTR(subject, "contentType=Server")); | ||
#ifdef DEBUG_WOLFSSL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters