summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-05-22 17:27:51 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-05-22 17:27:51 +0000
commit75df59f1688ba45e7a931895e5948b16692477d4 (patch)
treed7b17d619e0421e1775a15d30780b195758b6da5 /lib
parent5c60dad12580ba7d7e930de20c6006ec44dbfc06 (diff)
Hello? Yes, you're speaking with OPENSSL_SYS_UNIX.
ok beck@ miod@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/ts/ts_rsp_sign.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/libcrypto/ts/ts_rsp_sign.c b/lib/libcrypto/ts/ts_rsp_sign.c
index fe5244c0c5b..0e57105858e 100644
--- a/lib/libcrypto/ts/ts_rsp_sign.c
+++ b/lib/libcrypto/ts/ts_rsp_sign.c
@@ -58,9 +58,7 @@
#include "cryptlib.h"
-#if defined(OPENSSL_SYS_UNIX)
#include <sys/time.h>
-#endif
#include <openssl/objects.h>
#include <openssl/ts.h>
@@ -110,8 +108,6 @@ err:
return NULL;
}
-#if defined(OPENSSL_SYS_UNIX)
-
/* Use the gettimeofday function call. */
static int
def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec)
@@ -132,30 +128,6 @@ def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec)
return 1;
}
-#else
-
-/* Use the time function call that provides only seconds precision. */
-static int
-def_time_cb(struct TS_resp_ctx *ctx, void *data, long *sec, long *usec)
-{
- time_t t;
-
- if (time(&t) == (time_t) - 1) {
- TSerr(TS_F_DEF_TIME_CB, TS_R_TIME_SYSCALL_ERROR);
- TS_RESP_CTX_set_status_info(ctx, TS_STATUS_REJECTION,
- "Time is not available.");
- TS_RESP_CTX_add_failure_info(ctx, TS_INFO_TIME_NOT_AVAILABLE);
- return 0;
- }
- /* Return time to caller, only second precision. */
- *sec = (long) t;
- *usec = 0;
-
- return 1;
-}
-
-#endif
-
static int
def_extension_cb(struct TS_resp_ctx *ctx, X509_EXTENSION *ext, void *data)
{