ssl: rework "e_os.h" inclusions

- Remove e_os.h include from "ssl_local.h"
- Added e_os.h into the files that need it now.
- Move e_os.h to be the very first include

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14344)
This commit is contained in:
FdaSilvaYY 2021-02-21 00:04:07 +01:00 committed by Tomas Mraz
parent 23b795d34f
commit 2bb83824bb
10 changed files with 17 additions and 3 deletions

View File

@ -8,6 +8,7 @@
*/
#include "internal/e_os.h"
#include "internal/e_winsock.h" /* struct timeval for DTLS_CTRL_GET_TIMEOUT */
#include <stdio.h>
#include <openssl/objects.h>
#include <openssl/rand.h>

View File

@ -7,6 +7,8 @@
* https://www.openssl.org/source/license.html
*/
#include "internal/e_os.h"
#include <stdio.h>
#include <limits.h>
#include <errno.h>

View File

@ -9,7 +9,8 @@
* https://www.openssl.org/source/license.html
*/
#include <stdio.h>
#include "internal/e_os.h"
#include <openssl/objects.h>
#include "internal/nelem.h"
#include "ssl_local.h"

View File

@ -8,6 +8,8 @@
* https://www.openssl.org/source/license.html
*/
#include "internal/e_os.h"
#include <stdio.h>
#include <sys/types.h>

View File

@ -7,6 +7,8 @@
* https://www.openssl.org/source/license.html
*/
#include "internal/e_os.h"
#include <stdio.h>
#include "ssl_local.h"
#include <openssl/conf.h>

View File

@ -9,8 +9,10 @@
* https://www.openssl.org/source/license.html
*/
#include "ssl_local.h"
#include "internal/e_os.h"
#include "internal/e_winsock.h"
#include "ssl_local.h"
#include <openssl/objects.h>
#include <openssl/x509v3.h>
#include <openssl/rand.h>

View File

@ -12,7 +12,6 @@
#ifndef OSSL_SSL_LOCAL_H
# define OSSL_SSL_LOCAL_H
# include "internal/e_os.h" /* struct timeval for DTLS */
# include <stdlib.h>
# include <time.h>
# include <errno.h>

View File

@ -7,6 +7,8 @@
* https://www.openssl.org/source/license.html
*/
#include "internal/e_os.h"
#if defined(__TANDEM) && defined(_SPT_MODEL_)
# include <spthread.h>
# include <spt_extensions.h> /* timeval */

View File

@ -9,6 +9,8 @@
* https://www.openssl.org/source/license.html
*/
#include "internal/e_os.h"
#include <stdio.h>
#include "../ssl_local.h"
#include "statem_local.h"

View File

@ -25,6 +25,7 @@
#if (!defined(OPENSSL_NO_KTLS) || !defined(OPENSSL_NO_QUIC)) && !defined(OPENSSL_NO_POSIX_IO) && !defined(OPENSSL_NO_SOCK)
# define OSSL_USE_SOCKETS 1
# include "internal/e_winsock.h"
# include "internal/sockets.h"
# include <openssl/bio.h>
#endif