mbedtls/library
Bence Szépkúti f744bd72ee Update license headers to Apache-2.0 OR GPL-2.0-or-later
This will allow us to ship the LTS branches in a single archive

This commit was generated using the following script:

# ========================
#!/bin/sh

header1='\ *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later\
 *\
 *  This file is provided under the Apache License 2.0, or the\
 *  GNU General Public License v2.0 or later.\
 *\
 *  **********\
 *  Apache License 2.0:\
 *\
 *  Licensed under the Apache License, Version 2.0 (the "License"); you may\
 *  not use this file except in compliance with the License.\
 *  You may obtain a copy of the License at\
 *\
 *  http://www.apache.org/licenses/LICENSE-2.0\
 *\
 *  Unless required by applicable law or agreed to in writing, software\
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\
 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\
 *  See the License for the specific language governing permissions and\
 *  limitations under the License.\
 *\
 *  **********\
 *\
 *  **********\
 *  GNU General Public License v2.0 or later:\
 *\
 *  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\
 *  the Free Software Foundation; either version 2 of the License, or\
 *  (at your option) any later version.\
 *\
 *  This program is distributed in the hope that it will be useful,\
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of\
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\
 *  GNU General Public License for more details.\
 *\
 *  You should have received a copy of the GNU General Public License along\
 *  with this program; if not, write to the Free Software Foundation, Inc.,\
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\
 *\
 *  **********'

find -path './.git' -prune -o '(' -name '*.c' -o -name '*.cpp' -o -name '*.fmt' -o -name '*.h' ')' -print | xargs sed -i "
# Normalize the first line of the copyright headers (no text on the first line of a block comment)
/^\/\*.*Copyright.*Arm/I s/\/\*/&\n */

# Insert new copyright header
/SPDX-License-Identifier/ i\
$header1

# Delete old copyright header
/SPDX-License-Identifier/,$ {
  # Delete lines until the one preceding the mbedtls declaration
  N
  1,/This file is part of/ {
    /This file is part of/! D
  }
}
"

# Format copyright header for inclusion into scripts
header2=$(echo "$header1" | sed 's/^\\\? \* \?/#/')

find -path './.git' -prune -o '(' -name '*.gdb' -o -name '*.pl' -o -name '*.py' -o -name '*.sh' ')' -print | xargs sed -i "
# Insert new copyright header
/SPDX-License-Identifier/ i\
$header2

# Delete old copyright header
/SPDX-License-Identifier/,$ {
  # Delete lines until the one preceding the mbedtls declaration
  N
  1,/This file is part of/ {
    /This file is part of/! D
  }
}
"
# ========================

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
2020-06-15 12:48:48 +02:00
..
.gitignore Split libs with make + general make cleanups 2015-06-25 10:59:56 +02:00
aes.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
aesni.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
arc4.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
aria.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
asn1parse.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
asn1write.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
base64.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
bignum.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
blowfish.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
camellia.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ccm.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
certs.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
chacha20.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
chachapoly.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
cipher_wrap.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
cipher.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
cmac.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
CMakeLists.txt Bump version to Mbed TLS 2.16.6 2020-04-08 17:17:27 +01:00
ctr_drbg.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
debug.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
des.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
dhm.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ecdh.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ecdsa.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ecjpake.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ecp_curves.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ecp.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
entropy_poll.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
entropy.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
error.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
gcm.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
havege.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
hkdf.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
hmac_drbg.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
Makefile Fix #2370, minor typos and spelling mistakes 2019-02-18 14:50:57 +00:00
md2.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
md4.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
md5.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
md_wrap.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
md.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
memory_buffer_alloc.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
net_sockets.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
nist_kw.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
oid.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
padlock.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pem.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pk_wrap.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pk.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pkcs5.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pkcs11.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pkcs12.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pkparse.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
pkwrite.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
platform_util.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
platform.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
poly1305.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ripemd160.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
rsa_internal.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
rsa.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
sha1.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
sha256.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
sha512.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_cache.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_ciphersuites.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_cli.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_cookie.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_srv.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_ticket.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
ssl_tls.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
threading.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
timing.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
version_features.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
version.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509_create.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509_crl.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509_crt.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509_csr.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509write_crt.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
x509write_csr.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00
xtea.c Update license headers to Apache-2.0 OR GPL-2.0-or-later 2020-06-15 12:48:48 +02:00