diff options
author | Ian Moffett <ian@osmora.org> | 2024-09-29 22:34:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-09-29 22:34:07 -0400 |
commit | 788b1308e86320882245159540ef0a489209bcf1 (patch) | |
tree | 411168712c5ea02e7d818ad4ea178c8160e7a406 | |
parent | 6107a37ae0f8ad89ab6d2d36f93cc0d47f8bb47a (diff) |
libostp: session: Use DIAGNOSTIC
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | lib/include/libostp/session.h | 2 | ||||
-rw-r--r-- | lib/libostp/session.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/include/libostp/session.h b/lib/include/libostp/session.h index 591ac0e..397fa68 100644 --- a/lib/include/libostp/session.h +++ b/lib/include/libostp/session.h @@ -32,8 +32,6 @@ #include <stdint.h> -#define LIBOSTP_DEBUG 1 - struct ostp_session { unsigned char *session_key; int sockfd; diff --git a/lib/libostp/session.c b/lib/libostp/session.c index 4bc6fb4..e3f1fd9 100644 --- a/lib/libostp/session.c +++ b/lib/libostp/session.c @@ -32,6 +32,7 @@ #include <net/param.h> #include <crypto/ecdh.h> #include <defs.h> +#include <otconfig.h> #include <arpa/inet.h> #include <termios.h> #include <stdint.h> @@ -41,7 +42,7 @@ #define OSTP_PORT 5352 -#if LIBOSTP_DEBUG +#if DIAGNOSTIC #define LOG(...) printf("libostp: %s", __VA_ARGS__) #else #define LOG(...) (void)0 |