Skip to content

Commit

Permalink
Use GUARD_PTR for EVP_PKEY_CTX_get_keygen_info
Browse files Browse the repository at this point in the history
Co-authored-by: Sean McGrail <[email protected]>
  • Loading branch information
samuel40791765 and skmcgrail authored Oct 4, 2024
1 parent a6bd437 commit cac0b8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/fipsmodule/evp/evp_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ void *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) {
}

int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx) {
GUARD_PTR(ctx);
if (idx == -1) {
return EVP_PKEY_CTX_KEYGEN_INFO_COUNT;
}
Expand Down

0 comments on commit cac0b8c

Please sign in to comment.