Lines Matching refs:flattened
892 lws_jws_write_flattened_json(struct lws_jws *jws, char *flattened, size_t len) in lws_jws_write_flattened_json() argument
899 n += (unsigned int)lws_snprintf(flattened + n, len - n , "{\"payload\": \""); in lws_jws_write_flattened_json()
900 lws_strnncpy(flattened + n, jws->map_b64.buf[LJWS_PYLD], in lws_jws_write_flattened_json()
902 n = n + strlen(flattened + n); in lws_jws_write_flattened_json()
904 n += (unsigned int)lws_snprintf(flattened + n, len - n , "\",\n \"protected\": \""); in lws_jws_write_flattened_json()
905 lws_strnncpy(flattened + n, jws->map_b64.buf[LJWS_JOSE], in lws_jws_write_flattened_json()
907 n = n + strlen(flattened + n); in lws_jws_write_flattened_json()
910 n += (unsigned int)lws_snprintf(flattened + n, len - n , "\",\n \"header\": "); in lws_jws_write_flattened_json()
911 lws_strnncpy(flattened + n, jws->map_b64.buf[LJWS_UHDR], in lws_jws_write_flattened_json()
913 n = n + strlen(flattened + n); in lws_jws_write_flattened_json()
916 n += (unsigned int)lws_snprintf(flattened + n, len - n , "\",\n \"signature\": \""); in lws_jws_write_flattened_json()
917 lws_strnncpy(flattened + n, jws->map_b64.buf[LJWS_SIG], in lws_jws_write_flattened_json()
919 n = n + strlen(flattened + n); in lws_jws_write_flattened_json()
921 n += (unsigned int)lws_snprintf(flattened + n, len - n , "\"}\n"); in lws_jws_write_flattened_json()