Browse Source

Align the SSL stack on #include style.

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
David Benjamin 9 years ago
committed by Adam Langley
parent
commit
9e4e01ee14
24 changed files with 61 additions and 10 deletions
  1. +6
    -1
      ssl/custom_extensions.c
  2. +2
    -0
      ssl/d1_both.c
  3. +3
    -0
      ssl/d1_clnt.c
  4. +7
    -6
      ssl/d1_lib.c
  5. +2
    -0
      ssl/d1_meth.c
  6. +2
    -0
      ssl/d1_pkt.c
  7. +2
    -0
      ssl/d1_srtp.c
  8. +2
    -0
      ssl/d1_srvr.c
  9. +2
    -0
      ssl/s3_both.c
  10. +2
    -0
      ssl/s3_clnt.c
  11. +2
    -0
      ssl/s3_enc.c
  12. +2
    -0
      ssl/s3_lib.c
  13. +2
    -0
      ssl/s3_meth.c
  14. +2
    -0
      ssl/s3_pkt.c
  15. +2
    -0
      ssl/s3_srvr.c
  16. +2
    -0
      ssl/ssl_aead_ctx.c
  17. +2
    -0
      ssl/ssl_asn1.c
  18. +2
    -0
      ssl/ssl_cipher.c
  19. +2
    -0
      ssl/ssl_lib.c
  20. +2
    -0
      ssl/ssl_session.c
  21. +3
    -1
      ssl/ssl_stat.c
  22. +4
    -2
      ssl/ssl_txt.c
  23. +2
    -0
      ssl/t1_enc.c
  24. +2
    -0
      ssl/t1_lib.c

+ 6
- 1
ssl/custom_extensions.c View File

@@ -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"




+ 2
- 0
ssl/d1_both.c View File

@@ -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>


+ 3
- 0
ssl/d1_clnt.c View File

@@ -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) {


+ 7
- 6
ssl/d1_lib.c View File

@@ -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. */


+ 2
- 0
ssl/d1_meth.c View File

@@ -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"






+ 2
- 0
ssl/d1_pkt.c View File

@@ -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>


+ 2
- 0
ssl/d1_srtp.c View File

@@ -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>




+ 2
- 0
ssl/d1_srvr.c View File

@@ -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>




+ 2
- 0
ssl/s3_both.c View File

@@ -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>


+ 2
- 0
ssl/s3_clnt.c View File

@@ -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>


+ 2
- 0
ssl/s3_enc.c View File

@@ -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>


+ 2
- 0
ssl/s3_lib.c View File

@@ -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>


+ 2
- 0
ssl/s3_meth.c View File

@@ -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"






+ 2
- 0
ssl/s3_pkt.c View File

@@ -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>


+ 2
- 0
ssl/s3_srvr.c View File

@@ -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>


+ 2
- 0
ssl/ssl_aead_ctx.c View File

@@ -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>




+ 2
- 0
ssl/ssl_asn1.c View File

@@ -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>




+ 2
- 0
ssl/ssl_cipher.c View File

@@ -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>


+ 2
- 0
ssl/ssl_lib.c View File

@@ -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>


+ 2
- 0
ssl/ssl_session.c View File

@@ -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>


+ 3
- 1
ssl/ssl_stat.c View File

@@ -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;




+ 4
- 2
ssl/ssl_txt.c View File

@@ -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"




+ 2
- 0
ssl/t1_enc.c View File

@@ -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>


+ 2
- 0
ssl/t1_lib.c View File

@@ -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>


Loading…
Cancel
Save