diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-03-15 01:48:51 +0100 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-03-15 01:51:38 +0100 |
commit | 355417eb4611014767480e5d3e96b1b08eb02700 (patch) | |
tree | 2ceca7eb3a75da0125b07e0181c3c6c0a5a649d9 /crypto/rand/rand_vms.c | |
parent | 503d4745a115b82db01c1fb22baaddb153d27cdb (diff) |
VMS: only use the high precision on VMS v8.4 and up
Fixes #8487
Amends #7230
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8488)
Diffstat (limited to 'crypto/rand/rand_vms.c')
-rw-r--r-- | crypto/rand/rand_vms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/rand/rand_vms.c b/crypto/rand/rand_vms.c index c083977eab..d35106a310 100644 --- a/crypto/rand/rand_vms.c +++ b/crypto/rand/rand_vms.c @@ -507,7 +507,11 @@ int rand_pool_add_additional_data(RAND_POOL *pool) * concurrently (which is the case for the <master> drbg). */ data.tid = CRYPTO_THREAD_get_current_id(); +#if __CRTL_VER >= 80400000 sys$gettim_prec(&data.time); +#else + sys$gettim((void*)&data.time); +#endif return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0); } |