LibJWT 3.2.0
The C JSON Web Token Library +JWK +JWKS
|
Enumerations | |
enum | jwt_crypto_provider_t { JWT_CRYPTO_OPS_NONE = 0 , JWT_CRYPTO_OPS_OPENSSL , JWT_CRYPTO_OPS_GNUTLS , JWT_CRYPTO_OPS_MBEDTLS , JWT_CRYPTO_OPS_ANY } |
Different providers for crypto operations. More... | |
Functions | |
const char * | jwt_get_crypto_ops (void) |
jwt_crypto_provider_t | jwt_get_crypto_ops_t (void) |
int | jwt_set_crypto_ops (const char *opname) |
int | jwt_set_crypto_ops_t (jwt_crypto_provider_t opname) |
int | jwt_crypto_ops_supports_jwk (void) |
Functions used to set and get which crypto operations are used
LibJWT supports several crypto libraries, mainly "openssl", "gnutls", and "mbedtls". By default, "openssl" is used.
Different providers for crypto operations.
Used to set or test the underlying cryptographic library provider.
int jwt_crypto_ops_supports_jwk | ( | void | ) |
Check if the current crypto operations support JWK usage
const char * jwt_get_crypto_ops | ( | void | ) |
Retrieve the name of the current crypto operations being used.
jwt_crypto_provider_t jwt_get_crypto_ops_t | ( | void | ) |
Retrieve the type of the current crypto operations being used.
int jwt_set_crypto_ops | ( | const char * | opname | ) |
Set the crypto operations to the named set.
The opname is one of the available operators in the compiled version of LibJWT. Most times, this is either "openssl" or "gnutls".
opname | the name of the crypto operation to set |
int jwt_set_crypto_ops_t | ( | jwt_crypto_provider_t | opname | ) |
Set the crypto operations to a jwt_crypto_provider_t type
The same as jwt_set_crypto_ops(), but uses the type as opname
opname | A valid jwt_crypto_provider_t type |