Conversation
93a822a to
6c95224
Compare
kaduk
left a comment
There was a problem hiding this comment.
There are several preprocessor statements that are longer than 80 columns, but since it is not always possible to handle those nicely I did not look at them too closely.
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
A style pass over ssl.h might reasonably be expected to normalize on one of ') (' or ')(' in function typedefs.
#2279 (comment) is perhaps in support of the latter (no space), but we've really been all over the place.
There was a problem hiding this comment.
I would remove the space.
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
better fixed with a typedef on call_proc type.
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
Most of these deprecated version-specific methods have their comment extend past the 80th column
There was a problem hiding this comment.
Not the most prominent style issue.
include/openssl/ssl.h
Outdated
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
Need an typedef on callback type to fully fix it ; in a next PR...
include/openssl/ssl.h
Outdated
|
I was just trying to push attention on the various nits in this file. |
|
I couldn't push anything without an OMC code review. And this seems sufficiently non-urgent that continuing when you get back should be okay. |
richsalz
left a comment
There was a problem hiding this comment.
Do we need docs for the new typedefs?
Are the "convert to function typedefs" deliberately only partly done?
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
I would remove the space.
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
and remove the spaces between the function name and the param lists here, and below, as well.
There was a problem hiding this comment.
Too much too fix ;)
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
all those function typedefs, and there isn't one here? :)
There was a problem hiding this comment.
I start these kind of changes on my git repo, as draft for a next PR.
1d86007 to
c9a3354
Compare
c9a3354 to
365279e
Compare
d76a38b to
bf7dc77
Compare
30263a8 to
3ab0412
Compare
3ab0412 to
f63280a
Compare
f63280a to
fe21872
Compare
fe21872 to
8038ed3
Compare
|
Fixed and rebased to current master. |
|
I'm not sure how much sense it makes to take a style change that is making changes to idioms not yet codified in the style guide (e.g., no space between return-type parens and function-arg parens for function typedefs). So maybe this should move to post-1.1.1? |
Okay, that is extremely funny given that I am the one who asked for the change in the first place. I guess I should look at the rest of the changes now |
kaduk
left a comment
There was a problem hiding this comment.
Just one nit left that I see.
include/openssl/ssl.h
Outdated
| int op, int bits, int nid, | ||
| void *other, void *ex)); | ||
| int (*SSL_get_security_callback(const SSL *s)) (const SSL *s, const SSL_CTX * | ||
| ctx, int op, int bits, int nid, |
There was a problem hiding this comment.
The ctx and its * should be adjacent, with no space or newline separating them.
include/openssl/ssl.h
Outdated
| const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx); | ||
|
|
||
| # endif /* OPENSSL_NO_CT */ | ||
| # endif /* OPENSSL_NO_CT */ |
There was a problem hiding this comment.
This seems to be the only comment on #endif in the file; I almost wonder if it is "more consistent" with the current style to remove it than to reindent it.
There was a problem hiding this comment.
This change comes from the openssl-format-source tool. I don't know the reason/rule behind it.
There was a problem hiding this comment.
@kaduk: I will be glad to remove it, if you say so.
On the other side, I'm for having this kind of comment when the length of this block exceeds the height of the screen ;)
I rebase these changes on a fresh master .
There was a problem hiding this comment.
I think the comment should remain. I don't know why the tool reindented it. I think it looks better without the reindentation.
There was a problem hiding this comment.
Fixed and rebased to last master.
796b21f to
e3ea549
Compare
e3ea549 to
1002a0a
Compare
|
@kaduk any more comments? |
|
I probably won't get a chance to look again this week; let me dismiss my review at least for now. |
Additional changes intended to address my comments were made.
|
@kaduk any more comments, or this PR is good to go with its two approvals ? |
1002a0a to
18ab167
Compare
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
We can nestle the *ctx with no space between
include/openssl/ssl.h
Outdated
There was a problem hiding this comment.
I forget if the tooling complains if we nestle these together as int (*cb)(const
There was a problem hiding this comment.
I don't remember, I keep the original style; will be fixed later with a few typedef's function-pointer .
fix some indents, and restrict to 80 cols some lines.
18ab167 to
6fb13c9
Compare
|
(reconfirm +1) |
|
Ping @richsalz , @mattcaswell : little nudge for reconfirming and merge ;) |
|
@mattcaswell you want to reconfirm, and possibly merge? |
|
Ping @richsalz , @mattcaswell this looks like it is lost in the limbo ? ;) |
|
@mattcaswell or @kaduk should merge (I try to avoid overlap with co-workers). |
|
Sorry for the delay. Pushed now. Thanks. |
fix some indents, and restrict to 80 cols some lines. Reviewed-by: Ben Kaduk <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #4466)
fix some indents, and restrict to 80 cols some lines.
split from #4457 .
Checklist