summaryrefslogtreecommitdiffstats
path: root/src/handshake.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-25 03:39:56 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-25 03:39:56 +0200
commit6785e06f2b062616d190b043a18fd40826b21043 (patch)
tree5a7930b1d74715aa32e10a317f818804399fce76 /src/handshake.c
parent8c193693d7d0b5b118cf2831eeef15e28ee9851e (diff)
downloadfastd-6785e06f2b062616d190b043a18fd40826b21043.tar
fastd-6785e06f2b062616d190b043a18fd40826b21043.zip
handshake: simplify fastd_handshake_new_reply
This will hopefully lead to an async verify implementation...
Diffstat (limited to 'src/handshake.c')
-rw-r--r--src/handshake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handshake.c b/src/handshake.c
index 2cb6cc3..d0d6016 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -143,8 +143,8 @@ fastd_buffer_t fastd_handshake_new_init(size_t tail_space) {
return new_handshake(1, NULL, !conf.secure_handshakes, tail_space);
}
-fastd_buffer_t fastd_handshake_new_reply(const fastd_handshake_t *handshake, const fastd_method_info_t *method, bool with_method_list, size_t tail_space) {
- fastd_buffer_t buffer = new_handshake(handshake->type+1, method, with_method_list, tail_space);
+fastd_buffer_t fastd_handshake_new_reply(uint8_t type, const fastd_method_info_t *method, bool with_method_list, size_t tail_space) {
+ fastd_buffer_t buffer = new_handshake(type, method, with_method_list, tail_space);
fastd_handshake_add_uint8(&buffer, RECORD_REPLY_CODE, 0);
return buffer;
}