jwt-common: Call __setkey_check directly

Signed-off-by: Ben Collins <bcollins@libjwt.io>
This commit is contained in:
Ben Collins 2025-02-12 12:49:33 -05:00
parent 67cb474de0
commit e976cdbe3b
No known key found for this signature in database
GPG key ID: 5D5A57C7242B22CF

View file

@ -395,7 +395,7 @@ int FUNC(verify)(jwt_common_t *__cmd, const char *token)
}
/* Callback may have changed this */
if (FUNC(setkey)(__cmd, config.alg, config.key))
if (__setkey_check(__cmd, config.alg, config.key))
return 1;
jwt->key = config.key;