aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.h
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2014-02-19 18:02:04 +0000
committerBen Laurie <ben@links.org>2014-02-19 18:02:04 +0000
commitff49a944392985510c15f06a342af9d991b8f11f (patch)
tree719127bee85ea7822113e2abffeb6457c5d0fbb1 /crypto/crypto.h
parente91fb53b38a75953a693fadbc09177245bc7a05d (diff)
downloadopenssl-ff49a944392985510c15f06a342af9d991b8f11f.tar.gz
Move gmtime functions to crypto.h.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r--crypto/crypto.h6
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. */