Lines Matching refs:olen
204 size_t olen; in on_header_value() local
209 ret = base64_encode(str, sizeof(str) - 1, &olen, in on_header_value()
242 size_t olen; in websocket_connect() local
287 &olen, sec_accept_key, in websocket_connect()
297 if ((olen + sizeof("Sec-Websocket-Key: ") + 2) > sizeof(sec_ws_key)) { in websocket_connect()
299 olen + sizeof("Sec-Websocket-Key: ") + 2, in websocket_connect()
305 memcpy(sec_ws_key + sizeof("Sec-Websocket-Key: ") - 1 + olen, in websocket_connect()
337 key_len = MIN(sizeof(key_accept) - 1, olen); in websocket_connect()
341 olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1); in websocket_connect()
342 strncpy(key_accept + key_len, WS_MAGIC, olen); in websocket_connect()
345 mbedtls_sha1(key_accept, olen + key_len, sec_accept_key); in websocket_connect()