Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
jwt_builder Struct Reference

JWT data tracking. More...

#include <jwt.h>

Data Fields

char * base
 The base of the buffer we are writing to.
 
char * buf
 The place in this buffer where we are currently writing.
 
size_t len
 The remaining free space in buf.
 
bool overflowed
 Flag that is set if we try to write past the end of the buffer.
 
unsigned char wip [3]
 
int pending
 

Detailed Description

JWT data tracking.

JSON Web Tokens contain several sections, each encoded in Base64URL. This structure tracks the token as it is being built, including limits on the amount of available space. It should be initialized with jwt_init_builder().

Field Documentation

◆ base

char* jwt_builder::base

The base of the buffer we are writing to.

◆ buf

char* jwt_builder::buf

The place in this buffer where we are currently writing.

◆ len

size_t jwt_builder::len

The remaining free space in buf.

◆ overflowed

bool jwt_builder::overflowed

Flag that is set if we try to write past the end of the buffer.

If set, the token is not valid.

◆ pending

int jwt_builder::pending

◆ wip

unsigned char jwt_builder::wip[3]

The documentation for this struct was generated from the following file: