Skip to content

Commit

Permalink
Missing salt define (#165)
Browse files Browse the repository at this point in the history
old versions of openssl do not have define for default PSS salt, so manually use -1
  • Loading branch information
DmitriyMusatkin committed Oct 12, 2023
1 parent 0db9df8 commit b0219ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/unix/openssl_rsa.c
Expand Up @@ -209,8 +209,8 @@ static int s_set_signature_ctx_from_algo(EVP_PKEY_CTX *ctx, enum aws_rsa_signatu
return AWS_OP_ERR;
}

#if defined(OPENSSL_IS_BORINGSSL)
int saltlen = -1; /* RSA_PSS_SALTLEN_DIGEST not defined in BoringSSL */
#if defined(OPENSSL_IS_BORINGSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L
int saltlen = -1; /* RSA_PSS_SALTLEN_DIGEST not defined in BoringSSL and old versions of openssl */
#else
int saltlen = RSA_PSS_SALTLEN_DIGEST;
#endif
Expand Down

0 comments on commit b0219ca

Please sign in to comment.