@@ -21,20 +21,20 @@ Reviewed-by: Richard Levitte <levitte@openssl.org>
2121Reviewed-by: Tomas Mraz <tomas@openssl.org>
2222(cherry picked from commit 0890cd13d40fbc98f655f3974f466769caa83680)
2323---
24- crypto/x509/v3_utl.c | 78 +++++++++++++------
25- test/recipes/25-test_eai_data.t | 12 ++-
26- test/recipes/25-test_eai_data/kdc-cert.pem | 21 +++++
27- .../25-test_eai_data/kdc-root-cert.pem | 16 ++++
28- test/recipes/25-test_eai_data/kdc.sh | 41 ++++++++++
24+ CryptoPkg/Library/OpensslLib/openssl/ crypto/x509/v3_utl.c | 78 +++++++++++++------
25+ CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data.t | 12 ++-
26+ CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc-cert.pem | 21 +++++
27+ .../25-test_eai_data/kdc-root-cert.pem | 16 ++++
28+ CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc.sh | 41 ++++++++++
2929 5 files changed, 142 insertions(+), 26 deletions(-)
3030 create mode 100644 test/recipes/25-test_eai_data/kdc-cert.pem
3131 create mode 100644 test/recipes/25-test_eai_data/kdc-root-cert.pem
3232 create mode 100755 test/recipes/25-test_eai_data/kdc.sh
3333
34- diff --git a/crypto/x509/v3_utl.c b/crypto/x509/v3_utl.c
34+ diff --git a/CryptoPkg/Library/OpensslLib/openssl/ crypto/x509/v3_utl.c b/CryptoPkg/Library/OpensslLib/openssl /crypto/x509/v3_utl.c
3535index 1a18174995196..a09414c972fa8 100644
36- --- a/crypto/x509/v3_utl.c
37- +++ b/crypto/x509/v3_utl.c
36+ --- a/CryptoPkg/Library/OpensslLib/openssl/ crypto/x509/v3_utl.c
37+ +++ b/CryptoPkg/Library/OpensslLib/openssl/ crypto/x509/v3_utl.c
3838@@ -916,36 +916,64 @@ static int do_x509_check(X509 *x, const char *chk, size_t chklen,
3939 ASN1_STRING *cstr;
4040
@@ -125,10 +125,10 @@ index 1a18174995196..a09414c972fa8 100644
125125 /* Positive on success, negative on error! */
126126 if ((rv = do_check_string(cstr, alt_type, equal, flags,
127127 chk, chklen, peername)) != 0)
128- diff --git a/test/recipes/25-test_eai_data.t b/test/recipes/25-test_eai_data.t
128+ diff --git a/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data.t b/CryptoPkg/Library/OpensslLib/openssl /test/recipes/25-test_eai_data.t
129129index 522982ddfb802..e18735d89aadf 100644
130- --- a/test/recipes/25-test_eai_data.t
131- +++ b/test/recipes/25-test_eai_data.t
130+ --- a/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data.t
131+ +++ b/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data.t
132132@@ -21,16 +21,18 @@ setup("test_eai_data");
133133 #./util/wrap.pl apps/openssl verify -nameopt utf8 -no_check_time -CAfile test/recipes/25-test_eai_data/utf8_chain.pem test/recipes/25-test_eai_data/ascii_leaf.pem
134134 #./util/wrap.pl apps/openssl verify -nameopt utf8 -no_check_time -CAfile test/recipes/25-test_eai_data/ascii_chain.pem test/recipes/25-test_eai_data/utf8_leaf.pem
@@ -168,11 +168,11 @@ index 522982ddfb802..e18735d89aadf 100644
168168 #Check that we get the expected failure return code
169169 with({ exit_checker => sub { return shift == 2; } },
170170 sub {
171- diff --git a/test/recipes/25-test_eai_data/kdc-cert.pem b/test/recipes/25-test_eai_data/kdc-cert.pem
171+ diff --git a/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc-cert.pem b/CryptoPkg/Library/OpensslLib/openssl /test/recipes/25-test_eai_data/kdc-cert.pem
172172new file mode 100644
173173index 0000000000000..e8a2c6f55d459
174174--- /dev/null
175- +++ b/test/recipes/25-test_eai_data/kdc-cert.pem
175+ +++ b/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc-cert.pem
176176@@ -0,0 +1,21 @@
177177+ -----BEGIN CERTIFICATE-----
178178+ MIIDbDCCAlSgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290
@@ -195,11 +195,11 @@ index 0000000000000..e8a2c6f55d459
195195+ 0fTCOBEMjIETDsrA70OxAMu4V16nrWZdJdvzblS2qrt97Omkj+2kiPAJFB76RpwI
196196+ oDQ9fKfUOAmUFth2/R/eGA==
197197+ -----END CERTIFICATE-----
198- diff --git a/test/recipes/25-test_eai_data/kdc-root-cert.pem b/test/recipes/25-test_eai_data/kdc-root-cert.pem
198+ diff --git a/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc-root-cert.pem b/CryptoPkg/Library/OpensslLib/openssl /test/recipes/25-test_eai_data/kdc-root-cert.pem
199199new file mode 100644
200200index 0000000000000..a74c96bf31469
201201--- /dev/null
202- +++ b/test/recipes/25-test_eai_data/kdc-root-cert.pem
202+ +++ b/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc-root-cert.pem
203203@@ -0,0 +1,16 @@
204204+ -----BEGIN CERTIFICATE-----
205205+ MIICnDCCAYQCCQCBswYcrlZSHjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARS
@@ -217,11 +217,11 @@ index 0000000000000..a74c96bf31469
217217+ 7rFGM5AOevb4U8ddop8A3D/kX0wcCAIBF6jCNk3uEJ57jVcagL04kPnVfdRiedTS
218218+ vfq1DRNcD29d1H/9u0fHdSn1/+8Ep3X+afQ3C6//5NvOEaXcIGO4QSwkprQydfv8
219219+ -----END CERTIFICATE-----
220- diff --git a/test/recipes/25-test_eai_data/kdc.sh b/test/recipes/25-test_eai_data/kdc.sh
220+ diff --git a/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc.sh b/CryptoPkg/Library/OpensslLib/openssl /test/recipes/25-test_eai_data/kdc.sh
221221new file mode 100755
222222index 0000000000000..7a8dbc719fb71
223223--- /dev/null
224- +++ b/test/recipes/25-test_eai_data/kdc.sh
224+ +++ b/CryptoPkg/Library/OpensslLib/openssl/ test/recipes/25-test_eai_data/kdc.sh
225225@@ -0,0 +1,41 @@
226226+ #! /usr/bin/env bash
227227+
0 commit comments