Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zhao Zhili
librist
Commits
1828f3aa
Commit
1828f3aa
authored
Apr 01, 2021
by
Sergio Ammirata
Browse files
Make sure all files are properly licensed
parent
9604b753
Changes
72
Hide whitespace changes
Inline
Side-by-side
THANKS.md
View file @
1828f3aa
...
...
@@ -16,4 +16,5 @@ SipRadius LLC for funding this project.
And all the librist Authors (git shortlog -sn), including:
Sergio Ammirata, Kuldeep Singh Dhaka, Daniele Lacamera, Antonio Cardace, Gijs Peskens.
Sergio Ammirata, Kuldeep Singh Dhaka, Daniele Lacamera, Antonio Cardace, Gijs Peskens, James Hurley,
Marvin Scholz, Stephan Mueller
compat/gcc/stdatomic.h
View file @
1828f3aa
/*
* Copyright © 2018, VideoLAN and dav1d authors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* Copyright © 2018, VideoLAN and dav1d authors
* Copyright © 2020, VideoLAN and librist authors
* Copyright © 2019-2020 SipRadius LLC
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#ifndef GCCVER_STDATOMIC_H_
#define GCCVER_STDATOMIC_H_
...
...
compat/getopt.h
View file @
1828f3aa
#ifndef __GETOPT_H__
/**
/*
* Copyright © 2020, VideoLAN and librist authors
* Copyright © 2019-2020 SipRadius LLC
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
/*
* DISCLAIMER
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
...
...
compat/msvc/stdatomic.h
View file @
1828f3aa
/*
* Copyright © 2018, VideoLAN and dav1d authors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* Copyright © 2018, VideoLAN and dav1d authors
* Copyright © 2020, VideoLAN and librist authors
* Copyright © 2019-2020 SipRadius LLC
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#ifndef MSCVER_STDATOMIC_H_
#define MSCVER_STDATOMIC_H_
...
...
contrib/aes.c
View file @
1828f3aa
...
...
@@ -13,6 +13,13 @@
* http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf .
The CCM mode of operation is specified by NIST SP80-38 C, available at:
* http://csrc.nist.gov/publications/nistpubs/800-38C/SP800-38C_updated-July20_2007.pdf
*
* File copied from the project: https://github.com/B-Con/crypto-algorithms
* License (quoting from author's github project):
* This code is released into the public domain free of any restrictions. The author requests
* acknowledgement if the code is used, but does not require it. This code is provided free of any
* liability and without any quality claims by the author.
*
*********************************************************************/
#ifdef _MSC_VER
#pragma warning(disable: 4244)
...
...
contrib/aes.h
View file @
1828f3aa
...
...
@@ -4,6 +4,13 @@
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Defines the API for the corresponding AES implementation.
*
* File copied from the project: https://github.com/B-Con/crypto-algorithms
* License (quoting from author's github project):
* This code is released into the public domain free of any restrictions. The author requests
* acknowledgement if the code is used, but does not require it. This code is provided free of any
* liability and without any quality claims by the author.
*
*********************************************************************/
#ifndef AES_H
...
...
contrib/endian-shim.h
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
/* librist. Copyright
©
2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#ifndef __ENDIAN_SHIM_H
...
...
contrib/fastpbkdf2.c
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* Changes:
* - Removed SHA1 and SHA512 as the functions are not available
* - Moved to self hosted SHA254 instead of OpenSSL
*/
/*
* fast-pbkdf2 - Optimal PBKDF2-HMAC calculation
* Written in 2015 by Joseph Birr-Pixton <jpixton@gmail.com>
...
...
@@ -20,6 +11,14 @@
* along with this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
/* librist. Copyright © 2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* Changes:
* - Removed SHA1 and SHA512 as the functions are not available
* - Moved to self hosted SHA256 instead of OpenSSL
*/
#include
"fastpbkdf2.h"
...
...
contrib/fastpbkdf2.h
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* Note: Removed SHA1 and SHA512 as the functions are not available
*/
/*
* fastpbkdf2 - Faster PBKDF2-HMAC calculation
* Written in 2015 by Joseph Birr-Pixton <jpixton@gmail.com>
...
...
@@ -18,6 +11,12 @@
* along with this software. If not, see
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
/* librist. Copyright © 2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* Note: Removed SHA1 and SHA512 as the functions are not available
*/
#ifndef FASTPBKDF2_H
#define FASTPBKDF2_H
...
...
contrib/getopt-shim.c
View file @
1828f3aa
...
...
@@ -20,7 +20,7 @@
* Agency (DARPA) and Air Force Research Laboratory, Air Force
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
*/
/*
-
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
...
...
contrib/getopt-shim.h
View file @
1828f3aa
#if defined(_WIN32)
#ifndef __GETOPT_H__
/**
* DISCLAIMER
* This file has no copyright assigned and is placed in the Public Domain.
...
...
@@ -12,6 +9,9 @@
* warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#if defined(_WIN32)
#ifndef __GETOPT_H__
#define __GETOPT_H__
/* All the headers include this file. */
...
...
contrib/linux-crypto.c
View file @
1828f3aa
/* Copyright
(C)
2014
-
2019, Stephan Mueller <smueller@chronox.de>
* Copyright 2020 in2ip B.V.
* Linux Crypto API, based on libkcapi
/* Copyright
©
2014
-
2019, Stephan Mueller <smueller@chronox.de>
* Copyright
©
2020 in2ip B.V.
* Linux Crypto API, based on libkcapi
, relicensed to BSD-2 with author's permission
* Author: Stephan Mueller <smueller@chronox.de>
* Modified for librist by: Gijs Peskens <gijs@in2ip.nl>
* Modified for librist by: Sergio Ammirata <sergio@ammirata.net>
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#ifdef __linux
...
...
contrib/linux-crypto.h
View file @
1828f3aa
/* librist. Copyright 2020 in2ip B.V. All right reserved.
/* librist. Copyright
©
2020 in2ip B.V. All right reserved.
* Author: Gijs Peskens <gijs@in2ip.nl>
* Author: Sergio Ammirata <sergio@ammirata.net>
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#ifndef __LINUX_CRYPTO_H
...
...
contrib/pthread-shim.c
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
/* librist. Copyright
©
2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#include
"time-shim.h"
...
...
contrib/pthread-shim.h
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
/* librist. Copyright
©
2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#ifndef __PTHREAD_SHIM_H
...
...
contrib/sha256.c
View file @
1828f3aa
...
...
@@ -10,6 +10,13 @@
Algorithm specification can be found here:
* http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf
This implementation uses little endian byte order.
*
* File copied from the project: https://github.com/B-Con/crypto-algorithms
* License (quoting from author's github project):
* This code is released into the public domain free of any restrictions. The author requests
* acknowledgement if the code is used, but does not require it. This code is provided free of any
* liability and without any quality claims by the author.
*
*********************************************************************/
#ifdef _MSC_VER
#pragma warning(disable: 4244)
...
...
contrib/sha256.h
View file @
1828f3aa
...
...
@@ -4,6 +4,13 @@
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Defines the API for the corresponding SHA1 implementation.
*
* File copied from the project: https://github.com/B-Con/crypto-algorithms
* License (quoting from author's github project):
* This code is released into the public domain free of any restrictions. The author requests
* acknowledgement if the code is used, but does not require it. This code is provided free of any
* liability and without any quality claims by the author.
*
*********************************************************************/
#ifndef SHA256_H
...
...
contrib/socket-shim.h
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
/* librist. Copyright
©
2019 SipRadius LLC. All right reserved.
* Author: Kuldeep Singh Dhaka <kuldeep@madresistor.com>
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*/
...
...
contrib/srp.h
View file @
1828f3aa
#ifdef __cplusplus
extern
"C"
{
#endif
#include
<stddef.h>
/*
* Secure Remote Password 6a implementation based on mbedtls.
*
...
...
@@ -66,6 +62,11 @@ extern "C" {
* hash & prime number pairings.
*/
#ifdef __cplusplus
extern
"C"
{
#endif
#include
<stddef.h>
#ifndef SRP_H
#define SRP_H
...
...
contrib/stdio-shim.c
View file @
1828f3aa
/* librist. Copyright 2019 SipRadius LLC. All right reserved.
/* librist. Copyright
©
2019 SipRadius LLC. All right reserved.
* Author: Sergio Ammirata, Ph.D. <sergio@ammirata.net>
*
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*/
#include
"stdio-shim.h"
...
...
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment