Skip to content

Commit

Permalink
fix(common): clang-cl needs a const_cast<> (#13891)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryan authored Mar 29, 2024
1 parent 8127f36 commit ad732b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ StatusOr<std::vector<BYTE>> EncodeRsaPkcs8PrivateKey(
absl::Span<BYTE const> pkcs1_encoded, std::string const& source) {
CRYPT_PRIVATE_KEY_INFO private_key_info;
private_key_info.Version = 0;
private_key_info.Algorithm.pszObjId = szOID_RSA_RSA;
private_key_info.Algorithm.pszObjId = const_cast<LPSTR>(szOID_RSA_RSA);
private_key_info.Algorithm.Parameters.cbData = 0;
private_key_info.Algorithm.Parameters.pbData = nullptr;
private_key_info.PrivateKey.cbData = static_cast<DWORD>(pkcs1_encoded.size());
Expand Down

0 comments on commit ad732b2

Please sign in to comment.