Move imports

This commit is contained in:
Night Kaly 2024-09-25 22:31:10 +01:00
parent 3788480b43
commit afe816bd30
Signed by: night0721
GPG key ID: 957D67B8DB7A119B
7 changed files with 3 additions and 1 deletions

View file

@ -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 */

View file

@ -1,6 +1,8 @@
#ifndef UTIL_H
#define UTIL_H
#include <stdlib.h>
#define LOG_ERROR 1
#define LOG_INFO 2

View file

@ -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 */