Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Aug 21, 2023
1 parent 5408a66 commit 16e3fde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,8 @@ namespace jwt {

EVP_PKEY* pkey = NULL;

if (EVP_PKEY_fromdata_init(ctx.get()) < 0 || EVP_PKEY_fromdata(ctx.get(), &pkey, EVP_PKEY_KEYPAIR, params) < 0) {
if (EVP_PKEY_fromdata_init(ctx.get()) < 0 ||
EVP_PKEY_fromdata(ctx.get(), &pkey, EVP_PKEY_KEYPAIR, params) < 0) {
EVP_PKEY_free(pkey);
// EVP_PKEY_CTX_free(ctx);
OSSL_PARAM_free(params);
Expand Down Expand Up @@ -948,7 +949,7 @@ namespace jwt {
}

#if defined(JWT_OPENSSL_3_0)
// https://www.openssl.org/docs/man3.1/man3/PEM_write_bio_RSA_PUBKEY.html
// https://www.openssl.org/docs/man3.1/man3/PEM_write_bio_RSA_PUBKEY.html
if (PEM_write_bio_PUBKEY(pub_key_bio.get(), pkey) != 1) {
ec = error::rsa_error::convert_to_pem_failed;
return {};
Expand Down

0 comments on commit 16e3fde

Please sign in to comment.