diff options
author | Ben Laurie <ben@links.org> | 2014-02-19 18:02:04 +0000 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-02-19 18:02:04 +0000 |
commit | ff49a944392985510c15f06a342af9d991b8f11f (patch) | |
tree | 719127bee85ea7822113e2abffeb6457c5d0fbb1 /crypto/crypto.h | |
parent | e91fb53b38a75953a693fadbc09177245bc7a05d (diff) | |
download | openssl-ff49a944392985510c15f06a342af9d991b8f11f.tar.gz |
Move gmtime functions to crypto.h.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r-- | crypto/crypto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h index 3a43803a1e..3eb1c55329 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -118,6 +118,7 @@ #define HEADER_CRYPTO_H #include <stdlib.h> +#include <time.h> #include <openssl/e_os2.h> @@ -580,6 +581,11 @@ int CRYPTO_memcmp(const void *a, const void *b, size_t len); */ void ERR_load_CRYPTO_strings(void); +struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result); +int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec); +int OPENSSL_gmtime_diff(int *pday, int *psec, + const struct tm *from, const struct tm *to); + /* Error codes for the CRYPTO functions. */ /* Function codes. */ |