| Index: net/cert/x509_certificate_ios.cc
|
| diff --git a/net/cert/x509_certificate_ios.cc b/net/cert/x509_certificate_ios.cc
|
| index 96ed1dea5102028e2f4a7761003c712b382748b3..553c63a4281a43ba93b7a6298579f9a153f0afeb 100644
|
| --- a/net/cert/x509_certificate_ios.cc
|
| +++ b/net/cert/x509_certificate_ios.cc
|
| @@ -16,7 +16,7 @@
|
| #include "base/strings/string_util.h"
|
| #include "crypto/openssl_util.h"
|
| #include "crypto/scoped_openssl_types.h"
|
| -#include "net/base/ip_address_number.h"
|
| +#include "net/base/ip_address.h"
|
| #include "net/cert/x509_util_openssl.h"
|
| #include "net/ssl/openssl_ssl_util.h"
|
|
|
| @@ -136,8 +136,8 @@ void ParseSubjectAltName(X509Certificate::OSCertHandle os_cert,
|
| if (!ip_addr)
|
| continue;
|
| int ip_addr_len = name->d.iPAddress->length;
|
| - if (ip_addr_len != static_cast<int>(kIPv4AddressSize) &&
|
| - ip_addr_len != static_cast<int>(kIPv6AddressSize)) {
|
| + if (ip_addr_len != static_cast<int>(IPAddress::kIPv4AddressSize) &&
|
| + ip_addr_len != static_cast<int>(IPAddress::kIPv6AddressSize)) {
|
| // http://www.ietf.org/rfc/rfc3280.txt requires subjectAltName iPAddress
|
| // to have 4 or 16 bytes, whereas in a name constraint it includes a
|
| // net mask hence 8 or 32 bytes. Logging to help diagnose any mixup.
|
|
|