Link Here
|
0 |
- |
1 |
--- src/tests/unit_x509.cpp.orig 2024-02-20 17:28:54 UTC |
|
|
2 |
+++ src/tests/unit_x509.cpp |
3 |
@@ -18,6 +18,8 @@ |
4 |
#include <botan/x509path.h> |
5 |
#include <botan/x509self.h> |
6 |
#include <botan/internal/calendar.h> |
7 |
+ |
8 |
+ #include <boost/range/algorithm.hpp> |
9 |
#endif |
10 |
|
11 |
namespace Botan_Tests { |
12 |
@@ -627,7 +629,7 @@ Test::Result test_x509_encode_authority_info_access_ex |
13 |
|
14 |
for(const auto& ca_issuer : cert.ca_issuers()) { |
15 |
result.confirm("CA issuer URI present in certificate", |
16 |
- std::ranges::find(ca_issuers, ca_issuer) != ca_issuers.end()); |
17 |
+ boost::range::find(ca_issuers, ca_issuer) != ca_issuers.end()); |
18 |
} |
19 |
|
20 |
result.confirm("no OCSP url available", cert.ocsp_responder().empty()); |
21 |
@@ -1400,7 +1402,7 @@ Test::Result test_x509_extensions(const Botan::Private |
22 |
!cert_cdps->crl_distribution_urls().empty())) { |
23 |
for(const auto& cdp : cert_cdps->distribution_points()) { |
24 |
result.confirm("CDP URI present in self-signed certificate", |
25 |
- std::ranges::find(cdp_urls, cdp.point().get_first_attribute("URI")) != cdp_urls.end()); |
26 |
+ boost::range::find(cdp_urls, cdp.point().get_first_attribute("URI")) != cdp_urls.end()); |
27 |
} |
28 |
} |
29 |
|
30 |
@@ -1436,7 +1438,7 @@ Test::Result test_x509_extensions(const Botan::Private |
31 |
!cert_cdps->crl_distribution_urls().empty())) { |
32 |
for(const auto& cdp : cert_cdps->distribution_points()) { |
33 |
result.confirm("CDP URI present in self-signed certificate", |
34 |
- std::ranges::find(cdp_urls, cdp.point().get_first_attribute("URI")) != cdp_urls.end()); |
35 |
+ boost::range::find(cdp_urls, cdp.point().get_first_attribute("URI")) != cdp_urls.end()); |
36 |
} |
37 |
} |
38 |
|