Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: net/tools/crl_set_dump/crl_set_dump.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This utility can dump the contents of CRL set, optionally augmented with a 5 // This utility can dump the contents of CRL set, optionally augmented with a
6 // delta CRL set. 6 // delta CRL set.
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/at_exit.h" 14 #include "base/at_exit.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/string_number_conversions.h" 17 #include "base/string_number_conversions.h"
18 #include "net/base/crl_set.h" 18 #include "net/cert/crl_set.h"
19 19
20 static int Usage(const char* argv0) { 20 static int Usage(const char* argv0) {
21 fprintf(stderr, "Usage: %s <crl-set file> [<delta file>]" 21 fprintf(stderr, "Usage: %s <crl-set file> [<delta file>]"
22 " [<resulting output file>]\n", argv0); 22 " [<resulting output file>]\n", argv0);
23 return 1; 23 return 1;
24 } 24 }
25 25
26 int main(int argc, char** argv) { 26 int main(int argc, char** argv) {
27 base::AtExitManager at_exit_manager; 27 base::AtExitManager at_exit_manager;
28 28
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 i++) { 74 i++) {
75 printf("%s\n", base::HexEncode(i->first.data(), i->first.size()).c_str()); 75 printf("%s\n", base::HexEncode(i->first.data(), i->first.size()).c_str());
76 for (std::vector<std::string>::const_iterator j = i->second.begin(); 76 for (std::vector<std::string>::const_iterator j = i->second.begin();
77 j != i->second.end(); j++) { 77 j != i->second.end(); j++) {
78 printf(" %s\n", base::HexEncode(j->data(), j->size()).c_str()); 78 printf(" %s\n", base::HexEncode(j->data(), j->size()).c_str());
79 } 79 }
80 } 80 }
81 81
82 return 0; 82 return 0;
83 } 83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698