summaryrefslogtreecommitdiffstats
path: root/net/der
Commit message (Collapse)AuthorAgeFilesLines
* Use std::tie() for operator< in net/jsbell2015-11-301-11/+5
| | | | | | | | | | | Simplify the code for operator< when comparing multiple members using a common std::tie idiom. BUG=555171 Review URL: https://codereview.chromium.org/1463053002 Cr-Commit-Position: refs/heads/master@{#362276}
* Cleanup: Correctly spell success(ful).thestig2015-11-231-1/+1
| | | | | | | | | TBR=brettw@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1469783002 Cr-Commit-Position: refs/heads/master@{#361166}
* Add code to parse RFC 5280 KeyUsage extension.eroman2015-11-113-0/+47
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1425853002 Cr-Commit-Position: refs/heads/master@{#359072}
* Add code to parse RFC 5280 BasicConstraints extension.eroman2015-11-113-0/+52
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1418513008 Cr-Commit-Position: refs/heads/master@{#359057}
* Add parser for CertificatePolicies extension.mattm2015-11-023-0/+25
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1414873002 Cr-Commit-Position: refs/heads/master@{#357451}
* Class for parsing and evaluating RFC 5280 NameConstraints.mattm2015-10-292-0/+13
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1214933009 Cr-Commit-Position: refs/heads/master@{#356773}
* Add a function for validating a DER-encoded INTEGER.eroman2015-08-183-36/+128
| | | | | | | | | | This also modifies der::ParseUint64() to support the full uint64_t range. BUG=410574 Review URL: https://codereview.chromium.org/1295943002 Cr-Commit-Position: refs/heads/master@{#344081}
* RFC 2459 name comparison.mattm2015-08-114-0/+17
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1125333005 Cr-Commit-Position: refs/heads/master@{#342750}
* Fix DER parsing bugs when parsing GeneralizedTime and UTCTimenharper2015-08-102-12/+24
| | | | | | | | BUG=518073,518079 Review URL: https://codereview.chromium.org/1278243002 Cr-Commit-Position: refs/heads/master@{#342736}
* [refactor] move BitString from der/input.h --> der/parse_values.heroman2015-08-055-31/+33
| | | | | | | | BUG=None Review URL: https://codereview.chromium.org/1272743002 Cr-Commit-Position: refs/heads/master@{#341999}
* [refactor] Add der::BitString to represent a parsed BIT STRING.eroman2015-08-038-98/+62
| | | | | | | | | | This abstraction helps clarify when inputs are already validated BIT STRINGs. BUG=410574 Review URL: https://codereview.chromium.org/1259863008 Cr-Commit-Position: refs/heads/master@{#341609}
* Add functions for DER parsing a BIT STRING.eroman2015-07-276-0/+206
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1248043002 Cr-Commit-Position: refs/heads/master@{#340594}
* [style] Rename "base" to "class_number" in ContextSpecificConstructed().eroman2015-07-082-4/+13
| | | | | | Review URL: https://codereview.chromium.org/1226783003 Cr-Commit-Position: refs/heads/master@{#337892}
* [style] Fix naming naming of a variable (camelCase -> hacker).eroman2015-07-011-3/+3
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1218173005 Cr-Commit-Position: refs/heads/master@{#337094}
* [style] Avoid using sizeof/arraysize in favor of templatized der::Input() ctor.eroman2015-07-012-25/+25
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1221643015 Cr-Commit-Position: refs/heads/master@{#337061}
* Remove dangerous std::string constructor for der::Inputnharper2015-06-064-76/+70
| | | | | | | | BUG=490472 Review URL: https://codereview.chromium.org/1160643002 Cr-Commit-Position: refs/heads/master@{#333201}
* Add a template-specialized constructor for der::Input for constantsrsleevi2015-05-212-0/+13
| | | | | | | | | | | | | | | Make it easier to create der::Input's from constants by the magical power of Templates. Old and busted: der::Input foo(kFoo, arraysize(kFoo)); New hotness: der::Input foo(kFoo); BUG=none R=mattm@chromium.org Review URL: https://codereview.chromium.org/1146283004 Cr-Commit-Position: refs/heads/master@{#330882}
* Trivial implementation of distinguished name comparison.mattm2015-05-113-0/+26
| | | | | | | | BUG=410574 Review URL: https://codereview.chromium.org/1126023002 Cr-Commit-Position: refs/heads/master@{#329140}
* Address some minor nits in net/der.eroman2015-05-074-6/+7
| | | | | | | | | | | | | * ifdef name to match filepath * Add some newlines * Delete a duplicated comment in .cc from header * update a variable name in comment block BUG=None Review URL: https://codereview.chromium.org/1132613002 Cr-Commit-Position: refs/heads/master@{#328840}
* Add DER parser to //netnharper2015-04-2211-0/+1567
The DER parsing code is split into 2 main sections - the Parser class for parsing constructed values, and the ParseType free functions for parsing primitive values. The Parser class should be complete at this point (with the exception of adding more convenience methods to match free functions). This CL has only a very limited number of free functions for parsing primitive values; more will be added in later CLs based on the demand needed for other types. Review URL: https://codereview.chromium.org/878813002 Cr-Commit-Position: refs/heads/master@{#326389}