mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
jwt_object API fixes
This commit is contained in:
parent
0751d033dc
commit
fc294cbc8a
7 changed files with 147 additions and 17 deletions
|
@ -70,6 +70,31 @@ verify_result_t HMACSign<Hasher>::verify(
|
|||
return { ret, ec };
|
||||
}
|
||||
|
||||
|
||||
template <typename Hasher>
|
||||
verify_result_t PEMSign<Hasher>::verify(
|
||||
const string_view key,
|
||||
const string_view head,
|
||||
const string_view jwt_sign)
|
||||
{
|
||||
/*
|
||||
* unsigned char *sig = NULL;
|
||||
* EVP_MD_CTX *mdctx = NULL;
|
||||
* ECDSA_SIG *ec_sig = NULL;
|
||||
* BIGNUM *ec_sig_r = NULL;
|
||||
* BIGNUM *ec_sig_s = NULL;
|
||||
* EVP_PKEY *pkey = NULL;
|
||||
* const EVP_MD *alg;
|
||||
* int type;
|
||||
* int pkey_type;
|
||||
* BIO *bufkey = NULL;
|
||||
* int ret = 0;
|
||||
* int slen;
|
||||
*/
|
||||
std::error_code ec{};
|
||||
return { true, ec };
|
||||
}
|
||||
|
||||
template <typename Hasher>
|
||||
EVP_PKEY* PEMSign<Hasher>::load_key(
|
||||
const string_view key,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue