diff options
author | Pauli <paul.dale@oracle.com> | 2017-08-18 01:50:25 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-08-18 01:50:25 +0200 |
commit | b99fe5f4927b305bae88daac2484c284fe749329 (patch) | |
tree | 0497ffa8a2d0e0ea72ecca5d32d6878888835fd4 /e_os.h | |
parent | Clear outputs in PKCS12_parse error handling. (diff) | |
download | openssl-b99fe5f4927b305bae88daac2484c284fe749329.tar.xz openssl-b99fe5f4927b305bae88daac2484c284fe749329.zip |
Remove tests dependence on e_os.h
Apart from ssltest_old.c, the test suite relied on e_os.h for the
OSSL_NELEM macro and nothing else.
The ssltest_old.c also requires EXIT and some socket macros.
Create a new header to define the OSSL_NELEM macro and use that instead.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4186)
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -14,6 +14,8 @@ # include <openssl/e_os2.h> # include <openssl/crypto.h> +# include <internal/nelem.h> + /* * <openssl/e_os2.h> contains what we can justify to make visible to the * outside; this file e_os.h is not part of the exported interface. @@ -540,8 +542,6 @@ struct servent *getservbyname(const char *name, const char *proto); # endif /* end vxworks */ -#define OSSL_NELEM(x) (sizeof(x)/sizeof((x)[0])) - #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION # define CRYPTO_memcmp memcmp #endif |