Displaying 1 result from an estimated 1 matches for "client_ack".
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...back(&reply, token4, auth_request->conn);
+
+ auth->phase = 2;
+
+ return TRUE;
+}
+
+static int
+mech_rpa_auth_phase3(struct auth_request *auth_request,
+ const unsigned char *data, size_t data_size,
+ mech_callback_t *callback __attr_unused__)
+{
+ static const unsigned char client_ack[3] = { 0x60, 0x01, 0x00 };
+ int ret = TRUE;
+
+ if ((data_size != sizeof(client_ack)) ||
+ (memcmp(data, client_ack, sizeof(client_ack)) != 0)) {
+ if (verbose)
+ i_info("rpa(%s): invalid token 5 or client rejects us",
+ get_log_prefix(auth_request));
+ ret = FALSE;
+ }...