summaryrefslogtreecommitdiff
path: root/src/shared.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-01-21 17:01:03 -0600
committer@syxhe <https://t.me/syxhe>2025-01-21 17:01:03 -0600
commit5d3068832c6094cf3b3ffce89d2398134e939b1f (patch)
treef23dc5597a1bfe76b2748f6762d09ff97f05141f /src/shared.h
parentb15ffbc1e51f913d6ab1cfa345a06eecfc098405 (diff)
Write some sample code to encrypt a file via password
Diffstat (limited to 'src/shared.h')
-rw-r--r--src/shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared.h b/src/shared.h
index dce02fc..3602a4e 100644
--- a/src/shared.h
+++ b/src/shared.h
@@ -20,4 +20,6 @@ void* xreallocarray(void *ptr, size_t nmemb, size_t size);
20// Read the entire contents of a file descriptor into a malloc()'ed buffer 20// Read the entire contents of a file descriptor into a malloc()'ed buffer
21int readwholebuffer(char **str, unsigned long int initsize, int fd); 21int readwholebuffer(char **str, unsigned long int initsize, int fd);
22 22
23int writewholebuffer(int fd, const unsigned char *buf, int len);
24
23#endif \ No newline at end of file 25#endif \ No newline at end of file