Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gareth Sylvester-Bradley <[email protected]>
  • Loading branch information
lo-simon and garethsb authored Mar 15, 2024
1 parent ee29040 commit 9811d68
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Development/nmos/jwk_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ namespace nmos
}
}
return utility::string_t{};
};
}

// convert RSA to JSON Web Key
web::json::value rsa_to_jwk(const EVP_PKEY_ptr& pkey, const utility::string_t& keyid, const jwk::public_key_use& pubkey_use, const jwk::algorithm& alg)
Expand Down Expand Up @@ -216,7 +216,6 @@ namespace nmos
{ U("alg"), alg.name },
{ U("use"), pubkey_use.name }
});
}
#else
BIGNUM* modulus = nullptr;
BIGNUM* exponent = nullptr;
Expand Down Expand Up @@ -244,8 +243,8 @@ namespace nmos
{ U("alg"), alg.name },
{ U("use"), pubkey_use.name }
});
}
#endif
}
}

// extract RSA public key from RSA private key
Expand Down

0 comments on commit 9811d68

Please sign in to comment.