aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/asn1_time.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Allow year up to 2200 in ASN1 time objectsJack Lloyd2018-04-121-4/+17
| | | | | | Also tighten up checking of days Fixes GH #1536
* Prepare for making BER_Object members privateJack Lloyd2018-01-181-1/+1
| | | | | Now there are usable accessors that allow the library to avoid using BER_Object members directly.
* Remove use of "using namespace std"Jack Lloyd2017-12-041-8/+10
|
* Simplify date conversion by avoiding OS utilitiesJack Lloyd2017-12-041-6/+6
| | | | | | | We have to rely on non-portable OS calls to convert UTC times, and they are not available on many systems (including Solaris and MinGW). But instead there is a simple algorithm due to Howard Hinnant that does the same job. Woo.
* Remove use of transcodeJack Lloyd2017-11-091-9/+2
|
* Uppercase constantsJack Lloyd2017-10-021-12/+15
|
* Fix: UTCTime interpreted as GeneralizedTimeDaniel Neus2017-03-131-2/+2
| | | | | | | | | | | | Example: "200305100350Z" interpreted as "2003/05/10 03:50:00 UTC" correct is "2020/03/05 10:03:50 UTC" According to RFC 5280: UTCTime values ... MUST include seconds (i.e., times are YYMMDDHHMMSSZ) -> length 13 GeneralizedTime values ... MUST include seconds (i.e., times are YYYYMMDDHHMMSSZ) -> length 15 I think we should enforce the RFC5280 rules even if the ASN.1 rules are not that strict.
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-4/+4
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* add X509_Time::to_std_timepoint()Daniel Neus2016-07-281-0/+5
|
* V816 It is more efficient to catch exception by reference rather than by ↵Daniel Neus2016-02-081-2/+2
| | | | value. asn1_time.cpp 159
* Remove high bit set char from comment as it broke amalgamation generationJack Lloyd2015-08-221-4/+8
| | | | | | under Python3. Ironically there doesn't seem to be any way to portably handle non-ASCII in a way that is compatible with Python 2.7 and 3 at the same time.
* Add stricter time parsing; Add more testsSimon Warta2015-08-111-8/+23
|
* Sometimes we don't know the input format. But it is one of twoSimon Warta2015-08-111-1/+19
|
* Explicitly fwd declase classes BER_Decoder, DER_EncoderSimon Warta2015-08-111-8/+0
|
* Remove string constructor of X509_Time()Simon Warta2015-08-111-185/+119
| | | | | | | | | | | * Break down string representations to to_string() and readable_string() * Add m_ prefix to member variable names * Fix order of methods * Move comments Doxygen friendly to header * Make set_to() private (future subjejt of refectoring); People should use constructor Closes #185
* lib/asn1: Convert &vec[0] to vec.data()Simon Warta2015-06-271-8/+13
|
* Ensure all files have copyright and license info.lloyd2015-01-101-1/+1
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Move lib into srclloyd2014-01-101-0/+303