Lines Matching full:token

106 	const char token[] = "token";  in ZTEST()  local
115 strlen(token), token, in ZTEST()
132 zassert_equal(cpkt.hdr_len, COAP_FIXED_HEADER_SIZE + strlen(token), in ZTEST()
224 const uint8_t token[8]; in ZTEST() local
243 zassert_equal(cpkt.hdr_len, COAP_FIXED_HEADER_SIZE + strlen("token"), in ZTEST()
265 tkl = coap_header_get_token(&cpkt, (uint8_t *)token); in ZTEST()
267 zassert_equal(tkl, 5U, "Token length doesn't match reference"); in ZTEST()
268 zassert_mem_equal(token, "token", tkl, in ZTEST()
269 "Token value doesn't match the reference"); in ZTEST()
493 const char token[] = "token"; in prepare_block1_request() local
511 COAP_TYPE_CON, strlen(token), in prepare_block1_request()
512 token, COAP_METHOD_POST, in prepare_block1_request()
542 uint8_t token[8]; in prepare_block1_response() local
557 tkl = coap_header_get_token(req, token); in prepare_block1_response()
560 COAP_TYPE_ACK, tkl, token, in prepare_block1_response()
637 const char token[] = "token"; in prepare_block2_request() local
650 COAP_TYPE_CON, strlen(token), in prepare_block2_request()
651 token, COAP_METHOD_GET, in prepare_block2_request()
665 uint8_t token[8]; in prepare_block2_response() local
683 tkl = coap_header_get_token(req, token); in prepare_block2_response()
686 COAP_TYPE_ACK, tkl, token, in prepare_block2_response()
865 uint8_t token[8]; in server_resource_1_get() local
876 tkl = coap_header_get_token(request, (uint8_t *) token); in server_resource_1_get()
883 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in server_resource_1_get()
966 const char token[] = "token"; in ZTEST() local
976 strlen(token), token, in ZTEST()
1052 static const char token[] = "token"; in ZTEST() local
1057 strlen(token), token, COAP_METHOD_POST, 0x1234); in ZTEST()
1148 static const char token[] = "token"; in ZTEST() local
1157 strlen(token), token, COAP_METHOD_POST, 0x1234); in ZTEST()
1300 static const char token[] = "token"; in init_basic_test_msg() local
1311 strlen(token), token, COAP_METHOD_POST, 0x1234); in init_basic_test_msg()
1448 static const char token[] = "token"; in ZTEST() local
1456 strlen(token), token, COAP_METHOD_POST, 0x1234); in ZTEST()
1585 static const char token[] = "token"; in ZTEST() local
1590 strlen(token), token, COAP_METHOD_POST, 0x1234); in ZTEST()
1860 uint8_t token[COAP_TOKEN_MAX_LEN]; member
1879 { .id = 101, .token = { 1, 2, 3, 4 }, .tkl = 4, .reply = reply_cb }, in ZTEST()
1882 /* #0 Piggybacked ACK, empty token */ in ZTEST()
1885 /* #1 Piggybacked ACK, matching token */ in ZTEST()
1887 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 4 }, in ZTEST()
1889 /* #2 Piggybacked ACK, token mismatch */ in ZTEST()
1891 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 3 }, in ZTEST()
1893 /* #3 Piggybacked ACK, token mismatch 2 */ in ZTEST()
1895 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 4 }, in ZTEST()
1897 /* #4 Piggybacked ACK, token mismatch 3 */ in ZTEST()
1899 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3 }, in ZTEST()
1901 /* #5 Piggybacked ACK, token mismatch 4 */ in ZTEST()
1906 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 4 }, in ZTEST()
1908 /* #7 Separate reply, empty token */ in ZTEST()
1911 /* #8 Separate reply, matching token 1 */ in ZTEST()
1913 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 4 }, in ZTEST()
1915 /* #9 Separate reply, matching token 2 */ in ZTEST()
1917 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 4 }, in ZTEST()
1919 /* #10 Separate reply, token mismatch */ in ZTEST()
1921 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 3 }, in ZTEST()
1923 /* #11 Separate reply, token mismatch 2 */ in ZTEST()
1925 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3, 3 }, in ZTEST()
1927 /* #12 Separate reply, token mismatch 3 */ in ZTEST()
1929 .code = COAP_RESPONSE_CODE_CONTENT, .token = { 1, 2, 3 }, in ZTEST()
1931 /* #13 Request, empty token */ in ZTEST()
1934 /* #14 Request, matching token */ in ZTEST()
1936 .code = COAP_METHOD_GET, .token = { 1, 2, 3, 4 }, .tkl = 4 }, in ZTEST()
1962 response->type, response->tkl, response->token, in ZTEST()