<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 29, 2019 at 10:16 AM Viktor Dukhovni <<a href="mailto:openssl-users@dukhovni.org">openssl-users@dukhovni.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Nov 28, 2019 at 04:31:38PM -0800, J Decker wrote:<br>
<br>
> from openssl/tls1.h 1.1.1b<br>
> <br>
> # define TLSEXT_TYPE_psk_kex_modes               45<br>
<br>
This was added in 1.1.1-dev.<br>
<br>
> pre_shared_key(41), psk_key_exchange_modes(45), are what the names should be<br>
> based on, and that OpenSSL's definition is also inaccurate<br>
><br>
>  TLSEXT_TYPE_psk_kex_modes<br>
>  TLSEXT_TYPE_psk<br>
><br>
> instead of 'pre_shared_key' and 'key_exchange_modes'<br>
<br>
The TLS RFCs do not define an API, they only define a wire protocol.<br>
<br>
Implementations are free to use whatever names they see fit for the various RFC<br>
code-points.  OpenSSL chose to abbreviate "key_exchange" to "kex" and<br>
"pre_shared_key" to "psk".  The LibreSSL maintainers are free to make their own<br>
choices.<br></blockquote><div><br></div><div>Well; since they are the clone of the original, they're not exactly 'free' to make choices; there are constraints issued by consumers of their libraries (me) that they should be compatible.  So; Their argument for name choice is 'RFC' , I thought 'understandable easily' but making it the same as the RFC allows one to search for information on what that extension might be.  Looking for 'psk' and 'kex' doesn't lead to related information very well, which is an argument that OpenSSL should also provide alternate names which align better with other information about such names...</div><div><br></div><div>I looked a while to find those symbols when I initially ran into this issue; and psk just kept coming back to openssl headers/docs which themselves don't give very good information about the block.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
    Viktor.<br>
</blockquote></div></div>