LibJWT Dev
The C JSON Web Token Library +JWK +JWKS
|
Typedefs | |
typedef struct jwt | jwt_t |
< | |
Enumerations | |
enum | jwt_alg_t { JWT_ALG_NONE , JWT_ALG_HS256 , JWT_ALG_HS384 , JWT_ALG_HS512 , JWT_ALG_RS256 , JWT_ALG_RS384 , JWT_ALG_RS512 , JWT_ALG_ES256 , JWT_ALG_ES384 , JWT_ALG_ES512 , JWT_ALG_PS256 , JWT_ALG_PS384 , JWT_ALG_PS512 , JWT_ALG_ES256K , JWT_ALG_EDDSA , JWT_ALG_INVAL } |
JWT algorithm types. More... | |
Functions | |
int | jwt_new (jwt_t **jwt) |
Allocate a new, empty, JWT object. | |
void | jwt_free (jwt_t *jwt) |
Free a JWT object and any other resources it is using. | |
jwt_t * | jwt_dup (jwt_t *jwt) |
Duplicate an existing JWT object. | |
Functions used to create and destroy JWT objects.
typedef struct jwt jwt_t |
<
Opaque JWT object
This object is used throughout the JWT functions.
enum jwt_alg_t |
JWT algorithm types.
These are the supported algorithm types for LibJWT.
Duplicate an existing JWT object.
Copies all grants and algorithm specific bits to a new JWT object.
jwt | Pointer to a JWT object. |
void jwt_free | ( | jwt_t * | jwt | ) |
Free a JWT object and any other resources it is using.
After calling, the JWT object referenced will no longer be valid and its memory will be freed.
jwt | Pointer to a JWT object previously created object |
int jwt_new | ( | jwt_t ** | jwt | ) |
Allocate a new, empty, JWT object.
This is used to create a new object that would be passed to one of the Encoding and Output functions once setup.
jwt | Pointer to a JWT object pointer. Will be allocated on success. |