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

Side by Side Diff: net/der/tag.h

Issue 1541213002: Adding OCSP Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding initial unittest. Created 4 years, 11 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 #ifndef NET_DER_TAG_H_ 5 #ifndef NET_DER_TAG_H_
6 #define NET_DER_TAG_H_ 6 #define NET_DER_TAG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 10 matching lines...) Expand all
21 // bitmasks. 21 // bitmasks.
22 using Tag = uint8_t; 22 using Tag = uint8_t;
23 23
24 // Universal class primitive types 24 // Universal class primitive types
25 const Tag kBool = 0x01; 25 const Tag kBool = 0x01;
26 const Tag kInteger = 0x02; 26 const Tag kInteger = 0x02;
27 const Tag kBitString = 0x03; 27 const Tag kBitString = 0x03;
28 const Tag kOctetString = 0x04; 28 const Tag kOctetString = 0x04;
29 const Tag kNull = 0x05; 29 const Tag kNull = 0x05;
30 const Tag kOid = 0x06; 30 const Tag kOid = 0x06;
31 const Tag kEnumerated = 0x0A;
31 const Tag kUtf8String = 0x0C; 32 const Tag kUtf8String = 0x0C;
32 const Tag kPrintableString = 0x13; 33 const Tag kPrintableString = 0x13;
33 const Tag kIA5String = 0x16; 34 const Tag kIA5String = 0x16;
34 const Tag kUtcTime = 0x17; 35 const Tag kUtcTime = 0x17;
35 const Tag kGeneralizedTime = 0x18; 36 const Tag kGeneralizedTime = 0x18;
36 const Tag kUniversalString = 0x1C; 37 const Tag kUniversalString = 0x1C;
37 const Tag kBmpString = 0x1E; 38 const Tag kBmpString = 0x1E;
38 39
39 // Universal class constructed types 40 // Universal class constructed types
40 const Tag kSequence = 0x30; 41 const Tag kSequence = 0x30;
(...skipping 29 matching lines...) Expand all
70 71
71 NET_EXPORT bool IsConstructed(Tag tag); 72 NET_EXPORT bool IsConstructed(Tag tag);
72 73
73 NET_EXPORT uint8_t GetTagNumber(Tag tag); 74 NET_EXPORT uint8_t GetTagNumber(Tag tag);
74 75
75 } // namespace der 76 } // namespace der
76 77
77 } // namespace net 78 } // namespace net
78 79
79 #endif // NET_DER_TAG_H_ 80 #endif // NET_DER_TAG_H_
OLDNEW
« net/cert/ocsp_parser.cc ('K') | « net/cert/ocsp_parser_unittest.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698