VMS: modernise rand_pool_acquire_entropy, step 1
authorRichard Levitte <levitte@openssl.org>
Mon, 30 Apr 2018 16:04:10 +0000 (18:04 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 May 2018 13:13:15 +0000 (15:13 +0200)
commitce147f7333fa56ab87a0878b34649991a5dae8f5
tree9537ae26a79863c011d432aa2f8f6e640313d8eb
parentb1860d6c71733314417d053a72af66ae72e8268e
VMS: modernise rand_pool_acquire_entropy, step 1

Stop redefining structures that are already defined in system
headers.  This also means we can stop setting the pointer size
globally, because the system structures will have the correct pointer
sizes either way.  The only exception is passing the right pointer
size to a function.

Stop trying to twist things around with rand(), that's the job of the
DRBG that we feed.

Stop assuming the location of the JPI$_FINALEXC item, look it up
instead.

Signal an exception if the sys$getjpiw call fails (it means the item
list isn't set up right, so works as an assertion, but using VMS
methodology).

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6151)
crypto/rand/rand_vms.c