New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reformat M_check_autoarg to match our coding style #2121
Conversation
} \ | ||
} | ||
if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \ | ||
size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line after decls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
if (pksize == 0) { \ | ||
EVPerr(err, EVP_R_INVALID_KEY); /*ckerr_ignore*/ \ | ||
return 0; \ | ||
} else if (!arg) { \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the else after return. since this is all inside an if() statement, it's still one statement.
and in the else-if below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point.
I think I've fixed what you asked, @richsalz . Please re-review. |
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from #2121)
Merged. Thanks |
Checklist
Description of change