From 0057bbd711faeb7b9f5bb58559704a2d535ac019 Mon Sep 17 00:00:00 2001 From: eeff <33566201+eeff@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:15:40 +0800 Subject: [PATCH] chore: export neu_jwt.h --- include/neuron/neuron.h | 1 + {src => include/neuron}/utils/neu_jwt.h | 0 src/utils/neu_jwt.c | 4 ++-- tests/jwt_test.cc | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) rename {src => include/neuron}/utils/neu_jwt.h (100%) diff --git a/include/neuron/neuron.h b/include/neuron/neuron.h index d163ae84..0bc4bd73 100644 --- a/include/neuron/neuron.h +++ b/include/neuron/neuron.h @@ -37,6 +37,7 @@ extern "C" { #include "utils/log.h" #include "utils/zlog.h" +#include "utils/neu_jwt.h" #include "utils/utarray.h" #include "utils/utextend.h" #include "utils/uthash.h" diff --git a/src/utils/neu_jwt.h b/include/neuron/utils/neu_jwt.h similarity index 100% rename from src/utils/neu_jwt.h rename to include/neuron/utils/neu_jwt.h diff --git a/src/utils/neu_jwt.c b/src/utils/neu_jwt.c index 431c9400..3b7de394 100644 --- a/src/utils/neu_jwt.c +++ b/src/utils/neu_jwt.c @@ -26,8 +26,8 @@ #include #include "errcodes.h" -#include "neu_jwt.h" #include "utils/log.h" +#include "utils/neu_jwt.h" struct public_key_store { struct { @@ -309,4 +309,4 @@ int neu_jwt_validate(char *b_token) void neu_jwt_destroy() { // memset(token_local, 0, sizeof(token_local)); -} \ No newline at end of file +} diff --git a/tests/jwt_test.cc b/tests/jwt_test.cc index da4e1c13..1015acbf 100644 --- a/tests/jwt_test.cc +++ b/tests/jwt_test.cc @@ -3,7 +3,7 @@ #include #include "jwt.h" -#include "neu_jwt.h" +#include "utils/neu_jwt.h" #include "utils/log.h" @@ -40,4 +40,4 @@ int main(int argc, char **argv) neuron = zlog_get_category("neuron"); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); -} \ No newline at end of file +}