aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/constants.h18
-rw-r--r--src/easydir.c18
-rw-r--r--src/easydir.h18
-rw-r--r--src/exec-cmd.h18
-rw-r--r--src/implementation.c18
-rw-r--r--src/implementation.h19
-rw-r--r--src/main.c29
-rw-r--r--src/r-gpgme.c18
-rw-r--r--src/r-gpgme.h18
-rw-r--r--src/tree.c18
-rw-r--r--src/tree.h18
-rw-r--r--src/xstd.c18
-rw-r--r--src/xstd.h18
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);
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) <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);
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) <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>
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) <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
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) <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>
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) <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);