Skip to content

Commit

Permalink
add copyright headers, with attribution for libdave and leb128 where …
Browse files Browse the repository at this point in the history
…required
  • Loading branch information
braindigitalis committed Oct 3, 2024
1 parent 020074a commit ff44013
Show file tree
Hide file tree
Showing 38 changed files with 919 additions and 5 deletions.
24 changes: 24 additions & 0 deletions src/dpp/dave/array_view.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <cassert>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/cipher_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#include "cipher_interface.h"
#include "openssl_aead_cipher.h"

Expand Down
26 changes: 25 additions & 1 deletion src/dpp/dave/cipher_interface.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
#pragma once
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <memory>

Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/clock.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <chrono>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/codec_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#include "codec_utils.h"

#include <cassert>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/codec_utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include "common.h"
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/common.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <array>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/cryptor_manager.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#include "cryptor_manager.h"

#include <limits>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/cryptor_manager.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <deque>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/decryptor.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#include "decryptor.h"

#include <bytes/bytes.h>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/decryptor.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <array>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/encryptor.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#include "encryptor.h"
#include <algorithm>
#include <cstring>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/encryptor.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#pragma once

#include <array>
Expand Down
24 changes: 24 additions & 0 deletions src/dpp/dave/frame_processors.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* 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.
*
* This folder is a modified fork of libdave, https://github.com/discord/libdave
* Copyright (c) 2024 Discord, Licensed under MIT
*
************************************************************************************/
#include "frame_processors.h"
#include <cassert>
#include <limits>
Expand Down
Loading

0 comments on commit ff44013

Please sign in to comment.