diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/constants.h | 18 | ||||
| -rw-r--r-- | src/easydir.c | 18 | ||||
| -rw-r--r-- | src/easydir.h | 18 | ||||
| -rw-r--r-- | src/exec-cmd.h | 18 | ||||
| -rw-r--r-- | src/implementation.c | 18 | ||||
| -rw-r--r-- | src/implementation.h | 19 | ||||
| -rw-r--r-- | src/main.c | 29 | ||||
| -rw-r--r-- | src/r-gpgme.c | 18 | ||||
| -rw-r--r-- | src/r-gpgme.h | 18 | ||||
| -rw-r--r-- | src/tree.c | 18 | ||||
| -rw-r--r-- | src/tree.h | 18 | ||||
| -rw-r--r-- | src/xstd.c | 18 | ||||
| -rw-r--r-- | src/xstd.h | 18 | 
13 files changed, 237 insertions, 9 deletions
| 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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  #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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  #include <stdio.h>  #include <stdlib.h>  #include <string.h> 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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  #include <stdio.h>  #include <stdlib.h>  #include <libgen.h> 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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ + +#define GPG_PUBLICKEY_MAXLENGTH 1024  void copy_outside(char *password);  int check_sneaky_paths(const char *path); @@ -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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/  #include <stdio.h>  #include <stdlib.h> @@ -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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  #include <stdio.h>  #include <stdlib.h>  #include <string.h> 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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  int ecnrypt_data(const char *path, const char *data, const char *pubkey);  char *decrypt_data(const char *path); @@ -1,3 +1,21 @@ +/*** +	This file is part of LockPassword +	Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  #include <stdlib.h>  #include <stdio.h>  #include <string.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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  int tree(const char *path, const char *prefix);  #endif /* LPASS_TREE_H */
\ No newline at end of file @@ -1,3 +1,21 @@ +/*** +	This file is part of LockPassword +	Copyright (C) 2020-2021 Aleksandr D. Goncharov (Joursoir) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  #include <stdio.h>  #include <stdlib.h>  #include <unistd.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) <chat@joursoir.net> + +	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 <https://www.gnu.org/licenses/>. +***/ +  void easyFork(char *name, char *arguments[]);  void callError(int num);  void printError(const char *text); | 
