Closed martialln closed 3 months ago
@Lukasa thanks for your feedback.
I agree with you that deprecating the current API and proposing a new one is better on the long term but I was not confortable proposing it directly :)
I will rework the PR in that direction.
Hello @Lukasa I finally took some time to rework this MR.
I followed your guidance to deprecate the old properties and create new ones replacing the parameters by a struct so we may add more information later without breaking the API if necessary.
Let me know how it looks to you.
Thanks
Thank you for the feedbacks @Lukasa I have applied your suggestions.
@swift-server-bot test this please
Thank you for your contribution!
Thank you for your patience and your reviews
Hello,
As I was trying to implement some HTTP calls using
async-http-client
and TLS-PSK authentication, I realised that my server was not sending any PSK hint.The actual implementation of the clientPSKCallback makes the server psk hint mandatory. Similarly the implementation of the serverPSKCallback makes the server hint mandatory.
Reading RFC4279 it seems that on the opposite the server psk hint should be provided only on application that mandate it.
I made this PR to provide an empty string to the callbacks in the case the server doesn't provide one. Providing an optional might be a better solution in term of semantic but it would break the API.