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

External PSK mode #321

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/picotls.h
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,13 @@ typedef struct st_ptls_handshake_properties_t {
* an optional callback that reports the extensions being collected
*/
int (*collected_extensions)(ptls_t *tls, struct st_ptls_handshake_properties_t *properties, ptls_raw_extension_t *extensions);
/**
* [optional] if set, the endpoints negotiate using the provided pre-shared key
*/
struct st_ptls_external_psk_t {
ptls_iovec_t identity;
ptls_iovec_t key;
} pre_shared_key;
} ptls_handshake_properties_t;
#ifdef _WINDOWS
#pragma warning(pop)
Expand Down
Loading