From 791acae6546f6c366cb79a1beddf917a7a3d41c4 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 28 Feb 2021 11:37:26 +0000 Subject: change license --- src/constants.h | 18 ++++++++++++++++++ src/easydir.c | 18 ++++++++++++++++++ src/easydir.h | 18 ++++++++++++++++++ src/exec-cmd.h | 18 ++++++++++++++++++ src/implementation.c | 18 ++++++++++++++++++ src/implementation.h | 19 ++++++++++++++++++- src/main.c | 29 +++++++++++++++++++++-------- src/r-gpgme.c | 18 ++++++++++++++++++ src/r-gpgme.h | 18 ++++++++++++++++++ src/tree.c | 18 ++++++++++++++++++ src/tree.h | 18 ++++++++++++++++++ src/xstd.c | 18 ++++++++++++++++++ src/xstd.h | 18 ++++++++++++++++++ 13 files changed, 237 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/constants.h b/src/constants.h index 5eb4153..22c18c2 100644 --- a/src/constants.h +++ b/src/constants.h @@ -1,6 +1,24 @@ #ifndef LPASS_CONSTANTS_H #define LPASS_CONSTANTS_H +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 VERSION "1.0c" #define DATE_RELEASE "14 January, 2021" diff --git a/src/easydir.c b/src/easydir.c index 18f6ec8..c94b944 100644 --- a/src/easydir.c +++ b/src/easydir.c @@ -1,3 +1,21 @@ +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 #include #include diff --git a/src/easydir.h b/src/easydir.h index 06a2109..cfd4494 100644 --- a/src/easydir.h +++ b/src/easydir.h @@ -1,6 +1,24 @@ #ifndef EASYDIR_H #define EASYDIR_H +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 . +***/ + enum status_file { F_ISFILE, F_NOEXIST, diff --git a/src/exec-cmd.h b/src/exec-cmd.h index 69efd54..34e25c2 100644 --- a/src/exec-cmd.h +++ b/src/exec-cmd.h @@ -1,6 +1,24 @@ #ifndef LPASS_EXECCMD_H #define LPASS_EXECCMD_H +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 . +***/ + int cmd_showtree(int argc, char *argv[]); int cmd_init(int argc, char *argv[]); int cmd_insert(int argc, char *argv[]); diff --git a/src/implementation.c b/src/implementation.c index 48dacac..fb279fc 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -1,3 +1,21 @@ +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 #include #include diff --git a/src/implementation.h b/src/implementation.h index f0343f2..1dcd884 100644 --- a/src/implementation.h +++ b/src/implementation.h @@ -1,8 +1,25 @@ #ifndef IMPLEMENTATION_H #define IMPLEMENTATION_H -#define GPG_PUBLICKEY_MAXLENGTH 1024 +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 GPG_PUBLICKEY_MAXLENGTH 1024 void copy_outside(char *password); int check_sneaky_paths(const char *path); diff --git a/src/main.c b/src/main.c index 4e250b3..47438c9 100644 --- a/src/main.c +++ b/src/main.c @@ -1,9 +1,20 @@ -/* -** Code written by Joursoir -** -** This is free and unencumbered software released into the public domain. -** (C) The Unlicense -*/ +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 #include @@ -385,8 +396,10 @@ int cmd_version(int argc, char *argv[]) { printf("LockPassword v%s\n" "Release date: %s\n\n" - "Code was written by Joursoir\n" - "This is free and unencumbered software released into the public domain.\n\n", + "Copyright (C) 2020-2021 Aleksandr D. Goncharov\n" + "License: GNU GPL version 3\n" + "This is free software: you are free to change and redistribute it.\n" + "This program comes with ABSOLUTELY NO WARRANTY.\n", VERSION, DATE_RELEASE); return 0; } diff --git a/src/r-gpgme.c b/src/r-gpgme.c index f4e2b92..a13a62a 100644 --- a/src/r-gpgme.c +++ b/src/r-gpgme.c @@ -1,3 +1,21 @@ +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 #include #include diff --git a/src/r-gpgme.h b/src/r-gpgme.h index 7a5a4ab..03e1fc0 100644 --- a/src/r-gpgme.h +++ b/src/r-gpgme.h @@ -1,6 +1,24 @@ #ifndef LPASS_RGPGME_H #define LPASS_RGPGME_H +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 . +***/ + int ecnrypt_data(const char *path, const char *data, const char *pubkey); char *decrypt_data(const char *path); diff --git a/src/tree.c b/src/tree.c index 1a746b2..9c654d2 100644 --- a/src/tree.c +++ b/src/tree.c @@ -1,3 +1,21 @@ +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 #include #include diff --git a/src/tree.h b/src/tree.h index 548d254..39fbf22 100644 --- a/src/tree.h +++ b/src/tree.h @@ -1,6 +1,24 @@ #ifndef LPASS_TREE_H #define LPASS_TREE_H +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 . +***/ + int tree(const char *path, const char *prefix); #endif /* LPASS_TREE_H */ \ No newline at end of file diff --git a/src/xstd.c b/src/xstd.c index 5669e8f..db82c75 100644 --- a/src/xstd.c +++ b/src/xstd.c @@ -1,3 +1,21 @@ +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 #include #include diff --git a/src/xstd.h b/src/xstd.h index 5432390..0511433 100644 --- a/src/xstd.h +++ b/src/xstd.h @@ -1,6 +1,24 @@ #ifndef LPASS_XSTD_H #define LPASS_XSTD_H +/*** + This file is part of LockPassword + Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) + + 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 . +***/ + void easyFork(char *name, char *arguments[]); void callError(int num); void printError(const char *text); -- cgit v1.2.3-18-g5258