Skip to content

Commit

Permalink
include: migrate to SPDX identifier
Browse files Browse the repository at this point in the history
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <[email protected]>
  • Loading branch information
jerpelea authored and xiaoxiang781216 committed Oct 4, 2024
1 parent e959e00 commit cd2fcf5
Show file tree
Hide file tree
Showing 814 changed files with 1,759 additions and 483 deletions.
2 changes: 2 additions & 0 deletions include/aio.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/aio.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/alloca.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/alloca.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
5 changes: 4 additions & 1 deletion include/android/fdsan.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/****************************************************************************
* include/android/fdsan.h
* Copyright (C) 2018 The Android Open Source Project
*
* SPDX-License-Identifier: BSD-2-Clause
* SPDX-FileCopyrightText: 2018 The Android Open Source Project
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 2 additions & 0 deletions include/arpa/inet.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/arpa/inet.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/assert.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/assert.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/byteswap.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/byteswap.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
6 changes: 3 additions & 3 deletions include/crypto/aes.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/****************************************************************************
* include/crypto/aes.h
* $OpenBSD: aes.h,v 1.4 2020/07/22 13:54:30 tobhe Exp $
*
* Copyright (c) 2016 Thomas Pornin <[email protected]>
* Copyright (c) 2016 Mike Belopuhov
* SPDX-License-Identifier: MIT
* SPDX-FileCopyrightText: 2016 Thomas Pornin <[email protected]>
* SPDX-FileCopyrightText: 2016 Mike Belopuhov
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
Expand Down
5 changes: 2 additions & 3 deletions include/crypto/blf.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/****************************************************************************
* include/crypto/blf.h
* $OpenBSD: blf.h,v 1.7 2021/11/29 01:04:45 djm Exp $
*
* Blowfish - a fast block cipher designed by Bruce Schneier
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 1997 Niels Provos <[email protected]>
*
* Copyright 1997 Niels Provos <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
3 changes: 3 additions & 0 deletions include/crypto/bn.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/****************************************************************************
* include/crypto/bn.h
*
* SPDX-License-Identifier: Unlicense
*
* This is free and unencumbered software released into the public domain.
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
Expand Down
5 changes: 3 additions & 2 deletions include/crypto/chachapoly.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/****************************************************************************
* include/crypto/chachapoly.h
* $OpenBSD: chachapoly.h,v 1.4 2020/07/22 13:54:30 tobhe Exp $
* Copyright (c) 2015 Mike Belopuhov
*
* SPDX-License-Identifier: ISC
* SPDX-FileCopyrightText:2015 Mike Belopuhov
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions include/crypto/cmac.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/****************************************************************************
* include/crypto/cmac.h
* $OpenBSD: cmac.h,v 1.3 2017/05/02 17:07:06 mikeb Exp $
*
* Copyright (c) 2008 Damien Bergamini <[email protected]>
* SPDX-License-Identifier: ISC
* SPDX-FileCopyrightText: 2008 Damien Bergamini <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions include/crypto/gmac.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/****************************************************************************
* include/crypto/gmac.h
* $OpenBSD: gmac.h,v 1.6 2017/05/02 11:44:32 mikeb Exp $
*
* Copyright (c) 2010 Mike Belopuhov
* SPDX-License-Identifier: ISC
* SPDX-FileCopyrightText: 2010 Mike Belopuhov
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions include/crypto/hmac.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/****************************************************************************
* include/crypto/hmac.h
* $OpenBSD: hmac.h,v 1.3 2012/12/05 23:20:15 deraadt Exp $
*
* Copyright (c) 2008 Damien Bergamini <[email protected]>
* SPDX-License-Identifier: ISC
* SPDX-FileCopyrightText: 2008 Damien Bergamini <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
6 changes: 3 additions & 3 deletions include/crypto/idgen.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/****************************************************************************
* include/crypto/idgen.h
* $OpenBSD: idgen.h,v 1.3 2013/06/05 05:45:54 djm Exp $
*
* Copyright (c) 2008 Damien Miller <[email protected]>
* SPDX-License-Identifier: ISC
* SPDX-FileCopyrightText: 2008 Damien Miller <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -38,4 +38,4 @@ struct idgen32_ctx
void idgen32_init(FAR struct idgen32_ctx *);
u_int32_t idgen32(FAR struct idgen32_ctx *);

#endif /* __INCLUDE_CRYPTO_IDGEN_H_ */
#endif /* __INCLUDE_CRYPTO_IDGEN_H_ */
5 changes: 3 additions & 2 deletions include/crypto/key_wrap.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/****************************************************************************
* include/crypto/key_wrap.h
*$OpenBSD: key_wrap.h,v 1.3 2017/05/02 17:07:06 mikeb Exp $
* Copyright (c) 2008 Damien Bergamini <[email protected]>
*
* SPDX-License-Identifier: ISC
* SPDX-FileCopyrightText: 2008 Damien Bergamini <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions include/crypto/rmd160.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/****************************************************************************
* include/crypto/rmd160.h
* $OpenBSD: rmd160.h,v 1.5 2009/07/05 19:33:46 millert Exp $
*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
* SPDX-License-Identifier: BSD-2-Clause
* SPDX-FileCopyrightText: 2001 Markus Friedl. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
8 changes: 3 additions & 5 deletions include/crypto/sha2.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/****************************************************************************
* include/crypto/sha2.h
* $OpenBSD: sha2.h,v 1.5 2014/11/16 17:39:09 tedu Exp $
*
* FILE: sha2.h
* AUTHOR: Aaron D. Gifford <[email protected]>
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2000-2001, Aaron D. Gifford
* SPDX-FileContributor: Aaron D. Gifford <[email protected]>
*
* Copyright (c) 2000-2001, Aaron D. Gifford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand All @@ -32,7 +31,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $From: sha2.h,v 1.1 2001/11/08 00:02:01 adg Exp adg $
****************************************************************************/

#ifndef __INCLUDE_CRYPTO_SHA2_H
Expand Down
7 changes: 3 additions & 4 deletions include/crypto/siphash.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/****************************************************************************
* include/crypto/siphash.h
* $OpenBSD: siphash.h,v 1.5 2015/02/20 11:51:03 tedu Exp $
*
* Copyright (c) 2013 Andre Oppermann <[email protected]>
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Andre Oppermann <[email protected]>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand All @@ -29,8 +30,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*
****************************************************************************/

/* SipHash is a family of pseudorandom functions
Expand Down
2 changes: 2 additions & 0 deletions include/ctype.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/ctype.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cassert
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cassert
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cctype
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cctype
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cerrno
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cerrno
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
4 changes: 3 additions & 1 deletion include/cxx/cinttypes
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cinttypes
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down Expand Up @@ -42,4 +44,4 @@ namespace std
using::wcstoumax;
}

#endif // __INCLUDE_CXX_CINTTYPES
#endif // __INCLUDE_CXX_CINTTYPES
2 changes: 2 additions & 0 deletions include/cxx/climits
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/climits
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/clocale
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/clocale
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cmath
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cmath
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/csignal
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/csignal
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cstdarg
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cstdarg
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cstdbool
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cstdbool
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cstddef
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cstddef
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cstdio
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cstdio
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cstdlib
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cstdlib
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cstring
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cstring
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/ctime
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/ctime
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cwchar
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cwchar
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/cxx/cwctype
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//***************************************************************************
// include/cxx/cwctype
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership. The
Expand Down
2 changes: 2 additions & 0 deletions include/debug.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/****************************************************************************
* include/debug.h
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
Expand Down
Loading

0 comments on commit cd2fcf5

Please sign in to comment.