Skip to content
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

Troubles when introduce new extension on ClientHello #404

Closed
jaimesaez97 opened this issue May 14, 2020 · 1 comment
Closed

Troubles when introduce new extension on ClientHello #404

jaimesaez97 opened this issue May 14, 2020 · 1 comment
Labels

Comments

@jaimesaez97
Copy link

Hello.

I am trying to introduce a new APPLICATION_ID extension into ClientHello message.
I have added the extension QkdApplicationIdExtension into tlsextensions.py script, but I am getting an error when receiving ClientHello on server side.

  • In _handshakeClientAsyncHelper function, I call self._clientSendClientHello with an extra parameter: the QKD_ID that I want to introduce. Also, in settings I have introduced a new field called qkd_psk to carry the application ID.
  • In _clientSendClientHello function, the ClientHello message creation is performed in a correct way, but when the message is sent through _sendMsg something does not work correctly.
    • I think it is on buf = msg.write() statement.
  • In _handshakeServerAsyncHelper function, whene ClientHello is retrieved from _serverGetClientHello function, the message does not contains the QkdApplicationIdExtension.

I think the problem is in the message generation through a bytearray.

Could you help me?

Thank you very much.

@tomato42
Copy link
Member

does not work correctly.

  • I think it is on buf = msg.write() statement.

that would suggest serialisation being incomplete; every extension needs to inherit from TLSExtension and implement at least the extData property and parse method (either directly or through inheritance, as you can see in the example below

Could you help me?

without code it's hard to do, I'm also not familiar with this extension

there are multiple things that need to be updated to fully support an extension

the closest thing to help I can offer is suggest to look at PR #338, more specifically commits e7de0ff, 82b2cf2, 82bba8b, and b3f8928 there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants