Skip to content

Commit 9e12dcc

Browse files
committed
Add l8w8jwt component
1 parent 9e9a935 commit 9e12dcc

File tree

18 files changed

+833
-1
lines changed

18 files changed

+833
-1
lines changed

.build-test-rules.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ catch2/examples/catch2-console:
4242
disable:
4343
- if: IDF_VERSION_MAJOR < 5
4444
reason: Example relies on WHOLE_ARCHIVE component property which was introduced in IDF v5.0
45+
46+
l8w8jwt/examples/es256:
47+
enable:
48+
- if: IDF_VERSION_MAJOR > 4
49+
reason: Supported only on IDF versions with Mbed TLS v3.x

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ body:
3636
- jsmn
3737
- json_generator
3838
- json_parser
39+
- l8w8jwt
3940
- led_strip
4041
- libsodium
4142
- nghttp

.github/workflows/upload_component.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
json_generator;
5252
json_parser;
5353
led_strip;
54+
l8w8jwt;
5455
libsodium;
5556
nghttp;
5657
onewire_bus;

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@
5757
[submodule "catch2/Catch2"]
5858
path = catch2/Catch2
5959
url = https://github.com/catchorg/Catch2.git
60+
[submodule "l8w8jwt/l8w8jwt"]
61+
path = l8w8jwt/l8w8jwt
62+
url = https://github.com/GlitchedPolygons/l8w8jwt.git

l8w8jwt/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
idf_component_register(SRCS "l8w8jwt/src/base64.c"
2+
"l8w8jwt/src/claim.c"
3+
"l8w8jwt/src/decode.c"
4+
"l8w8jwt/src/encode.c"
5+
"l8w8jwt/src/util.c"
6+
"l8w8jwt/src/version.c"
7+
INCLUDE_DIRS "l8w8jwt/include"
8+
PRIV_INCLUDE_DIRS "port/private_include"
9+
PRIV_REQUIRES "mbedtls"
10+
)
11+
12+
set_source_files_properties("l8w8jwt/src/encode.c" "l8w8jwt/src/decode.c"
13+
PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized")
14+
15+
target_compile_options(${COMPONENT_LIB} PRIVATE "-DL8W8JWT_SMALL_STACK=1" "-DL8W8JWT_ENABLE_EDDSA=0")

l8w8jwt/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
l8w8jwt/LICENSE

l8w8jwt/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
l8w8jwt/README.md
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# The following lines of boilerplate have to be in your project's
2+
# CMakeLists in this exact order for cmake to work correctly
3+
cmake_minimum_required(VERSION 3.16)
4+
5+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
6+
project(es256)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
idf_component_register(SRCS "main.c"
2+
INCLUDE_DIRS "")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## IDF Component Manager Manifest File
2+
version: "1.0.0"
3+
description: l8w8jwt Example
4+
dependencies:
5+
idf: ">=5.0"
6+
espressif/l8w8jwt:
7+
version: '>=2.2.1'
8+
override_path: '../../../'

0 commit comments

Comments
 (0)