aboutsummaryrefslogtreecommitdiff
path: root/include/libnpass
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-11 18:04:35 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-11 18:04:35 +0530
commitbfdad0baf319da3d3f6fb88736ba0f6454cc93d8 (patch)
treeaf84fb05857be21740fe5f01b27204da2e89dda0 /include/libnpass
parent68af029169b5303b678530763e7de30be89e56ff (diff)
c/format: init
Diffstat (limited to 'include/libnpass')
-rw-r--r--include/libnpass/gpg.h3
-rw-r--r--include/libnpass/libnpass.h8
2 files changed, 6 insertions, 5 deletions
diff --git a/include/libnpass/gpg.h b/include/libnpass/gpg.h
index f5053bf..752a0a7 100644
--- a/include/libnpass/gpg.h
+++ b/include/libnpass/gpg.h
@@ -1,6 +1,7 @@
-#include <stdio.h>
#include <sys/types.h>
+#include <stdio.h>
+
int gpg_key_validate(const char *fpr);
int gpg_decrypt(FILE *pass_out, const char *pass_path);
int gpg_encrypt(FILE *stream, const char *fpr, const char *pass, size_t n);
diff --git a/include/libnpass/libnpass.h b/include/libnpass/libnpass.h
index f1e3d74..d82de9c 100644
--- a/include/libnpass/libnpass.h
+++ b/include/libnpass/libnpass.h
@@ -1,8 +1,8 @@
-#include <stdio.h>
#include <dirent.h>
#include <linux/limits.h>
+#include <stdio.h>
-#define PASS_DEF_LEN 32
+#define PASS_DEF_LEN 32
typedef enum {
PASS_GEN_DIGIT = 0,
@@ -17,8 +17,8 @@ typedef enum {
} pass_store_t;
struct store {
- char name[NAME_MAX];
- pass_store_t type;
+ char name[NAME_MAX];
+ pass_store_t type;
};
DIR *openstore(const char *spath);