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

Side by Side Diff: net/der/parser.cc

Issue 1541213002: Adding OCSP Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix break condition. Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/numerics/safe_math.h" 6 #include "base/numerics/safe_math.h"
7 #include "net/der/parse_values.h" 7 #include "net/der/parse_values.h"
8 #include "net/der/parser.h" 8 #include "net/der/parser.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 return ParseUint64(encoded_int, out); 186 return ParseUint64(encoded_int, out);
187 } 187 }
188 188
189 bool Parser::ReadBitString(BitString* bit_string) { 189 bool Parser::ReadBitString(BitString* bit_string) {
190 Input value; 190 Input value;
191 if (!ReadTag(kBitString, &value)) 191 if (!ReadTag(kBitString, &value))
192 return false; 192 return false;
193 return ParseBitString(value, bit_string); 193 return ParseBitString(value, bit_string);
194 } 194 }
195 195
196 bool Parser::ReadGeneralizedTime(GeneralizedTime* out) {
197 Input value;
198 if (!ReadTag(kGeneralizedTime, &value))
199 return false;
200 return ParseGeneralizedTime(value, out);
201 }
202
196 } // namespace der 203 } // namespace der
197 204
198 } // namespace net 205 } // namespace net
OLDNEW
« net/der/input.h ('K') | « net/der/parser.h ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698