Skip to content

Commit

Permalink
adding PRIVATE link for nlohmann::json to hpke
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hewett committed Jul 26, 2023
1 parent 04dd82b commit e1bee1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/hpke/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ file(GLOB_RECURSE LIB_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src

add_library(${CURRENT_LIB_NAME} ${LIB_HEADERS} ${LIB_SOURCES})
add_dependencies(${CURRENT_LIB_NAME} bytes tls_syntax)
target_link_libraries(${CURRENT_LIB_NAME} PRIVATE bytes tls_syntax OpenSSL::Crypto)
target_link_libraries(${CURRENT_LIB_NAME} PRIVATE bytes tls_syntax OpenSSL::Crypto nlohmann_json::nlohmann_json)
target_include_directories(${CURRENT_LIB_NAME}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down
6 changes: 4 additions & 2 deletions lib/hpke/src/signature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include <openssl/evp.h>
#include <openssl/rsa.h>

using namespace nlohmann;

namespace hpke {

struct GroupSignature : public Signature
Expand Down Expand Up @@ -113,7 +115,7 @@ struct GroupSignature : public Signature
{
bytes x;
bytes y;
nlohmann::json json_jwk;
json json_jwk;
json_jwk["crv"] = group.jwt_curve_name;
json_jwk["kty"] = group.jwt_key_type;

Expand All @@ -133,7 +135,7 @@ struct GroupSignature : public Signature
{
bytes x;
bytes y;
nlohmann::json json_jwk;
json json_jwk;
json_jwk["crv"] = group.jwt_curve_name;
json_jwk["kty"] = group.jwt_key_type;

Expand Down

0 comments on commit e1bee1d

Please sign in to comment.