From afe816bd30495ac92bd1549c2a9a3bf3e4710594 Mon Sep 17 00:00:00 2001 From: night0721 Date: Wed, 25 Sep 2024 22:31:10 +0100 Subject: [PATCH] Move imports --- include/packet.h | 1 + include/util.h | 2 ++ include/{client => zen}/db.h | 0 include/{ => zen}/notification.h | 0 include/{client => zen}/ui.h | 0 include/{client => zen}/user.h | 0 include/{server/server.h => zmr/zmr.h} | 1 - 7 files changed, 3 insertions(+), 1 deletion(-) rename include/{client => zen}/db.h (100%) rename include/{ => zen}/notification.h (100%) rename include/{client => zen}/ui.h (100%) rename include/{client => zen}/user.h (100%) rename include/{server/server.h => zmr/zmr.h} (95%) diff --git a/include/packet.h b/include/packet.h index df2ca5e..9b68f99 100644 --- a/include/packet.h +++ b/include/packet.h @@ -54,6 +54,7 @@ #define MAX_DATA_LENGTH 8192 #define ADDRESS_SIZE MAX_NAME + 1 + 255 /* 1 for @, 255 for domain, defined in RFC 5321, Section 4.5.3.1.2 */ +#define CHALLENGE_SIZE 32 #define HASH_SIZE crypto_generichash_BYTES #define NONCE_SIZE crypto_box_NONCEBYTES /* 24 */ #define ADDITIONAL_SIZE crypto_box_MACBYTES /* 16 */ diff --git a/include/util.h b/include/util.h index 47a270b..c41a18a 100644 --- a/include/util.h +++ b/include/util.h @@ -1,6 +1,8 @@ #ifndef UTIL_H #define UTIL_H +#include + #define LOG_ERROR 1 #define LOG_INFO 2 diff --git a/include/client/db.h b/include/zen/db.h similarity index 100% rename from include/client/db.h rename to include/zen/db.h diff --git a/include/notification.h b/include/zen/notification.h similarity index 100% rename from include/notification.h rename to include/zen/notification.h diff --git a/include/client/ui.h b/include/zen/ui.h similarity index 100% rename from include/client/ui.h rename to include/zen/ui.h diff --git a/include/client/user.h b/include/zen/user.h similarity index 100% rename from include/client/user.h rename to include/zen/user.h diff --git a/include/server/server.h b/include/zmr/zmr.h similarity index 95% rename from include/server/server.h rename to include/zmr/zmr.h index cc57854..7fafc93 100644 --- a/include/server/server.h +++ b/include/zmr/zmr.h @@ -1,7 +1,6 @@ #ifndef SERVER_H_ #define SERVER_H_ -#define CHALLENGE_SIZE 32 #define MAX_CONNECTION_QUEUE 128 /* for listen() */ #define MAX_EVENTS 64 /* Max events can be returned simulataneouly by epoll */