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:
parent
23b795d34f
commit
2bb83824bb
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -8,6 +8,8 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include "internal/e_os.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 */
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user