Skip to content

Commit b1e7487

Browse files
committed
Store client extension in session on server
1 parent 2a1c579 commit b1e7487

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcurvecpr/lib/server_recv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ static int _handle_initiate (struct curvecpr_server *server, struct curvecpr_ses
171171
/* All good, we can go ahead and submit the client for registration. */
172172
s_new.their_session_nonce = curvecpr_bytes_unpack_uint64(p->nonce);
173173
curvecpr_bytes_copy(s_new.my_domain_name, p_box->server_domain_name, 256);
174+
curvecpr_bytes_copy(s_new.their_extension, p->client_extension, 16);
174175

175176
if (cf->ops.put_session(server, &s_new, priv, &s_new_stored))
176177
return -EINVAL; /* This can fail for a variety of reasons that are up to

0 commit comments

Comments
 (0)