OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <errno.h> | 5 #include <errno.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
| 7 #include <stdlib.h> |
7 | 8 |
8 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
9 #include "net/base/dns_util.h" | 10 #include "net/base/dns_util.h" |
10 #include "net/base/dnssec_chain_verifier.h" | 11 #include "net/base/dnssec_chain_verifier.h" |
11 | 12 |
12 static int usage(const char* argv0) { | 13 static int usage(const char* argv0) { |
13 fprintf(stderr, "Usage: %s [--ignore-timestamps] <target domain> " | 14 fprintf(stderr, "Usage: %s [--ignore-timestamps] <target domain> " |
14 "<input file>\n", argv0); | 15 "<input file>\n", argv0); |
15 return 1; | 16 return 1; |
16 } | 17 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 100 } |
100 | 101 |
101 if (err != net::DNSSECChainVerifier::OK) { | 102 if (err != net::DNSSECChainVerifier::OK) { |
102 fprintf(stderr, "Chain error: %s (%d)\n", err_str, (int) err); | 103 fprintf(stderr, "Chain error: %s (%d)\n", err_str, (int) err); |
103 return 1; | 104 return 1; |
104 } | 105 } |
105 | 106 |
106 fprintf(stderr, "Chain good: rrtype:%d\n", verifier.rrtype()); | 107 fprintf(stderr, "Chain good: rrtype:%d\n", verifier.rrtype()); |
107 return 0; | 108 return 0; |
108 } | 109 } |
OLD | NEW |