aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_time.c
Commit message (Collapse)AuthorAgeFilesLines
* Move functions.Dr. Stephen Henson2015-09-221-0/+10
| | | | | | Move various functions tagged onto t_x509.c to more appropriate places. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Identify and move common internal libcrypto header filesRichard Levitte2015-05-141-1/+1
| | | | | | | | | | | | | There are header files in crypto/ that are used by a number of crypto/ submodules. Move those to crypto/include/internal and adapt the affected source code and Makefiles. The header files that got moved are: crypto/cryptolib.h crypto/md32_common.h Reviewed-by: Rich Salz <rsalz@openssl.org>
* Use p==NULL not !p (in if statements, mainly)Rich Salz2015-05-111-2/+2
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Dead code removal: #if 0 asn1, pkcs7Rich Salz2015-01-301-27/+0
| | | | | | | Keep one #if 0 but rename the symbol to be more descriptive of what it's doing (you can disable support for old broken Netscape software). Reviewed-by: Tim Hudson <tjh@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-140/+138
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* mark all block comments that need format preserving so thatTim Hudson2014-12-301-1/+2
| | | | | | | indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Remove references to o_time.hDr. Stephen Henson2014-02-191-1/+0
|
* Reorganise parameters for OPENSSL_gmtime_diff.Dr. Stephen Henson2012-11-211-1/+1
| | | | Make ASN1_UTCTIME_cmp_time_t more robust by using the new time functions.
* first parameter is difference in days, not yearsDr. Stephen Henson2012-11-201-2/+2
|
* new function ASN1_TIME_diff to calculate difference between two ASN1_TIME ↵Dr. Stephen Henson2012-11-191-57/+26
| | | | structures
* experimental function to convert ASN1_TIME to tm, not used or even compiled ↵Dr. Stephen Henson2010-05-031-1/+63
| | | | in yet
* Update from 1.0.0-stable.Dr. Stephen Henson2009-07-111-0/+1
|
* Updates from 1.0.0-stableDr. Stephen Henson2009-04-061-1/+1
|
* PR: 1854Dr. Stephen Henson2009-03-091-0/+22
| | | | | | | Submitted by: Oliver Martin <oliver@volatilevoid.net> Reviewed by: steve@openssl.org Support GeneralizedTime in ca utility.
* Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe2008-11-121-3/+2
| | | | | | knock-on work than expected - they've been extracted into a patch series that can be completed elsewhere, or in a different branch, before merging back to HEAD.
* size_tification.Ben Laurie2008-11-011-2/+3
|
* Experimental new date handling routines. These fix issues with X509_time_adj()Dr. Stephen Henson2008-10-071-2/+13
| | | | and should avoid any OS date limitations such as the year 2038 bug.
* Use BUF_strlcpy() instead of strcpy().Richard Levitte2003-12-271-3/+6
| | | | | | | Use BUF_strlcat() instead of strcat(). Use BIO_snprintf() instead of sprintf(). In some cases, keep better track of buffer lengths. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
* Check return value of gmtime() and add error codesDr. Stephen Henson2003-01-241-0/+3
| | | | | | | | | where it fails in ASN1_TIME_set(). Edit asn1.h so the new error code is the same in 0.9.7 and 0.9.8, rebuild new error codes. Clear error queue in req.c if *_min or *_max is absent.
* Make sure the last character of the ASN.1 time string (the 'Z') is copied.Richard Levitte2003-01-011-1/+1
| | | | PR: 429
* This didn't get to the 0.9.8-dev thread...Richard Levitte2002-11-131-1/+1
|
* New internal function OPENSSL_gmtime, which is intended to do the sameRichard Levitte2001-05-161-6/+4
| | | | as gmtime_r() on the systems where that is defined.
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-201-1/+1
| | | | | | | missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
* Make all configuration macros available for application by makingRichard Levitte2001-02-191-1/+1
| | | | | | | | | | | | sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
* Fix ASN1_TIME_to_generlizedtime().Dr. Stephen Henson2001-02-041-2/+2
| | | | | | | | Add protoype for OCSP_response_create(). Add OCSP_request_sign() and OCSP_basic_sign() private key and certificate checks and make OCSP_NOCERTS consistent with PKCS7_NOCERTS
* Various OCSP responder utility functions.Dr. Stephen Henson2001-02-031-0/+46
| | | | | | Delete obsolete OCSP functions. Largely untested at present...
* Merge from the ASN1 branch of new ASN1 codeDr. Stephen Henson2000-12-081-18/+5
| | | | | | to main trunk. Lets see if the makes it to openssl-cvs :-)
* Fix some CygWin problems.Ulf Möller2000-09-091-3/+1
|
* Don't return stuff from void functions.Ben Laurie1999-10-231-1/+1
|
* Replace the macros in asn1.h with function equivalents. Also make UTF8StringsDr. Stephen Henson1999-10-201-0/+6
| | | | tolerated in certificates.
* Support the EBCDIC character set and BS2000/OSD-POSIX (work in progress).Ulf Möller1999-06-041-0/+15
| | | | Submitted by: Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>
* GeneralizedTime setting fixes.Dr. Stephen Henson1999-05-081-1/+1
|
* Some comments.Bodo Möller1999-05-061-1/+1
| | | | | | Submitted by: Reviewed by: PR:
* Update HPUX config, work around HPUX library incompatibility.Ulf Möller1999-05-041-2/+3
| | | | Submitted by: Anonymous
* Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1999-04-231-1/+1
| | | | | | Submitted by: Reviewed by: PR:
* Change functions to ANSI C.Ulf Möller1999-04-191-10/+3
|
* Time to blow up the source tree :-) This is the beginning of support forDr. Stephen Henson1999-01-171-0/+114
GeneralizedTime. At several points PKIX specifies that GeneralizedTime can be used but OpenSSL doesn't currently support it. This patch adds several files and a bunch of functions. Of interest is the ASN1_TIME structure and its related functions. At several points certificates, CRLs et al specify that a time can be expressed as a choice of UTCTime and GeneralizedTime. Currently OpenSSL interprets this (wrongly) as UTCTime because GeneralizedTime isn't supported. The ASN1_TIME stuff provides this functionality. Still todo is to trace which cert and CRL points need an ASN1_TIME and modify the utilities appropriately and of course fix all the bugs. Note new OpenSSL copyright in the new file a_time.c. I didn't put it in a_gentm.c because it is a minimally modified form a_utctm.c . Since this adds new files and error codes you will need to do a 'make errors' at the top level to add the new codes.