Move extension data into sub-structs#2052
Move extension data into sub-structs#2052richsalz wants to merge 5 commits intoopenssl:masterfrom richsalz:shorter-field-names
Conversation
|
IIRC, some of these fields have different semantics for client vs. server SSL{,_CTX} objects. (tlsext_hostname is one that comes to mind, though there is also a field of that name in SSL_SESSION just to make things extra confusing, so maybe I am misremembering.) Do we want to differentiate the semantics based on field name, and if so is this the right place to make such a change? |
|
I am reluctant to tease apart re-used field names here, as this is strictly just textual renaming. |
|
Sounds good; keeping the scope limited is fine by me. |
levitte
left a comment
There was a problem hiding this comment.
Quick review. I will get back to this next week if needed.
util/libssl.num
Outdated
util/libssl.num
Outdated
|
Frankly, I'm hesitant about the renaming of global functions. Our code style guide says this in "Chapter 4: Naming": |
|
ABI compatibility ? |
|
I guess I got the ABI backwards, make the newname an alias to the old name. Will fix, tnx @FdaSilvaYY. Nobody calls the TLS extension anything other than ALPN and NPN, @levitte |
|
updated commit pushed. |
|
@richsalz, I just realised that a function rename like this is an ABI change (not addition). Therefore, this is 1.2.0 material as it currently stands. |
|
yes, i fixed that. |
|
Never mind, now I see that the rename / alias thing has been reversed |
|
It would be nice if you rebased onto a fresher master |
|
rebased and push'd |
|
ping @levitte post-Jan 1 :) |
Add option ExpectedTmpKeyType to test the temporary key the server sends is of the correct type. Reviewed-by: Kurt Roeckx <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #2191)
Reviewed-by: Kurt Roeckx <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #2191)
ssl/s3_lib.c
Outdated
There was a problem hiding this comment.
Probably should adjust the indentation on this line
There was a problem hiding this comment.
yes. and also fixed it in ssl_locl.h
ssl/ssl_sess.c
Outdated
mattcaswell
left a comment
There was a problem hiding this comment.
Yawn! This all looks very straight forward...a big search and replace job mainly! A couple of minor review comments above. Assuming those get fixed: +1
mattcaswell
left a comment
There was a problem hiding this comment.
Oh...I take that back. Just spotted that travis and appveyor are failing for this PR...that needs sorting first.
|
added commit and rebased/pushed. let's see if travis works now... |
|
ping @mattcaswell -- travis and appveyor passed. |
|
thanks. |
Reviewed-by: Matt Caswell <[email protected]> (Merged from #2052)
Reviewed-by: Matt Caswell <[email protected]> (Merged from #2052)
Reviewed-by: Matt Caswell <[email protected]> (Merged from #2052)
So instead of tlsext_hostname, for example, you have ext.hostname. It ensures that all extension stuff is at least grouped together. And shorter more consistent names for some things. Lists end in plural and have a matching
_lenelement. ALPN and NPN are spelled with four or three letters, not next_proto and next_protos, inconsistently. And so on.