diff options
author | Paul Querna <pquerna@apache.org> | 2016-03-13 14:00:11 -0700 |
---|---|---|
committer | Paul Querna <pquerna@apache.org> | 2016-03-14 16:40:21 -0700 |
commit | 4a9e7c4cb155ac3284bdca098227b1a78495a26f (patch) | |
tree | bd509927a0025b65e6fe8739c3cb7d8b327a5f19 /test | |
parent | 27df68940577764f4a98a1972d9958005e0ef858 (diff) |
Improve looks_like_ip_address for IPv6 addresses, and add tests
Diffstat (limited to 'test')
-rw-r--r-- | test/core/tsi/transport_security_test.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/core/tsi/transport_security_test.c b/test/core/tsi/transport_security_test.c index f1e7f7f8a8..667d3f0349 100644 --- a/test/core/tsi/transport_security_test.c +++ b/test/core/tsi/transport_security_test.c @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -194,6 +194,13 @@ const cert_name_test_entry cert_name_test_entries[] = { {0, "173.194.195.139", "foo.example.com", NULL, "8.8.8.8,8.8.4.4"}, {1, "173.194.195.139", "foo.example.com", NULL, "8.8.8.8,173.194.195.139"}, {0, "173.194.195.139", "foo.example.com", NULL, "173.194.195.13"}, + {0, "2001:db8:a0b:12f0::1", "foo.example.com", NULL, "173.194.195.13"}, + {1, "2001:db8:a0b:12f0::1", "foo.example.com", NULL, + "2001:db8:a0b:12f0::1"}, + {0, "2001:db8:a0b:12f0::1", "foo.example.com", NULL, + "2001:db8:a0b:12f0::2"}, + {1, "2001:db8:a0b:12f0::1", "foo.example.com", NULL, + "2001:db8:a0b:12f0::2,2001:db8:a0b:12f0::1,8.8.8.8"}, }; typedef struct name_list { |