ssl.h should be first. Also two lines after includes and the rest of the file. Change-Id: Icb7586e00a3e64170082c96cf3f8bfbb2b7e1611 Reviewed-on: https://boringssl-review.googlesource.com/5892 Reviewed-by: Adam Langley <agl@google.com>kris/onging/CECPQ3_patch15
@@ -12,10 +12,15 @@ | |||||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <openssl/ssl.h> | |||||
#include <openssl/bytestring.h> | |||||
#include <openssl/err.h> | |||||
#include <openssl/mem.h> | |||||
#include <openssl/stack.h> | |||||
#include "internal.h" | #include "internal.h" | ||||
@@ -111,6 +111,8 @@ | |||||
* copied and put under another distribution licence | * copied and put under another distribution licence | ||||
* [including the GNU Public Licence.] */ | * [including the GNU Public Licence.] */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
@@ -112,6 +112,8 @@ | |||||
* [including the GNU Public Licence.] | * [including the GNU Public Licence.] | ||||
*/ | */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -128,6 +130,7 @@ | |||||
#include "internal.h" | #include "internal.h" | ||||
static int dtls1_get_hello_verify(SSL *s); | static int dtls1_get_hello_verify(SSL *s); | ||||
int dtls1_connect(SSL *s) { | int dtls1_connect(SSL *s) { | ||||
@@ -54,12 +54,18 @@ | |||||
* (eay@cryptsoft.com). This product includes software written by Tim | * (eay@cryptsoft.com). This product includes software written by Tim | ||||
* Hudson (tjh@cryptsoft.com). */ | * Hudson (tjh@cryptsoft.com). */ | ||||
#include <openssl/base.h> | |||||
#include <openssl/ssl.h> | |||||
#include <limits.h> | #include <limits.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <openssl/err.h> | |||||
#include <openssl/mem.h> | |||||
#include <openssl/obj.h> | |||||
#include "internal.h" | |||||
#if defined(OPENSSL_WINDOWS) | #if defined(OPENSSL_WINDOWS) | ||||
#include <sys/timeb.h> | #include <sys/timeb.h> | ||||
#else | #else | ||||
@@ -67,11 +73,6 @@ | |||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#endif | #endif | ||||
#include <openssl/err.h> | |||||
#include <openssl/mem.h> | |||||
#include <openssl/obj.h> | |||||
#include "internal.h" | |||||
/* DTLS1_MTU_TIMEOUTS is the maximum number of timeouts to expire | /* DTLS1_MTU_TIMEOUTS is the maximum number of timeouts to expire | ||||
* before starting to decrease the MTU. */ | * before starting to decrease the MTU. */ | ||||
@@ -55,6 +55,8 @@ | |||||
* (eay@cryptsoft.com). This product includes software written by Tim | * (eay@cryptsoft.com). This product includes software written by Tim | ||||
* Hudson (tjh@cryptsoft.com). */ | * Hudson (tjh@cryptsoft.com). */ | ||||
#include <openssl/ssl.h> | |||||
#include "internal.h" | #include "internal.h" | ||||
@@ -109,6 +109,8 @@ | |||||
* copied and put under another distribution licence | * copied and put under another distribution licence | ||||
* [including the GNU Public Licence.] */ | * [including the GNU Public Licence.] */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -114,6 +114,8 @@ | |||||
Copyright (C) 2011, RTFM, Inc. | Copyright (C) 2011, RTFM, Inc. | ||||
*/ | */ | ||||
#include <openssl/ssl.h> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -112,6 +112,8 @@ | |||||
* [including the GNU Public Licence.] | * [including the GNU Public Licence.] | ||||
*/ | */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
@@ -110,6 +110,8 @@ | |||||
* ECC cipher suite support in OpenSSL originally developed by | * ECC cipher suite support in OpenSSL originally developed by | ||||
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. */ | * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
@@ -148,6 +148,8 @@ | |||||
* OTHERWISE. | * OTHERWISE. | ||||
*/ | */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -133,6 +133,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -146,6 +146,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -54,6 +54,8 @@ | |||||
* copied and put under another distribution licence | * copied and put under another distribution licence | ||||
* [including the GNU Public Licence.] */ | * [including the GNU Public Licence.] */ | ||||
#include <openssl/ssl.h> | |||||
#include "internal.h" | #include "internal.h" | ||||
@@ -106,6 +106,8 @@ | |||||
* (eay@cryptsoft.com). This product includes software written by Tim | * (eay@cryptsoft.com). This product includes software written by Tim | ||||
* Hudson (tjh@cryptsoft.com). */ | * Hudson (tjh@cryptsoft.com). */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
@@ -146,6 +146,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -12,6 +12,8 @@ | |||||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -80,6 +80,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <limits.h> | #include <limits.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -138,6 +138,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -138,6 +138,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -133,6 +133,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -82,9 +82,11 @@ | |||||
* OTHERWISE. | * OTHERWISE. | ||||
*/ | */ | ||||
#include <stdio.h> | |||||
#include <openssl/ssl.h> | |||||
#include "internal.h" | #include "internal.h" | ||||
const char *SSL_state_string_long(const SSL *s) { | const char *SSL_state_string_long(const SSL *s) { | ||||
const char *str; | const char *str; | ||||
@@ -80,12 +80,14 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <inttypes.h> | #include <inttypes.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <openssl/buf.h> | |||||
#include <openssl/bio.h> | |||||
#include <openssl/err.h> | #include <openssl/err.h> | ||||
#include <openssl/mem.h> | |||||
#include <openssl/x509.h> | |||||
#include "internal.h" | #include "internal.h" | ||||
@@ -133,6 +133,8 @@ | |||||
* OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||||
* OTHERWISE. */ | * OTHERWISE. */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
@@ -106,6 +106,8 @@ | |||||
* (eay@cryptsoft.com). This product includes software written by Tim | * (eay@cryptsoft.com). This product includes software written by Tim | ||||
* Hudson (tjh@cryptsoft.com). */ | * Hudson (tjh@cryptsoft.com). */ | ||||
#include <openssl/ssl.h> | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||