Skip to content

Commit

Permalink
src: add default value for RSACipherConfig mode field
Browse files Browse the repository at this point in the history
Using default init of enum is UB
Refs: #56693
  • Loading branch information
wooffie committed Jan 24, 2025
1 parent e55b02b commit ad7495f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_rsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct RSAKeyExportTraits final {
using RSAKeyExportJob = KeyExportJob<RSAKeyExportTraits>;

struct RSACipherConfig final : public MemoryRetainer {
CryptoJobMode mode;
CryptoJobMode mode = kCryptoJobAsync;
ByteSource label;
int padding = 0;
const EVP_MD* digest = nullptr;
Expand Down

0 comments on commit ad7495f

Please sign in to comment.