diff --git a/README.rst b/README.rst index 14f725d287..03aec31561 100644 --- a/README.rst +++ b/README.rst @@ -37,7 +37,7 @@ In order to run the tests, enter:: In order to build for a Windows platform, you should use WINDOWS_BUILD=1 if the target is Windows but the build environment is Unix-like (eg when cross-compiling, or compiling from an MSYS shell), and WINDOWS=1 if the build environment is a Windows shell. -Depending on your platform, you might run into some issues. Please check the Makefiles in *library/*, *programs/* and *tests/* for options to manually add or remove for specific platforms. You can also check `the mbed TLS Knowledge Base `_ for articles on your platform or issue. +Depending on your platform, you might run into some issues. Please check the Makefiles in *library/*, *programs/* and *tests/* for options to manually add or remove for specific platforms. You can also check `the mbed TLS Knowledge Base `_ for articles on your platform or issue. In case you find that you need to do something else as well, please let us know what, so we can add it to the KB. @@ -128,10 +128,10 @@ For larger contributions, e.g. a new feature, the code possible falls under copy Process ------- -#. `Check for open issues `_ or - `start a discussion `_ around a feature +#. `Check for open issues `_ or + `start a discussion `_ around a feature idea or a bug. -#. Fork the `mbed TLS repository on Github `_ +#. Fork the `mbed TLS repository on Github `_ to start making your changes. #. Write a test which shows that the bug was fixed or that the feature works as expected. diff --git a/include/polarssl/aes.h b/include/polarssl/aes.h index 4ca69b7cfa..8bcc039362 100644 --- a/include/polarssl/aes.h +++ b/include/polarssl/aes.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/aesni.h b/include/polarssl/aesni.h index 7125d6ac8f..bb514ca6d4 100644 --- a/include/polarssl/aesni.h +++ b/include/polarssl/aesni.h @@ -5,7 +5,7 @@ * * Copyright (C) 2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/arc4.h b/include/polarssl/arc4.h index 96e520d8b2..9de0577099 100644 --- a/include/polarssl/arc4.h +++ b/include/polarssl/arc4.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/asn1.h b/include/polarssl/asn1.h index c723c008ba..0bfa929348 100644 --- a/include/polarssl/asn1.h +++ b/include/polarssl/asn1.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/asn1write.h b/include/polarssl/asn1write.h index ecb82cee88..154a6ba201 100644 --- a/include/polarssl/asn1write.h +++ b/include/polarssl/asn1write.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/base64.h b/include/polarssl/base64.h index 6610a18b4e..0f1e8549b7 100644 --- a/include/polarssl/base64.h +++ b/include/polarssl/base64.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h index 9e4e05b0d4..df25bd1f1a 100644 --- a/include/polarssl/bignum.h +++ b/include/polarssl/bignum.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/blowfish.h b/include/polarssl/blowfish.h index 246b053ea1..21ba7d463f 100644 --- a/include/polarssl/blowfish.h +++ b/include/polarssl/blowfish.h @@ -5,7 +5,7 @@ * * Copyright (C) 2012-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/bn_mul.h b/include/polarssl/bn_mul.h index 55cf24caaf..aa940a99dd 100644 --- a/include/polarssl/bn_mul.h +++ b/include/polarssl/bn_mul.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2010, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/camellia.h b/include/polarssl/camellia.h index c17988eb94..03218d18e0 100644 --- a/include/polarssl/camellia.h +++ b/include/polarssl/camellia.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/ccm.h b/include/polarssl/ccm.h index 47c7f590fb..f1f24bda05 100644 --- a/include/polarssl/ccm.h +++ b/include/polarssl/ccm.h @@ -5,7 +5,7 @@ * * Copyright (C) 2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/certs.h b/include/polarssl/certs.h index eca6a78871..7b00a8bbcd 100644 --- a/include/polarssl/certs.h +++ b/include/polarssl/certs.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2010, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/check_config.h b/include/polarssl/check_config.h index 27b672e495..a12c3028ed 100644 --- a/include/polarssl/check_config.h +++ b/include/polarssl/check_config.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/cipher.h b/include/polarssl/cipher.h index d890ff9c0d..977cc97d79 100644 --- a/include/polarssl/cipher.h +++ b/include/polarssl/cipher.h @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -477,7 +477,7 @@ static inline const char *cipher_get_name( const cipher_context_t *ctx ) * POLARSSL_KEY_LENGTH_NONE if ctx has not been * initialised. */ -static inline int cipher_get_key_size ( const cipher_context_t *ctx ) +static inline int cipher_get_key_size( const cipher_context_t *ctx ) { if( NULL == ctx || NULL == ctx->cipher_info ) return POLARSSL_KEY_LENGTH_NONE; diff --git a/include/polarssl/cipher_wrap.h b/include/polarssl/cipher_wrap.h index 92dfe45831..3e685b13ee 100644 --- a/include/polarssl/cipher_wrap.h +++ b/include/polarssl/cipher_wrap.h @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/compat-1.2.h b/include/polarssl/compat-1.2.h index 47a4516793..f7f3d0019d 100644 --- a/include/polarssl/compat-1.2.h +++ b/include/polarssl/compat-1.2.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/config.h b/include/polarssl/config.h index 7488114090..dd11b5ab63 100644 --- a/include/polarssl/config.h +++ b/include/polarssl/config.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2341,8 +2341,8 @@ //#define POLARSSL_PLATFORM_STD_PRINTF printf /**< Default printf to use, can be undefined */ //#define POLARSSL_PLATFORM_STD_SNPRINTF snprintf /**< Default snprintf to use, can be undefined */ -/* To Use Function Macros POLARSSL_PLATFORM_C must be enabled */ -/* POLARSSL_PLATFORM_XXX_MACRO and POLARSSL_PLATFORM_XXX_ALT cannot both be defined */ +/* To Use Function Macros POLARSSL_PLATFORM_C must be enabled */ +/* POLARSSL_PLATFORM_XXX_MACRO and POLARSSL_PLATFORM_XXX_ALT cannot both be defined */ //#define POLARSSL_PLATFORM_MALLOC_MACRO malloc /**< Default allocator macro to use, can be undefined */ //#define POLARSSL_PLATFORM_FREE_MACRO free /**< Default free macro to use, can be undefined */ //#define POLARSSL_PLATFORM_EXIT_MACRO exit /**< Default exit macro to use, can be undefined */ diff --git a/include/polarssl/ctr_drbg.h b/include/polarssl/ctr_drbg.h index c473e76d6b..ebab55f29f 100644 --- a/include/polarssl/ctr_drbg.h +++ b/include/polarssl/ctr_drbg.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/debug.h b/include/polarssl/debug.h index a4d2bdb9ec..fcf149083d 100644 --- a/include/polarssl/debug.h +++ b/include/polarssl/debug.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/des.h b/include/polarssl/des.h index 3155e5ec59..3f7236c1ca 100644 --- a/include/polarssl/des.h +++ b/include/polarssl/des.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/dhm.h b/include/polarssl/dhm.h index 8d01915ff5..8d64a5f913 100644 --- a/include/polarssl/dhm.h +++ b/include/polarssl/dhm.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/ecdh.h b/include/polarssl/ecdh.h index 20698f59aa..60f913d98c 100644 --- a/include/polarssl/ecdh.h +++ b/include/polarssl/ecdh.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/ecdsa.h b/include/polarssl/ecdsa.h index c5290f6a60..9a04ee65be 100644 --- a/include/polarssl/ecdsa.h +++ b/include/polarssl/ecdsa.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/ecp.h b/include/polarssl/ecp.h index b7707d767e..eef445fa17 100644 --- a/include/polarssl/ecp.h +++ b/include/polarssl/ecp.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/entropy.h b/include/polarssl/entropy.h index 53a1f0e257..aa23a0372c 100644 --- a/include/polarssl/entropy.h +++ b/include/polarssl/entropy.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/entropy_poll.h b/include/polarssl/entropy_poll.h index 523a7cd4ef..94b5a6eff9 100644 --- a/include/polarssl/entropy_poll.h +++ b/include/polarssl/entropy_poll.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/error.h b/include/polarssl/error.h index b1b5513cc9..56b4997933 100644 --- a/include/polarssl/error.h +++ b/include/polarssl/error.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/gcm.h b/include/polarssl/gcm.h index b61d4a902e..5a9472298e 100644 --- a/include/polarssl/gcm.h +++ b/include/polarssl/gcm.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/havege.h b/include/polarssl/havege.h index df267554b0..825a1daab9 100644 --- a/include/polarssl/havege.h +++ b/include/polarssl/havege.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/hmac_drbg.h b/include/polarssl/hmac_drbg.h index 1df8221702..0fe7b0311b 100644 --- a/include/polarssl/hmac_drbg.h +++ b/include/polarssl/hmac_drbg.h @@ -5,7 +5,7 @@ * * Copyright (C) 2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/md.h b/include/polarssl/md.h index 3bbff6e77e..3472f80b45 100644 --- a/include/polarssl/md.h +++ b/include/polarssl/md.h @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/md2.h b/include/polarssl/md2.h index 842603748b..53c85f84fb 100644 --- a/include/polarssl/md2.h +++ b/include/polarssl/md2.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/md4.h b/include/polarssl/md4.h index 9fc7c861c4..68ac6c1396 100644 --- a/include/polarssl/md4.h +++ b/include/polarssl/md4.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/md5.h b/include/polarssl/md5.h index 50c7774bf3..d5ce136a2b 100644 --- a/include/polarssl/md5.h +++ b/include/polarssl/md5.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/md_wrap.h b/include/polarssl/md_wrap.h index 92c3a2cccd..dd5fd6cf93 100644 --- a/include/polarssl/md_wrap.h +++ b/include/polarssl/md_wrap.h @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/memory.h b/include/polarssl/memory.h index 5b8a3044c0..9b2daef371 100644 --- a/include/polarssl/memory.h +++ b/include/polarssl/memory.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/memory_buffer_alloc.h b/include/polarssl/memory_buffer_alloc.h index 3bba1c1925..19abe55fa5 100644 --- a/include/polarssl/memory_buffer_alloc.h +++ b/include/polarssl/memory_buffer_alloc.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/net.h b/include/polarssl/net.h index 55ef40bb72..088662e268 100644 --- a/include/polarssl/net.h +++ b/include/polarssl/net.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/oid.h b/include/polarssl/oid.h index 497eac82cf..6b04893b3e 100644 --- a/include/polarssl/oid.h +++ b/include/polarssl/oid.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/openssl.h b/include/polarssl/openssl.h index 039f4989a3..63c16e5ccc 100644 --- a/include/polarssl/openssl.h +++ b/include/polarssl/openssl.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2010, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/padlock.h b/include/polarssl/padlock.h index 185eff8ff6..55a0395a03 100644 --- a/include/polarssl/padlock.h +++ b/include/polarssl/padlock.h @@ -6,7 +6,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pbkdf2.h b/include/polarssl/pbkdf2.h index 7c98eaece8..5c06bfb0d9 100644 --- a/include/polarssl/pbkdf2.h +++ b/include/polarssl/pbkdf2.h @@ -8,7 +8,7 @@ * * Copyright (C) 2006-2012, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pem.h b/include/polarssl/pem.h index 9ccdbef21e..b47e0e9fc5 100644 --- a/include/polarssl/pem.h +++ b/include/polarssl/pem.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pk.h b/include/polarssl/pk.h index 45066168aa..8d9407c417 100644 --- a/include/polarssl/pk.h +++ b/include/polarssl/pk.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pk_wrap.h b/include/polarssl/pk_wrap.h index 94611029ac..3677250073 100644 --- a/include/polarssl/pk_wrap.h +++ b/include/polarssl/pk_wrap.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pkcs11.h b/include/polarssl/pkcs11.h index 5cf21a1546..18c3370fce 100644 --- a/include/polarssl/pkcs11.h +++ b/include/polarssl/pkcs11.h @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pkcs12.h b/include/polarssl/pkcs12.h index 0920cd1675..cb53fe2472 100644 --- a/include/polarssl/pkcs12.h +++ b/include/polarssl/pkcs12.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/pkcs5.h b/include/polarssl/pkcs5.h index fda40b52f2..6a21af10b4 100644 --- a/include/polarssl/pkcs5.h +++ b/include/polarssl/pkcs5.h @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/platform.h b/include/polarssl/platform.h index 3e76c301bb..76e61bbf9f 100644 --- a/include/polarssl/platform.h +++ b/include/polarssl/platform.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -80,10 +80,10 @@ extern "C" { * The function pointers for malloc and free */ #if defined(POLARSSL_PLATFORM_MEMORY) -#if defined(POLARSSL_PLATFORM_FREE_MACRO) &&\ - defined(POLARSSL_PLATFORM_MALLOC_MACRO) -#define polarssl_free POLARSSL_PLATFORM_FREE_MACRO -#define polarssl_malloc POLARSSL_PLATFORM_MALLOC_MACRO +#if defined(POLARSSL_PLATFORM_FREE_MACRO) && \ + defined(POLARSSL_PLATFORM_MALLOC_MACRO) +#define polarssl_free POLARSSL_PLATFORM_FREE_MACRO +#define polarssl_malloc POLARSSL_PLATFORM_MALLOC_MACRO #else extern void * (*polarssl_malloc)( size_t len ); extern void (*polarssl_free)( void *ptr ); @@ -100,8 +100,8 @@ int platform_set_malloc_free( void * (*malloc_func)( size_t ), void (*free_func)( void * ) ); #endif /* POLARSSL_PLATFORM_FREE_MACRO && POLARSSL_PLATFORM_MALLOC_MACRO */ #else /* !POLARSSL_PLATFORM_MEMORY */ -#define polarssl_free free -#define polarssl_malloc malloc +#define polarssl_free free +#define polarssl_malloc malloc #endif /* POLARSSL_PLATFORM_MEMORY && !POLARSSL_PLATFORM_{FREE,MALLOC}_MACRO */ /* diff --git a/include/polarssl/ripemd160.h b/include/polarssl/ripemd160.h index 4762720fa9..2555eb407f 100644 --- a/include/polarssl/ripemd160.h +++ b/include/polarssl/ripemd160.h @@ -5,7 +5,7 @@ * * Copyright (C) 2014-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/rsa.h b/include/polarssl/rsa.h index 53b81eadad..21109edbdc 100644 --- a/include/polarssl/rsa.h +++ b/include/polarssl/rsa.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/sha1.h b/include/polarssl/sha1.h index 849750110e..e9e5a8e72b 100644 --- a/include/polarssl/sha1.h +++ b/include/polarssl/sha1.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/sha256.h b/include/polarssl/sha256.h index b7362dd83f..f8917ff82f 100644 --- a/include/polarssl/sha256.h +++ b/include/polarssl/sha256.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/sha512.h b/include/polarssl/sha512.h index 90b5e3e540..15d266cd47 100644 --- a/include/polarssl/sha512.h +++ b/include/polarssl/sha512.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,11 +33,9 @@ #include #if defined(_MSC_VER) || defined(__WATCOMC__) - #define UL64(x) x##ui64 typedef unsigned __int64 uint64_t; #else #include - #define UL64(x) x##ULL #endif #define POLARSSL_ERR_SHA512_FILE_IO_ERROR -0x007A /**< Read/write error in file. */ diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index 8ec84c37bc..dd1fbdc043 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/ssl_cache.h b/include/polarssl/ssl_cache.h index 3bdd94fb25..063d7d7b1e 100644 --- a/include/polarssl/ssl_cache.h +++ b/include/polarssl/ssl_cache.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/ssl_ciphersuites.h b/include/polarssl/ssl_ciphersuites.h index 1550c0aeb9..bc8424c60a 100644 --- a/include/polarssl/ssl_ciphersuites.h +++ b/include/polarssl/ssl_ciphersuites.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/threading.h b/include/polarssl/threading.h index 4a8288e4f1..293da38c3a 100644 --- a/include/polarssl/threading.h +++ b/include/polarssl/threading.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/timing.h b/include/polarssl/timing.h index 5f3acfa17a..2dae5d9c9d 100644 --- a/include/polarssl/timing.h +++ b/include/polarssl/timing.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/version.h b/include/polarssl/version.h index 9fea4bb4f2..df2987b24f 100644 --- a/include/polarssl/version.h +++ b/include/polarssl/version.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/x509.h b/include/polarssl/x509.h index 6e5f21717c..268121d95c 100644 --- a/include/polarssl/x509.h +++ b/include/polarssl/x509.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/x509_crl.h b/include/polarssl/x509_crl.h index fa5c84956a..6f4b65d56f 100644 --- a/include/polarssl/x509_crl.h +++ b/include/polarssl/x509_crl.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/x509_crt.h b/include/polarssl/x509_crt.h index ab6b1645bd..fe270078f9 100644 --- a/include/polarssl/x509_crt.h +++ b/include/polarssl/x509_crt.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/x509_csr.h b/include/polarssl/x509_csr.h index ed6c6b5eef..34f527b8e4 100644 --- a/include/polarssl/x509_csr.h +++ b/include/polarssl/x509_csr.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/include/polarssl/xtea.h b/include/polarssl/xtea.h index f055490ec8..02cd8d6f0a 100644 --- a/include/polarssl/xtea.h +++ b/include/polarssl/xtea.h @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/aes.c b/library/aes.c index 69505ef4db..9d96064ffe 100644 --- a/library/aes.c +++ b/library/aes.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/aesni.c b/library/aesni.c index a235904ee6..5315aba223 100644 --- a/library/aesni.c +++ b/library/aesni.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/arc4.c b/library/arc4.c index 90970ef7e3..309d16a85d 100644 --- a/library/arc4.c +++ b/library/arc4.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/asn1parse.c b/library/asn1parse.c index 2cfd12958b..e4f46eb0a3 100644 --- a/library/asn1parse.c +++ b/library/asn1parse.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/asn1write.c b/library/asn1write.c index efdd648923..df9442ef85 100644 --- a/library/asn1write.c +++ b/library/asn1write.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/base64.c b/library/base64.c index 684c537eb5..ac922a4744 100644 --- a/library/base64.c +++ b/library/base64.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/bignum.c b/library/bignum.c index 91c7963937..da70ae0c73 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/blowfish.c b/library/blowfish.c index 07cd060b49..77191e7eaa 100644 --- a/library/blowfish.c +++ b/library/blowfish.c @@ -3,7 +3,7 @@ * * Copyright (C) 2012-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/camellia.c b/library/camellia.c index f765f1b506..2a1c0c4d8d 100644 --- a/library/camellia.c +++ b/library/camellia.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ccm.c b/library/ccm.c index bfa9ed9e34..87f1886bd3 100644 --- a/library/ccm.c +++ b/library/ccm.c @@ -3,7 +3,7 @@ * * Copyright (C) 2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/certs.c b/library/certs.c index 78eb43e728..95fc8cc77d 100644 --- a/library/certs.c +++ b/library/certs.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/cipher.c b/library/cipher.c index b98b4a2b91..8c7452b1fd 100644 --- a/library/cipher.c +++ b/library/cipher.c @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/cipher_wrap.c b/library/cipher_wrap.c index 12fc5c68db..4c170bc377 100644 --- a/library/cipher_wrap.c +++ b/library/cipher_wrap.c @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -169,7 +169,7 @@ static void aes_ctx_free( void *ctx ) polarssl_free( ctx ); } -const cipher_base_t aes_info = { +static const cipher_base_t aes_info = { POLARSSL_CIPHER_ID_AES, aes_crypt_ecb_wrap, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -190,7 +190,7 @@ const cipher_base_t aes_info = { aes_ctx_free }; -const cipher_info_t aes_128_ecb_info = { +static const cipher_info_t aes_128_ecb_info = { POLARSSL_CIPHER_AES_128_ECB, POLARSSL_MODE_ECB, 128, @@ -201,7 +201,7 @@ const cipher_info_t aes_128_ecb_info = { &aes_info }; -const cipher_info_t aes_192_ecb_info = { +static const cipher_info_t aes_192_ecb_info = { POLARSSL_CIPHER_AES_192_ECB, POLARSSL_MODE_ECB, 192, @@ -212,7 +212,7 @@ const cipher_info_t aes_192_ecb_info = { &aes_info }; -const cipher_info_t aes_256_ecb_info = { +static const cipher_info_t aes_256_ecb_info = { POLARSSL_CIPHER_AES_256_ECB, POLARSSL_MODE_ECB, 256, @@ -224,7 +224,7 @@ const cipher_info_t aes_256_ecb_info = { }; #if defined(POLARSSL_CIPHER_MODE_CBC) -const cipher_info_t aes_128_cbc_info = { +static const cipher_info_t aes_128_cbc_info = { POLARSSL_CIPHER_AES_128_CBC, POLARSSL_MODE_CBC, 128, @@ -235,7 +235,7 @@ const cipher_info_t aes_128_cbc_info = { &aes_info }; -const cipher_info_t aes_192_cbc_info = { +static const cipher_info_t aes_192_cbc_info = { POLARSSL_CIPHER_AES_192_CBC, POLARSSL_MODE_CBC, 192, @@ -246,7 +246,7 @@ const cipher_info_t aes_192_cbc_info = { &aes_info }; -const cipher_info_t aes_256_cbc_info = { +static const cipher_info_t aes_256_cbc_info = { POLARSSL_CIPHER_AES_256_CBC, POLARSSL_MODE_CBC, 256, @@ -259,7 +259,7 @@ const cipher_info_t aes_256_cbc_info = { #endif /* POLARSSL_CIPHER_MODE_CBC */ #if defined(POLARSSL_CIPHER_MODE_CFB) -const cipher_info_t aes_128_cfb128_info = { +static const cipher_info_t aes_128_cfb128_info = { POLARSSL_CIPHER_AES_128_CFB128, POLARSSL_MODE_CFB, 128, @@ -270,7 +270,7 @@ const cipher_info_t aes_128_cfb128_info = { &aes_info }; -const cipher_info_t aes_192_cfb128_info = { +static const cipher_info_t aes_192_cfb128_info = { POLARSSL_CIPHER_AES_192_CFB128, POLARSSL_MODE_CFB, 192, @@ -281,7 +281,7 @@ const cipher_info_t aes_192_cfb128_info = { &aes_info }; -const cipher_info_t aes_256_cfb128_info = { +static const cipher_info_t aes_256_cfb128_info = { POLARSSL_CIPHER_AES_256_CFB128, POLARSSL_MODE_CFB, 256, @@ -294,7 +294,7 @@ const cipher_info_t aes_256_cfb128_info = { #endif /* POLARSSL_CIPHER_MODE_CFB */ #if defined(POLARSSL_CIPHER_MODE_CTR) -const cipher_info_t aes_128_ctr_info = { +static const cipher_info_t aes_128_ctr_info = { POLARSSL_CIPHER_AES_128_CTR, POLARSSL_MODE_CTR, 128, @@ -305,7 +305,7 @@ const cipher_info_t aes_128_ctr_info = { &aes_info }; -const cipher_info_t aes_192_ctr_info = { +static const cipher_info_t aes_192_ctr_info = { POLARSSL_CIPHER_AES_192_CTR, POLARSSL_MODE_CTR, 192, @@ -316,7 +316,7 @@ const cipher_info_t aes_192_ctr_info = { &aes_info }; -const cipher_info_t aes_256_ctr_info = { +static const cipher_info_t aes_256_ctr_info = { POLARSSL_CIPHER_AES_256_CTR, POLARSSL_MODE_CTR, 256, @@ -336,7 +336,7 @@ static int gcm_aes_setkey_wrap( void *ctx, const unsigned char *key, key, key_length ); } -const cipher_base_t gcm_aes_info = { +static const cipher_base_t gcm_aes_info = { POLARSSL_CIPHER_ID_AES, NULL, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -357,7 +357,7 @@ const cipher_base_t gcm_aes_info = { gcm_ctx_free, }; -const cipher_info_t aes_128_gcm_info = { +static const cipher_info_t aes_128_gcm_info = { POLARSSL_CIPHER_AES_128_GCM, POLARSSL_MODE_GCM, 128, @@ -368,7 +368,7 @@ const cipher_info_t aes_128_gcm_info = { &gcm_aes_info }; -const cipher_info_t aes_192_gcm_info = { +static const cipher_info_t aes_192_gcm_info = { POLARSSL_CIPHER_AES_192_GCM, POLARSSL_MODE_GCM, 192, @@ -379,7 +379,7 @@ const cipher_info_t aes_192_gcm_info = { &gcm_aes_info }; -const cipher_info_t aes_256_gcm_info = { +static const cipher_info_t aes_256_gcm_info = { POLARSSL_CIPHER_AES_256_GCM, POLARSSL_MODE_GCM, 256, @@ -399,7 +399,7 @@ static int ccm_aes_setkey_wrap( void *ctx, const unsigned char *key, key, key_length ); } -const cipher_base_t ccm_aes_info = { +static const cipher_base_t ccm_aes_info = { POLARSSL_CIPHER_ID_AES, NULL, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -420,7 +420,7 @@ const cipher_base_t ccm_aes_info = { ccm_ctx_free, }; -const cipher_info_t aes_128_ccm_info = { +static const cipher_info_t aes_128_ccm_info = { POLARSSL_CIPHER_AES_128_CCM, POLARSSL_MODE_CCM, 128, @@ -431,7 +431,7 @@ const cipher_info_t aes_128_ccm_info = { &ccm_aes_info }; -const cipher_info_t aes_192_ccm_info = { +static const cipher_info_t aes_192_ccm_info = { POLARSSL_CIPHER_AES_192_CCM, POLARSSL_MODE_CCM, 192, @@ -442,7 +442,7 @@ const cipher_info_t aes_192_ccm_info = { &ccm_aes_info }; -const cipher_info_t aes_256_ccm_info = { +static const cipher_info_t aes_256_ccm_info = { POLARSSL_CIPHER_AES_256_CCM, POLARSSL_MODE_CCM, 256, @@ -526,7 +526,7 @@ static void camellia_ctx_free( void *ctx ) polarssl_free( ctx ); } -const cipher_base_t camellia_info = { +static const cipher_base_t camellia_info = { POLARSSL_CIPHER_ID_CAMELLIA, camellia_crypt_ecb_wrap, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -547,7 +547,7 @@ const cipher_base_t camellia_info = { camellia_ctx_free }; -const cipher_info_t camellia_128_ecb_info = { +static const cipher_info_t camellia_128_ecb_info = { POLARSSL_CIPHER_CAMELLIA_128_ECB, POLARSSL_MODE_ECB, 128, @@ -558,7 +558,7 @@ const cipher_info_t camellia_128_ecb_info = { &camellia_info }; -const cipher_info_t camellia_192_ecb_info = { +static const cipher_info_t camellia_192_ecb_info = { POLARSSL_CIPHER_CAMELLIA_192_ECB, POLARSSL_MODE_ECB, 192, @@ -569,7 +569,7 @@ const cipher_info_t camellia_192_ecb_info = { &camellia_info }; -const cipher_info_t camellia_256_ecb_info = { +static const cipher_info_t camellia_256_ecb_info = { POLARSSL_CIPHER_CAMELLIA_256_ECB, POLARSSL_MODE_ECB, 256, @@ -581,7 +581,7 @@ const cipher_info_t camellia_256_ecb_info = { }; #if defined(POLARSSL_CIPHER_MODE_CBC) -const cipher_info_t camellia_128_cbc_info = { +static const cipher_info_t camellia_128_cbc_info = { POLARSSL_CIPHER_CAMELLIA_128_CBC, POLARSSL_MODE_CBC, 128, @@ -592,7 +592,7 @@ const cipher_info_t camellia_128_cbc_info = { &camellia_info }; -const cipher_info_t camellia_192_cbc_info = { +static const cipher_info_t camellia_192_cbc_info = { POLARSSL_CIPHER_CAMELLIA_192_CBC, POLARSSL_MODE_CBC, 192, @@ -603,7 +603,7 @@ const cipher_info_t camellia_192_cbc_info = { &camellia_info }; -const cipher_info_t camellia_256_cbc_info = { +static const cipher_info_t camellia_256_cbc_info = { POLARSSL_CIPHER_CAMELLIA_256_CBC, POLARSSL_MODE_CBC, 256, @@ -616,7 +616,7 @@ const cipher_info_t camellia_256_cbc_info = { #endif /* POLARSSL_CIPHER_MODE_CBC */ #if defined(POLARSSL_CIPHER_MODE_CFB) -const cipher_info_t camellia_128_cfb128_info = { +static const cipher_info_t camellia_128_cfb128_info = { POLARSSL_CIPHER_CAMELLIA_128_CFB128, POLARSSL_MODE_CFB, 128, @@ -627,7 +627,7 @@ const cipher_info_t camellia_128_cfb128_info = { &camellia_info }; -const cipher_info_t camellia_192_cfb128_info = { +static const cipher_info_t camellia_192_cfb128_info = { POLARSSL_CIPHER_CAMELLIA_192_CFB128, POLARSSL_MODE_CFB, 192, @@ -638,7 +638,7 @@ const cipher_info_t camellia_192_cfb128_info = { &camellia_info }; -const cipher_info_t camellia_256_cfb128_info = { +static const cipher_info_t camellia_256_cfb128_info = { POLARSSL_CIPHER_CAMELLIA_256_CFB128, POLARSSL_MODE_CFB, 256, @@ -651,7 +651,7 @@ const cipher_info_t camellia_256_cfb128_info = { #endif /* POLARSSL_CIPHER_MODE_CFB */ #if defined(POLARSSL_CIPHER_MODE_CTR) -const cipher_info_t camellia_128_ctr_info = { +static const cipher_info_t camellia_128_ctr_info = { POLARSSL_CIPHER_CAMELLIA_128_CTR, POLARSSL_MODE_CTR, 128, @@ -662,7 +662,7 @@ const cipher_info_t camellia_128_ctr_info = { &camellia_info }; -const cipher_info_t camellia_192_ctr_info = { +static const cipher_info_t camellia_192_ctr_info = { POLARSSL_CIPHER_CAMELLIA_192_CTR, POLARSSL_MODE_CTR, 192, @@ -673,7 +673,7 @@ const cipher_info_t camellia_192_ctr_info = { &camellia_info }; -const cipher_info_t camellia_256_ctr_info = { +static const cipher_info_t camellia_256_ctr_info = { POLARSSL_CIPHER_CAMELLIA_256_CTR, POLARSSL_MODE_CTR, 256, @@ -693,7 +693,7 @@ static int gcm_camellia_setkey_wrap( void *ctx, const unsigned char *key, key, key_length ); } -const cipher_base_t gcm_camellia_info = { +static const cipher_base_t gcm_camellia_info = { POLARSSL_CIPHER_ID_CAMELLIA, NULL, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -714,7 +714,7 @@ const cipher_base_t gcm_camellia_info = { gcm_ctx_free, }; -const cipher_info_t camellia_128_gcm_info = { +static const cipher_info_t camellia_128_gcm_info = { POLARSSL_CIPHER_CAMELLIA_128_GCM, POLARSSL_MODE_GCM, 128, @@ -725,7 +725,7 @@ const cipher_info_t camellia_128_gcm_info = { &gcm_camellia_info }; -const cipher_info_t camellia_192_gcm_info = { +static const cipher_info_t camellia_192_gcm_info = { POLARSSL_CIPHER_CAMELLIA_192_GCM, POLARSSL_MODE_GCM, 192, @@ -736,7 +736,7 @@ const cipher_info_t camellia_192_gcm_info = { &gcm_camellia_info }; -const cipher_info_t camellia_256_gcm_info = { +static const cipher_info_t camellia_256_gcm_info = { POLARSSL_CIPHER_CAMELLIA_256_GCM, POLARSSL_MODE_GCM, 256, @@ -756,7 +756,7 @@ static int ccm_camellia_setkey_wrap( void *ctx, const unsigned char *key, key, key_length ); } -const cipher_base_t ccm_camellia_info = { +static const cipher_base_t ccm_camellia_info = { POLARSSL_CIPHER_ID_CAMELLIA, NULL, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -777,7 +777,7 @@ const cipher_base_t ccm_camellia_info = { ccm_ctx_free, }; -const cipher_info_t camellia_128_ccm_info = { +static const cipher_info_t camellia_128_ccm_info = { POLARSSL_CIPHER_CAMELLIA_128_CCM, POLARSSL_MODE_CCM, 128, @@ -788,7 +788,7 @@ const cipher_info_t camellia_128_ccm_info = { &ccm_camellia_info }; -const cipher_info_t camellia_192_ccm_info = { +static const cipher_info_t camellia_192_ccm_info = { POLARSSL_CIPHER_CAMELLIA_192_CCM, POLARSSL_MODE_CCM, 192, @@ -799,7 +799,7 @@ const cipher_info_t camellia_192_ccm_info = { &ccm_camellia_info }; -const cipher_info_t camellia_256_ccm_info = { +static const cipher_info_t camellia_256_ccm_info = { POLARSSL_CIPHER_CAMELLIA_256_CCM, POLARSSL_MODE_CCM, 256, @@ -932,7 +932,7 @@ static void des3_ctx_free( void *ctx ) polarssl_free( ctx ); } -const cipher_base_t des_info = { +static const cipher_base_t des_info = { POLARSSL_CIPHER_ID_DES, des_crypt_ecb_wrap, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -953,7 +953,7 @@ const cipher_base_t des_info = { des_ctx_free }; -const cipher_info_t des_ecb_info = { +static const cipher_info_t des_ecb_info = { POLARSSL_CIPHER_DES_ECB, POLARSSL_MODE_ECB, POLARSSL_KEY_LENGTH_DES, @@ -965,7 +965,7 @@ const cipher_info_t des_ecb_info = { }; #if defined(POLARSSL_CIPHER_MODE_CBC) -const cipher_info_t des_cbc_info = { +static const cipher_info_t des_cbc_info = { POLARSSL_CIPHER_DES_CBC, POLARSSL_MODE_CBC, POLARSSL_KEY_LENGTH_DES, @@ -977,7 +977,7 @@ const cipher_info_t des_cbc_info = { }; #endif /* POLARSSL_CIPHER_MODE_CBC */ -const cipher_base_t des_ede_info = { +static const cipher_base_t des_ede_info = { POLARSSL_CIPHER_ID_DES, des3_crypt_ecb_wrap, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -998,7 +998,7 @@ const cipher_base_t des_ede_info = { des3_ctx_free }; -const cipher_info_t des_ede_ecb_info = { +static const cipher_info_t des_ede_ecb_info = { POLARSSL_CIPHER_DES_EDE_ECB, POLARSSL_MODE_ECB, POLARSSL_KEY_LENGTH_DES_EDE, @@ -1010,7 +1010,7 @@ const cipher_info_t des_ede_ecb_info = { }; #if defined(POLARSSL_CIPHER_MODE_CBC) -const cipher_info_t des_ede_cbc_info = { +static const cipher_info_t des_ede_cbc_info = { POLARSSL_CIPHER_DES_EDE_CBC, POLARSSL_MODE_CBC, POLARSSL_KEY_LENGTH_DES_EDE, @@ -1022,7 +1022,7 @@ const cipher_info_t des_ede_cbc_info = { }; #endif /* POLARSSL_CIPHER_MODE_CBC */ -const cipher_base_t des_ede3_info = { +static const cipher_base_t des_ede3_info = { POLARSSL_CIPHER_ID_DES, des3_crypt_ecb_wrap, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -1043,7 +1043,7 @@ const cipher_base_t des_ede3_info = { des3_ctx_free }; -const cipher_info_t des_ede3_ecb_info = { +static const cipher_info_t des_ede3_ecb_info = { POLARSSL_CIPHER_DES_EDE3_ECB, POLARSSL_MODE_ECB, POLARSSL_KEY_LENGTH_DES_EDE3, @@ -1054,7 +1054,7 @@ const cipher_info_t des_ede3_ecb_info = { &des_ede3_info }; #if defined(POLARSSL_CIPHER_MODE_CBC) -const cipher_info_t des_ede3_cbc_info = { +static const cipher_info_t des_ede3_cbc_info = { POLARSSL_CIPHER_DES_EDE3_CBC, POLARSSL_MODE_CBC, POLARSSL_KEY_LENGTH_DES_EDE3, @@ -1131,7 +1131,7 @@ static void blowfish_ctx_free( void *ctx ) polarssl_free( ctx ); } -const cipher_base_t blowfish_info = { +static const cipher_base_t blowfish_info = { POLARSSL_CIPHER_ID_BLOWFISH, blowfish_crypt_ecb_wrap, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -1152,7 +1152,7 @@ const cipher_base_t blowfish_info = { blowfish_ctx_free }; -const cipher_info_t blowfish_ecb_info = { +static const cipher_info_t blowfish_ecb_info = { POLARSSL_CIPHER_BLOWFISH_ECB, POLARSSL_MODE_ECB, 128, @@ -1164,7 +1164,7 @@ const cipher_info_t blowfish_ecb_info = { }; #if defined(POLARSSL_CIPHER_MODE_CBC) -const cipher_info_t blowfish_cbc_info = { +static const cipher_info_t blowfish_cbc_info = { POLARSSL_CIPHER_BLOWFISH_CBC, POLARSSL_MODE_CBC, 128, @@ -1177,7 +1177,7 @@ const cipher_info_t blowfish_cbc_info = { #endif /* POLARSSL_CIPHER_MODE_CBC */ #if defined(POLARSSL_CIPHER_MODE_CFB) -const cipher_info_t blowfish_cfb64_info = { +static const cipher_info_t blowfish_cfb64_info = { POLARSSL_CIPHER_BLOWFISH_CFB64, POLARSSL_MODE_CFB, 128, @@ -1190,7 +1190,7 @@ const cipher_info_t blowfish_cfb64_info = { #endif /* POLARSSL_CIPHER_MODE_CFB */ #if defined(POLARSSL_CIPHER_MODE_CTR) -const cipher_info_t blowfish_ctr_info = { +static const cipher_info_t blowfish_ctr_info = { POLARSSL_CIPHER_BLOWFISH_CTR, POLARSSL_MODE_CTR, 128, @@ -1241,7 +1241,7 @@ static void arc4_ctx_free( void *ctx ) polarssl_free( ctx ); } -const cipher_base_t arc4_base_info = { +static const cipher_base_t arc4_base_info = { POLARSSL_CIPHER_ID_ARC4, NULL, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -1262,7 +1262,7 @@ const cipher_base_t arc4_base_info = { arc4_ctx_free }; -const cipher_info_t arc4_128_info = { +static const cipher_info_t arc4_128_info = { POLARSSL_CIPHER_ARC4_128, POLARSSL_MODE_STREAM, 128, @@ -1304,7 +1304,7 @@ static void null_ctx_free( void *ctx ) ((void) ctx); } -const cipher_base_t null_base_info = { +static const cipher_base_t null_base_info = { POLARSSL_CIPHER_ID_NULL, NULL, #if defined(POLARSSL_CIPHER_MODE_CBC) @@ -1325,7 +1325,7 @@ const cipher_base_t null_base_info = { null_ctx_free }; -const cipher_info_t null_cipher_info = { +static const cipher_info_t null_cipher_info = { POLARSSL_CIPHER_NULL, POLARSSL_MODE_STREAM, 0, diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c index 4fc1deb0db..de4a6e814c 100644 --- a/library/ctr_drbg.c +++ b/library/ctr_drbg.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/debug.c b/library/debug.c index 88a9dacf57..825cc9480f 100644 --- a/library/debug.c +++ b/library/debug.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/des.c b/library/des.c index 16a2e74fc2..080e11392e 100644 --- a/library/des.c +++ b/library/des.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/dhm.c b/library/dhm.c index 60e955ad9b..9fb7a218be 100644 --- a/library/dhm.c +++ b/library/dhm.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ecdh.c b/library/ecdh.c index d287948066..82fff276a2 100644 --- a/library/ecdh.c +++ b/library/ecdh.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ecdsa.c b/library/ecdsa.c index 0585748964..3f72d857c3 100644 --- a/library/ecdsa.c +++ b/library/ecdsa.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ecp.c b/library/ecp.c index 26ce96239d..be6b0d5d1d 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ecp_curves.c b/library/ecp_curves.c index 0659111a7f..3786356c3e 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/entropy.c b/library/entropy.c index 846d5ee4cb..c90c7e4625 100644 --- a/library/entropy.c +++ b/library/entropy.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/entropy_poll.c b/library/entropy_poll.c index 8d98d895a0..61eb3e78aa 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/error.c b/library/error.c index 6c00e1a8ad..cb0324db4b 100644 --- a/library/error.c +++ b/library/error.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/gcm.c b/library/gcm.c index 522a8b1918..4e2735c0d6 100644 --- a/library/gcm.c +++ b/library/gcm.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -508,10 +508,10 @@ void gcm_free( gcm_context *ctx ) */ #define MAX_TESTS 6 -int key_index[MAX_TESTS] = +static int key_index[MAX_TESTS] = { 0, 0, 1, 1, 1, 1 }; -unsigned char key[MAX_TESTS][32] = +static unsigned char key[MAX_TESTS][32] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -523,13 +523,13 @@ unsigned char key[MAX_TESTS][32] = 0x6d, 0x6a, 0x8f, 0x94, 0x67, 0x30, 0x83, 0x08 }, }; -size_t iv_len[MAX_TESTS] = +static size_t iv_len[MAX_TESTS] = { 12, 12, 12, 12, 8, 60 }; -int iv_index[MAX_TESTS] = +static int iv_index[MAX_TESTS] = { 0, 0, 1, 1, 1, 2 }; -unsigned char iv[MAX_TESTS][64] = +static unsigned char iv[MAX_TESTS][64] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, @@ -545,13 +545,13 @@ unsigned char iv[MAX_TESTS][64] = 0xa6, 0x37, 0xb3, 0x9b }, }; -size_t add_len[MAX_TESTS] = +static size_t add_len[MAX_TESTS] = { 0, 0, 0, 20, 20, 20 }; -int add_index[MAX_TESTS] = +static int add_index[MAX_TESTS] = { 0, 0, 0, 1, 1, 1 }; -unsigned char additional[MAX_TESTS][64] = +static unsigned char additional[MAX_TESTS][64] = { { 0x00 }, { 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, @@ -559,13 +559,13 @@ unsigned char additional[MAX_TESTS][64] = 0xab, 0xad, 0xda, 0xd2 }, }; -size_t pt_len[MAX_TESTS] = +static size_t pt_len[MAX_TESTS] = { 0, 16, 64, 60, 60, 60 }; -int pt_index[MAX_TESTS] = +static int pt_index[MAX_TESTS] = { 0, 0, 1, 1, 1, 1 }; -unsigned char pt[MAX_TESTS][64] = +static unsigned char pt[MAX_TESTS][64] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, @@ -579,7 +579,7 @@ unsigned char pt[MAX_TESTS][64] = 0xba, 0x63, 0x7b, 0x39, 0x1a, 0xaf, 0xd2, 0x55 }, }; -unsigned char ct[MAX_TESTS * 3][64] = +static unsigned char ct[MAX_TESTS * 3][64] = { { 0x00 }, { 0x03, 0x88, 0xda, 0xce, 0x60, 0xb6, 0xa3, 0x92, @@ -688,7 +688,7 @@ unsigned char ct[MAX_TESTS * 3][64] = 0x44, 0xae, 0x7e, 0x3f }, }; -unsigned char tag[MAX_TESTS * 3][16] = +static unsigned char tag[MAX_TESTS * 3][16] = { { 0x58, 0xe2, 0xfc, 0xce, 0xfa, 0x7e, 0x30, 0x61, 0x36, 0x7f, 0x1d, 0x57, 0xa4, 0xe7, 0x45, 0x5a }, diff --git a/library/havege.c b/library/havege.c index e496c4ecf0..fe656991c2 100644 --- a/library/havege.c +++ b/library/havege.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/hmac_drbg.c b/library/hmac_drbg.c index 5516301497..f4cac28aee 100644 --- a/library/hmac_drbg.c +++ b/library/hmac_drbg.c @@ -3,7 +3,7 @@ * * Copyright (C) 2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/md.c b/library/md.c index 9df21b51aa..fbdab9117c 100644 --- a/library/md.c +++ b/library/md.c @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/md2.c b/library/md2.c index 43c129fb97..17569c0a80 100644 --- a/library/md2.c +++ b/library/md2.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/md4.c b/library/md4.c index d14390bbf3..d33cc520a8 100644 --- a/library/md4.c +++ b/library/md4.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/md5.c b/library/md5.c index b68bd4bc9c..a14a9cf7df 100644 --- a/library/md5.c +++ b/library/md5.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/md_wrap.c b/library/md_wrap.c index ed5a63e421..f554333e78 100644 --- a/library/md_wrap.c +++ b/library/md_wrap.c @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index 737100810d..5eb8ab138c 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/net.c b/library/net.c index 71246b5389..68c9e5e6b8 100644 --- a/library/net.c +++ b/library/net.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/oid.c b/library/oid.c index 7bb563175e..ad45a3d45d 100644 --- a/library/oid.c +++ b/library/oid.c @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/padlock.c b/library/padlock.c index bad25da1cd..f4d95fdf2c 100644 --- a/library/padlock.c +++ b/library/padlock.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pbkdf2.c b/library/pbkdf2.c index a07c70cc26..54494ab4ee 100644 --- a/library/pbkdf2.c +++ b/library/pbkdf2.c @@ -8,7 +8,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pem.c b/library/pem.c index d850d40c86..68be8fd6d0 100644 --- a/library/pem.c +++ b/library/pem.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pk.c b/library/pk.c index 6736bde517..4d78b57455 100644 --- a/library/pk.c +++ b/library/pk.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pk_wrap.c b/library/pk_wrap.c index f0f09cbe10..6068605bfd 100644 --- a/library/pk_wrap.c +++ b/library/pk_wrap.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pkcs11.c b/library/pkcs11.c index 303b7b1efa..14cde315bb 100644 --- a/library/pkcs11.c +++ b/library/pkcs11.c @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pkcs12.c b/library/pkcs12.c index 3b19051603..f84fd52cdf 100644 --- a/library/pkcs12.c +++ b/library/pkcs12.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pkcs5.c b/library/pkcs5.c index 182d632de7..2e7d816ae2 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c @@ -7,7 +7,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -300,10 +300,10 @@ int pkcs5_self_test( int verbose ) #define MAX_TESTS 6 -size_t plen[MAX_TESTS] = +static size_t plen[MAX_TESTS] = { 8, 8, 8, 8, 24, 9 }; -unsigned char password[MAX_TESTS][32] = +static unsigned char password[MAX_TESTS][32] = { "password", "password", @@ -313,10 +313,10 @@ unsigned char password[MAX_TESTS][32] = "pass\0word", }; -size_t slen[MAX_TESTS] = +static size_t slen[MAX_TESTS] = { 4, 4, 4, 4, 36, 5 }; -unsigned char salt[MAX_TESTS][40] = +static unsigned char salt[MAX_TESTS][40] = { "salt", "salt", @@ -326,14 +326,13 @@ unsigned char salt[MAX_TESTS][40] = "sa\0lt", }; -uint32_t it_cnt[MAX_TESTS] = +static uint32_t it_cnt[MAX_TESTS] = { 1, 2, 4096, 16777216, 4096, 4096 }; -uint32_t key_len[MAX_TESTS] = +static uint32_t key_len[MAX_TESTS] = { 20, 20, 20, 20, 25, 16 }; - -unsigned char result_key[MAX_TESTS][32] = +static unsigned char result_key[MAX_TESTS][32] = { { 0x0c, 0x60, 0xc8, 0x0f, 0x96, 0x1f, 0x0e, 0x71, 0xf3, 0xa9, 0xb5, 0x24, 0xaf, 0x60, 0x12, 0x06, diff --git a/library/pkparse.c b/library/pkparse.c index aec43f1dbc..06fb2929ff 100644 --- a/library/pkparse.c +++ b/library/pkparse.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/pkwrite.c b/library/pkwrite.c index 29e172d672..35dbd0b755 100644 --- a/library/pkwrite.c +++ b/library/pkwrite.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/platform.c b/library/platform.c index 34295adc23..a161bc3ea4 100644 --- a/library/platform.c +++ b/library/platform.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ripemd160.c b/library/ripemd160.c index 2c81138dc5..2c196f42b9 100644 --- a/library/ripemd160.c +++ b/library/ripemd160.c @@ -3,7 +3,7 @@ * * Copyright (C) 2014-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/rsa.c b/library/rsa.c index 23382643db..0d71ad0c8b 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/sha1.c b/library/sha1.c index 604f8ee16e..35e0625833 100644 --- a/library/sha1.c +++ b/library/sha1.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/sha256.c b/library/sha256.c index 39444bc89c..b9b3f097b3 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/sha512.c b/library/sha512.c index 5decc8fac0..629ed1b58e 100644 --- a/library/sha512.c +++ b/library/sha512.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,6 +35,12 @@ #include "polarssl/sha512.h" +#if defined(_MSC_VER) || defined(__WATCOMC__) + #define UL64(x) x##ui64 +#else + #define UL64(x) x##ULL +#endif + #include #if defined(POLARSSL_FS_IO) diff --git a/library/ssl_cache.c b/library/ssl_cache.c index 7fb30896fb..0c2df29bb1 100644 --- a/library/ssl_cache.c +++ b/library/ssl_cache.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ssl_ciphersuites.c b/library/ssl_ciphersuites.c index 4d8182e537..694bcf08b9 100644 --- a/library/ssl_ciphersuites.c +++ b/library/ssl_ciphersuites.c @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ssl_cli.c b/library/ssl_cli.c index cea7c100ad..1244435e57 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 7280bbf54b..59c1c1e775 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/ssl_tls.c b/library/ssl_tls.c index b09ee53b3f..2341f0598c 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/threading.c b/library/threading.c index e89aa95105..fa745afdb3 100644 --- a/library/threading.c +++ b/library/threading.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/timing.c b/library/timing.c index 5791ef4212..5d58f529ab 100644 --- a/library/timing.c +++ b/library/timing.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/version.c b/library/version.c index c10acac64f..2856d6ccd4 100644 --- a/library/version.c +++ b/library/version.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,8 +31,6 @@ #include "polarssl/version.h" #include -const char version[] = POLARSSL_VERSION_STRING; - unsigned int version_get_number() { return( POLARSSL_VERSION_NUMBER ); diff --git a/library/version_features.c b/library/version_features.c index 3e3405a4a7..b970ee1c00 100644 --- a/library/version_features.c +++ b/library/version_features.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ #define strcasecmp _stricmp #endif -const char *features[] = { +static const char *features[] = { #if defined(POLARSSL_VERSION_FEATURES) #if defined(POLARSSL_HAVE_INT8) "POLARSSL_HAVE_INT8", diff --git a/library/x509.c b/library/x509.c index 3818c3f5bb..b35663d8c9 100644 --- a/library/x509.c +++ b/library/x509.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/x509_create.c b/library/x509_create.c index 0a75c388b4..f505bab80b 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/x509_crl.c b/library/x509_crl.c index 94076e791f..e2076a6611 100644 --- a/library/x509_crl.c +++ b/library/x509_crl.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/x509_crt.c b/library/x509_crt.c index d9f5fac240..77008ed23a 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/x509_csr.c b/library/x509_csr.c index 826eafd94f..558b078b73 100644 --- a/library/x509_csr.c +++ b/library/x509_csr.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/x509write_crt.c b/library/x509write_crt.c index 5bf44a0685..80913ec191 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/x509write_csr.c b/library/x509write_csr.c index 5e2a5e1926..c5a5875401 100644 --- a/library/x509write_csr.c +++ b/library/x509write_csr.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/library/xtea.c b/library/xtea.c index e543d654c7..0558b93c89 100644 --- a/library/xtea.c +++ b/library/xtea.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/aes/aescrypt2.c b/programs/aes/aescrypt2.c index 430b87f20a..2582b9611b 100644 --- a/programs/aes/aescrypt2.c +++ b/programs/aes/aescrypt2.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/aes/crypt_and_hash.c b/programs/aes/crypt_and_hash.c index c76b8dbd36..1f14d3f4db 100644 --- a/programs/aes/crypt_and_hash.c +++ b/programs/aes/crypt_and_hash.c @@ -4,7 +4,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/hash/generic_sum.c b/programs/hash/generic_sum.c index a49dbb7bfa..08f175d095 100644 --- a/programs/hash/generic_sum.c +++ b/programs/hash/generic_sum.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/hash/hello.c b/programs/hash/hello.c index c774110589..77ae7f98b2 100644 --- a/programs/hash/hello.c +++ b/programs/hash/hello.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/hash/md5sum.c b/programs/hash/md5sum.c index afe3454557..f8e32f715c 100644 --- a/programs/hash/md5sum.c +++ b/programs/hash/md5sum.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/hash/sha1sum.c b/programs/hash/sha1sum.c index 8dc4e086ec..dbdce3e5da 100644 --- a/programs/hash/sha1sum.c +++ b/programs/hash/sha1sum.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/hash/sha2sum.c b/programs/hash/sha2sum.c index 268d170b05..2ed92fcfcd 100644 --- a/programs/hash/sha2sum.c +++ b/programs/hash/sha2sum.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/dh_client.c b/programs/pkey/dh_client.c index b600584db9..ef88958b25 100644 --- a/programs/pkey/dh_client.c +++ b/programs/pkey/dh_client.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/dh_genprime.c b/programs/pkey/dh_genprime.c index e0ca260e50..b5f901847e 100644 --- a/programs/pkey/dh_genprime.c +++ b/programs/pkey/dh_genprime.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2012, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/dh_server.c b/programs/pkey/dh_server.c index b623a6806b..d0bc1c6766 100644 --- a/programs/pkey/dh_server.c +++ b/programs/pkey/dh_server.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/ecdsa.c b/programs/pkey/ecdsa.c index 640d3e76a2..aa8eafb97d 100644 --- a/programs/pkey/ecdsa.c +++ b/programs/pkey/ecdsa.c @@ -3,7 +3,7 @@ * * Copyright (C) 2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/gen_key.c b/programs/pkey/gen_key.c index a4095da517..fca35e55a5 100644 --- a/programs/pkey/gen_key.c +++ b/programs/pkey/gen_key.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/key_app.c b/programs/pkey/key_app.c index 98f36db1b9..f8a2d2db73 100644 --- a/programs/pkey/key_app.c +++ b/programs/pkey/key_app.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/key_app_writer.c b/programs/pkey/key_app_writer.c index 09233ffee5..3be1ce0dec 100644 --- a/programs/pkey/key_app_writer.c +++ b/programs/pkey/key_app_writer.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/mpi_demo.c b/programs/pkey/mpi_demo.c index 7281c3a600..c94fb9764b 100644 --- a/programs/pkey/mpi_demo.c +++ b/programs/pkey/mpi_demo.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/pk_decrypt.c b/programs/pkey/pk_decrypt.c index 2bd8b3486a..bafa4a99c8 100644 --- a/programs/pkey/pk_decrypt.c +++ b/programs/pkey/pk_decrypt.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/pk_encrypt.c b/programs/pkey/pk_encrypt.c index 9a3e782441..ad94159a33 100644 --- a/programs/pkey/pk_encrypt.c +++ b/programs/pkey/pk_encrypt.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/pk_sign.c b/programs/pkey/pk_sign.c index e85350d9f5..7ccc70b6d7 100644 --- a/programs/pkey/pk_sign.c +++ b/programs/pkey/pk_sign.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/pk_verify.c b/programs/pkey/pk_verify.c index 923afc15ed..3afa34a35b 100644 --- a/programs/pkey/pk_verify.c +++ b/programs/pkey/pk_verify.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_decrypt.c b/programs/pkey/rsa_decrypt.c index 368089f76c..dfa475c1a6 100644 --- a/programs/pkey/rsa_decrypt.c +++ b/programs/pkey/rsa_decrypt.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_encrypt.c b/programs/pkey/rsa_encrypt.c index e73ad2ff08..683183324a 100644 --- a/programs/pkey/rsa_encrypt.c +++ b/programs/pkey/rsa_encrypt.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_genkey.c b/programs/pkey/rsa_genkey.c index 0314d39eec..0270b53bc1 100644 --- a/programs/pkey/rsa_genkey.c +++ b/programs/pkey/rsa_genkey.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_sign.c b/programs/pkey/rsa_sign.c index 277034d2f4..d9a9a6e51c 100644 --- a/programs/pkey/rsa_sign.c +++ b/programs/pkey/rsa_sign.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_sign_pss.c b/programs/pkey/rsa_sign_pss.c index ad4d0b5f39..7c0c7ca888 100644 --- a/programs/pkey/rsa_sign_pss.c +++ b/programs/pkey/rsa_sign_pss.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_verify.c b/programs/pkey/rsa_verify.c index 88d4d04c47..374a5f1e26 100644 --- a/programs/pkey/rsa_verify.c +++ b/programs/pkey/rsa_verify.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/pkey/rsa_verify_pss.c b/programs/pkey/rsa_verify_pss.c index 2b1570a9b2..217b7137f3 100644 --- a/programs/pkey/rsa_verify_pss.c +++ b/programs/pkey/rsa_verify_pss.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/random/gen_entropy.c b/programs/random/gen_entropy.c index 54baa18b75..573a13bc14 100644 --- a/programs/random/gen_entropy.c +++ b/programs/random/gen_entropy.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/random/gen_random_ctr_drbg.c b/programs/random/gen_random_ctr_drbg.c index 4c2286d984..e96e37b4af 100644 --- a/programs/random/gen_random_ctr_drbg.c +++ b/programs/random/gen_random_ctr_drbg.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/random/gen_random_havege.c b/programs/random/gen_random_havege.c index 0f5800c364..e5a53560df 100644 --- a/programs/random/gen_random_havege.c +++ b/programs/random/gen_random_havege.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/mini_client.c b/programs/ssl/mini_client.c index a06d345589..c48969bd9e 100644 --- a/programs/ssl/mini_client.c +++ b/programs/ssl/mini_client.c @@ -4,7 +4,7 @@ * * Copyright (C) 2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_client1.c b/programs/ssl/ssl_client1.c index c5ed4c30ea..b0a75dc9fb 100644 --- a/programs/ssl/ssl_client1.c +++ b/programs/ssl/ssl_client1.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 2f40fec381..48ceeb2838 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_fork_server.c b/programs/ssl/ssl_fork_server.c index 71a3aa9649..3408364fdb 100644 --- a/programs/ssl/ssl_fork_server.c +++ b/programs/ssl/ssl_fork_server.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_mail_client.c b/programs/ssl/ssl_mail_client.c index 8794c98f2e..92ebed0773 100644 --- a/programs/ssl/ssl_mail_client.c +++ b/programs/ssl/ssl_mail_client.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2012, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_pthread_server.c b/programs/ssl/ssl_pthread_server.c index 8ae4113464..5f12b9679d 100644 --- a/programs/ssl/ssl_pthread_server.c +++ b/programs/ssl/ssl_pthread_server.c @@ -4,7 +4,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_server.c b/programs/ssl/ssl_server.c index 83430f6496..eb5cd253c9 100644 --- a/programs/ssl/ssl_server.c +++ b/programs/ssl/ssl_server.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 78198ff0d8..ad0631b56e 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index 912aa7df08..1a308be6fe 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -255,8 +255,10 @@ int main( int argc, char *argv[] ) unsigned char malloc_buf[HEAP_SIZE] = { 0 }; #endif - if( argc == 1 ) + if( argc <= 1 ) + { memset( &todo, 1, sizeof( todo ) ); + } else { memset( &todo, 0, sizeof( todo ) ); diff --git a/programs/test/o_p_test.c b/programs/test/o_p_test.c index 0d1cccfa01..d949d51ded 100644 --- a/programs/test/o_p_test.c +++ b/programs/test/o_p_test.c @@ -3,7 +3,7 @@ * * Copyright (C) 2011-2012 ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/test/selftest.c b/programs/test/selftest.c index edecbb8f95..280e3b7c87 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/test/ssl_cert_test.c b/programs/test/ssl_cert_test.c index 497860314b..d823964ee9 100644 --- a/programs/test/ssl_cert_test.c +++ b/programs/test/ssl_cert_test.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/test/ssl_test.c b/programs/test/ssl_test.c index 49bbd15809..5f12608a1d 100644 --- a/programs/test/ssl_test.c +++ b/programs/test/ssl_test.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/util/pem2der.c b/programs/util/pem2der.c index 2c0e585bf5..8ef3e4b379 100644 --- a/programs/util/pem2der.c +++ b/programs/util/pem2der.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/util/strerror.c b/programs/util/strerror.c index e785ffa7c6..715bd3fbfe 100644 --- a/programs/util/strerror.c +++ b/programs/util/strerror.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2012, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/wince_main.c b/programs/wince_main.c index 8bf249b871..aa1401c27e 100644 --- a/programs/wince_main.c +++ b/programs/wince_main.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c index cc36b7cb06..0c564bd329 100644 --- a/programs/x509/cert_app.c +++ b/programs/x509/cert_app.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/x509/cert_req.c b/programs/x509/cert_req.c index d8527c6e4b..83766ea5a5 100644 --- a/programs/x509/cert_req.c +++ b/programs/x509/cert_req.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2011, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 45e2456dcf..5653da251a 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/x509/crl_app.c b/programs/x509/crl_app.c index 83543911ba..ff80a3d4ef 100644 --- a/programs/x509/crl_app.c +++ b/programs/x509/crl_app.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/programs/x509/req_app.c b/programs/x509/req_app.c index 0b070fc97f..1164fd6fdc 100644 --- a/programs/x509/req_app.c +++ b/programs/x509/req_app.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/scripts/data_files/error.fmt b/scripts/data_files/error.fmt index eeefd7b8fd..7449d85abc 100644 --- a/scripts/data_files/error.fmt +++ b/scripts/data_files/error.fmt @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/scripts/data_files/version_features.fmt b/scripts/data_files/version_features.fmt index 1d27488c23..500e026c7e 100644 --- a/scripts/data_files/version_features.fmt +++ b/scripts/data_files/version_features.fmt @@ -3,7 +3,7 @@ * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * - * This file is part of mbed TLS (https://polarssl.org) + * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ #define strcasecmp _stricmp #endif -const char *features[] = { +static const char *features[] = { #if defined(POLARSSL_VERSION_FEATURES) FEATURE_DEFINES #endif /* POLARSSL_VERSION_FEATURES */