LibJWT Dev
The C JSON Web Token Library +JWK +JWKS
|
Functions used to set and get which crypto operations are used More...
Enumerations | |
enum | jwt_crypto_provider_t { JWT_CRYPTO_OPS_NONE , JWT_CRYPTO_OPS_OPENSSL , JWT_CRYPTO_OPS_GNUTLS , JWT_CRYPTO_OPS_MBEDTLS } |
Different providers for crypto operations. More... | |
Functions | |
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. | |
int | jwt_set_crypto_ops_t (jwt_crypto_provider_t opname) |
Set the crypto operations to a jwt_crypto_provider_t type. | |
int | jwt_crypto_ops_supports_jwk (void) |
Check if the current crypto operations support JWK usage. | |
Functions used to set and get which crypto operations are used
LibJWT supports several crypto libaries, mainly "openssl" and "gnutls". By default, if enabled, "openssl" is used.
Different providers for crypto operations.
Used to set or test the underlying cryptographic library provider.
Enumerator | |
---|---|
JWT_CRYPTO_OPS_NONE | Used for error handling. |
JWT_CRYPTO_OPS_OPENSSL | OpenSSL Library. |
JWT_CRYPTO_OPS_GNUTLS | GnuTLS Library. |
JWT_CRYPTO_OPS_MBEDTLS | MBedTLS embedded library. |
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 |