From ded8c49e4ba6bdefa885b087006740b9aea66c39 Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Thu, 2 Jan 2025 22:25:00 +0300 Subject: [PATCH] Add copyright notices youtubeUnblock becames bigger and copyright notices in each file will make it easier for anyone to do something over it. --- src/args.c | 19 +++++++++++++++++++ src/args.h | 19 +++++++++++++++++++ src/config.h | 19 +++++++++++++++++++ src/getopt.c | 24 ++++++++++++++++++++++++ src/kargs.c | 19 +++++++++++++++++++ src/kytunblock.c | 19 +++++++++++++++++++ src/logging.h | 19 +++++++++++++++++++ src/mangle.c | 19 +++++++++++++++++++ src/mangle.h | 19 +++++++++++++++++++ src/quic.c | 19 +++++++++++++++++++ src/quic.h | 19 +++++++++++++++++++ src/quic_crypto.c | 19 +++++++++++++++++++ src/tls.c | 19 +++++++++++++++++++ src/tls.h | 19 +++++++++++++++++++ src/types.h | 19 +++++++++++++++++++ src/utils.c | 19 +++++++++++++++++++ src/utils.h | 19 +++++++++++++++++++ src/youtubeUnblock.c | 19 +++++++++++++++++++ 18 files changed, 347 insertions(+) diff --git a/src/args.c b/src/args.c index b0cae9e..dd2f0fa 100644 --- a/src/args.c +++ b/src/args.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #include "config.h" #include "types.h" diff --git a/src/args.h b/src/args.h index 8c4e88f..8860dbd 100644 --- a/src/args.h +++ b/src/args.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef ARGS_H #define ARGS_H #include "types.h" diff --git a/src/config.h b/src/config.h index b0ba183..59796ad 100644 --- a/src/config.h +++ b/src/config.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef YTB_CONFIG_H #define YTB_CONFIG_H diff --git a/src/getopt.c b/src/getopt.c index 48e76e1..f778168 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -1,3 +1,27 @@ +/* + Copyright 2005-2014 Rich Felker, et al. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + + #include "types.h" #include "logging.h" #include "getopt.h" diff --git a/src/kargs.c b/src/kargs.c index 4b55553..de62e71 100644 --- a/src/kargs.c +++ b/src/kargs.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #include "config.h" #include "types.h" #include diff --git a/src/kytunblock.c b/src/kytunblock.c index 7d079c5..182ffdf 100644 --- a/src/kytunblock.c +++ b/src/kytunblock.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef KERNEL_SPACE #error "You are trying to compile the kernel module not in the kernel space" #endif diff --git a/src/logging.h b/src/logging.h index 31788e4..25c36f2 100644 --- a/src/logging.h +++ b/src/logging.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef LOGGING_H #define LOGGING_H #include "config.h" diff --git a/src/mangle.c b/src/mangle.c index e6ff45f..99f19e9 100644 --- a/src/mangle.c +++ b/src/mangle.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #define _GNU_SOURCE #include "types.h" // IWYU pragma: keep #include "mangle.h" diff --git a/src/mangle.h b/src/mangle.h index 0644d6c..f455edc 100644 --- a/src/mangle.h +++ b/src/mangle.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef YU_MANGLE_H #define YU_MANGLE_H diff --git a/src/quic.c b/src/quic.c index 870d70b..4ebaf4d 100644 --- a/src/quic.c +++ b/src/quic.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #include "quic.h" #include "tls.h" #include "logging.h" diff --git a/src/quic.h b/src/quic.h index 64a080f..88380e2 100644 --- a/src/quic.h +++ b/src/quic.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef QUIC_H #define QUIC_H #include "types.h" diff --git a/src/quic_crypto.c b/src/quic_crypto.c index adb0900..1b42526 100644 --- a/src/quic_crypto.c +++ b/src/quic_crypto.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #include "quic.h" #include "kdf/hkdf.h" #include "hash/sha256.h" diff --git a/src/tls.c b/src/tls.c index ed09fef..6b2772a 100644 --- a/src/tls.c +++ b/src/tls.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #include "types.h" #include "tls.h" #include "config.h" diff --git a/src/tls.h b/src/tls.h index 5cbd65b..12acb00 100644 --- a/src/tls.h +++ b/src/tls.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef TLS_H #define TLS_H diff --git a/src/types.h b/src/types.h index a8f8112..1f32ad9 100644 --- a/src/types.h +++ b/src/types.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #define _GNU_SOURCE #ifndef TYPES_H #define TYPES_H diff --git a/src/utils.c b/src/utils.c index ecb6af5..987ac97 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #include "utils.h" #include "logging.h" #include "types.h" diff --git a/src/utils.h b/src/utils.h index 439dbcd..a6eee29 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #ifndef UTILS_H #define UTILS_H diff --git a/src/youtubeUnblock.c b/src/youtubeUnblock.c index 0d7d662..a8bb876 100644 --- a/src/youtubeUnblock.c +++ b/src/youtubeUnblock.c @@ -1,3 +1,22 @@ +/* + youtubeUnblock - https://github.com/Waujito/youtubeUnblock + + Copyright (C) 2024-2025 Vadim Vetrov + + 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 3 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, see . +*/ + #define _GNU_SOURCE #ifndef __linux__ #error "The package is linux only!"