[openssl-commits] [openssl] OpenSSL_1_1_1-stable update

Richard Levitte levitte at openssl.org
Sat Sep 15 13:43:49 UTC 2018


The branch OpenSSL_1_1_1-stable has been updated
       via  d6d6aa3521e207c2727bbd1e5c97772502d15739 (commit)
      from  2ccfcbfb710937bc6e541453745042c7a48675b3 (commit)


- Log -----------------------------------------------------------------
commit d6d6aa3521e207c2727bbd1e5c97772502d15739
Author: Richard Levitte <richard at levitte.org>
Date:   Sat Sep 15 14:59:06 2018 +0200

    VMS: only use the high precision on VMS v8.4 and up
    
    It simply isn't available on older versions.
    
    Issue submitted by Mark Daniels
    
    Fixes #7229
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
    (Merged from https://github.com/openssl/openssl/pull/7230)

-----------------------------------------------------------------------

Summary of changes:
 crypto/rand/rand_vms.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/crypto/rand/rand_vms.c b/crypto/rand/rand_vms.c
index 43dddf3..bfcf6f0 100644
--- a/crypto/rand/rand_vms.c
+++ b/crypto/rand/rand_vms.c
@@ -478,13 +478,18 @@ int rand_pool_add_nonce_data(RAND_POOL *pool)
     } data = { 0 };
 
     /*
-     * Add process id, thread id, and a high resolution timestamp to
-     * ensure that the nonce is unique whith high probability for
-     * different process instances.
+     * Add process id, thread id, and a high resolution timestamp
+     * (where available, which is OpenVMS v8.4 and up) to ensure that
+     * the nonce is unique whith high probability for different process
+     * instances.
      */
     data.pid = getpid();
     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);
 }


More information about the openssl-commits mailing list