Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple formatting #172

Open
wants to merge 1 commit into
base: v3.0.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions certs/root_ca.c
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/

#include <stdlib.h>
#include <stdlib.h>

const char *iotx_ca_crt = \
const char *iotx_ca_crt = \
{
\
"-----BEGIN CERTIFICATE-----\r\n"
"MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG\r\n" \
"A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv\r\n" \
"b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw\r\n" \
"MDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i\r\n" \
"YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT\r\n" \
"aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ\r\n" \
"jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp\r\n" \
"xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp\r\n" \
"1Wrjsok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" \
"-----END CERTIFICATE-----"
};
2,326 changes: 1,163 additions & 1,163 deletions external_libs/mbedtls/library/aes.c

Large diffs are not rendered by default.

498 changes: 249 additions & 249 deletions external_libs/mbedtls/library/asn1parse.c

Large diffs are not rendered by default.

366 changes: 183 additions & 183 deletions external_libs/mbedtls/library/base64.c

Large diffs are not rendered by default.

3,294 changes: 1,647 additions & 1,647 deletions external_libs/mbedtls/library/bignum.c

Large diffs are not rendered by default.

1,168 changes: 584 additions & 584 deletions external_libs/mbedtls/library/cipher.c

Large diffs are not rendered by default.

2,214 changes: 1,107 additions & 1,107 deletions external_libs/mbedtls/library/cipher_wrap.c

Large diffs are not rendered by default.

846 changes: 423 additions & 423 deletions external_libs/mbedtls/library/ctr_drbg.c

Large diffs are not rendered by default.

470 changes: 235 additions & 235 deletions external_libs/mbedtls/library/debug.c

Large diffs are not rendered by default.

946 changes: 473 additions & 473 deletions external_libs/mbedtls/library/entropy.c

Large diffs are not rendered by default.

350 changes: 175 additions & 175 deletions external_libs/mbedtls/library/entropy_poll.c

Large diffs are not rendered by default.

1,258 changes: 629 additions & 629 deletions external_libs/mbedtls/library/error.c

Large diffs are not rendered by default.

584 changes: 292 additions & 292 deletions external_libs/mbedtls/library/md.c

Large diffs are not rendered by default.

660 changes: 330 additions & 330 deletions external_libs/mbedtls/library/md_wrap.c

Large diffs are not rendered by default.

822 changes: 411 additions & 411 deletions external_libs/mbedtls/library/net_sockets.c

Large diffs are not rendered by default.

1,190 changes: 595 additions & 595 deletions external_libs/mbedtls/library/oid.c

Large diffs are not rendered by default.

638 changes: 319 additions & 319 deletions external_libs/mbedtls/library/pem.c

Large diffs are not rendered by default.

526 changes: 263 additions & 263 deletions external_libs/mbedtls/library/pk.c

Large diffs are not rendered by default.

684 changes: 342 additions & 342 deletions external_libs/mbedtls/library/pk_wrap.c

Large diffs are not rendered by default.

1,934 changes: 967 additions & 967 deletions external_libs/mbedtls/library/pkparse.c

Large diffs are not rendered by default.

406 changes: 203 additions & 203 deletions external_libs/mbedtls/library/platform.c

Large diffs are not rendered by default.

2,844 changes: 1,422 additions & 1,422 deletions external_libs/mbedtls/library/rsa.c

Large diffs are not rendered by default.

678 changes: 339 additions & 339 deletions external_libs/mbedtls/library/sha1.c

Large diffs are not rendered by default.

640 changes: 320 additions & 320 deletions external_libs/mbedtls/library/sha256.c

Large diffs are not rendered by default.

3,532 changes: 1,766 additions & 1,766 deletions external_libs/mbedtls/library/ssl_ciphersuites.c

Large diffs are not rendered by default.

4,874 changes: 2,437 additions & 2,437 deletions external_libs/mbedtls/library/ssl_cli.c

Large diffs are not rendered by default.

404 changes: 202 additions & 202 deletions external_libs/mbedtls/library/ssl_cookie.c

Large diffs are not rendered by default.

10,800 changes: 5,400 additions & 5,400 deletions external_libs/mbedtls/library/ssl_tls.c

Large diffs are not rendered by default.

726 changes: 363 additions & 363 deletions external_libs/mbedtls/library/timing.c

Large diffs are not rendered by default.

1,618 changes: 809 additions & 809 deletions external_libs/mbedtls/library/x509.c

Large diffs are not rendered by default.

3,366 changes: 1,683 additions & 1,683 deletions external_libs/mbedtls/library/x509_crt.c

Large diffs are not rendered by default.

648 changes: 324 additions & 324 deletions external_libs/nghttp2/nghttp2_buf.c

Large diffs are not rendered by default.

280 changes: 140 additions & 140 deletions external_libs/nghttp2/nghttp2_callbacks.c

Large diffs are not rendered by default.

98 changes: 49 additions & 49 deletions external_libs/nghttp2/nghttp2_debug.c
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
/*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2016 Tatsuhiro Tsujikawa
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "nghttp2_debug.h"

#include <stdio.h>

#ifdef DEBUGBUILD

static void nghttp2_default_debug_vfprintf_callback(const char *fmt,
va_list args) {
vfprintf(stderr, fmt, args);
/*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2016 Tatsuhiro Tsujikawa
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "nghttp2_debug.h"

#include <stdio.h>

#ifdef DEBUGBUILD

static void nghttp2_default_debug_vfprintf_callback(const char *fmt,
va_list args ) {
vfprintf(stderr, fmt, args );
}

static nghttp2_debug_vprintf_callback static_debug_vprintf_callback =
nghttp2_default_debug_vfprintf_callback;
static nghttp2_debug_vprintf_callback static_debug_vprintf_callback =
nghttp2_default_debug_vfprintf_callback ;

void nghttp2_debug_vprintf(const char *format, ...) {
if (static_debug_vprintf_callback) {
va_list args;
va_start(args, format);
static_debug_vprintf_callback(format, args);
va_end(args);
void nghttp2_debug_vprintf(const char *format, ... ) {
if (static_debug_vprintf_callback ) {
va_list args ;
va_start(args, format );
static_debug_vprintf_callback(format, args );
va_end(args );
}
}

void nghttp2_set_debug_vprintf_callback(
nghttp2_debug_vprintf_callback debug_vprintf_callback) {
static_debug_vprintf_callback = debug_vprintf_callback;
void nghttp2_set_debug_vprintf_callback(
nghttp2_debug_vprintf_callback debug_vprintf_callback ) {
static_debug_vprintf_callback = debug_vprintf_callback ;
}

#else /* !DEBUGBUILD */
#else /* !DEBUGBUILD */

void nghttp2_set_debug_vprintf_callback(
nghttp2_debug_vprintf_callback debug_vprintf_callback) {
(void)debug_vprintf_callback;
void nghttp2_set_debug_vprintf_callback(
nghttp2_debug_vprintf_callback debug_vprintf_callback ) {
(void)debug_vprintf_callback ;
}

#endif /* !DEBUGBUILD */
#endif /* !DEBUGBUILD */
Loading