Home
last modified time | relevance | path

Searched refs:unused_bytes_size (Results 1 – 5 of 5) sorted by relevance

/external/grpc-grpc/src/core/tsi/
Dfake_transport_security.cc493 size_t unused_bytes_size; member
527 *bytes_size = result->unused_bytes_size; in fake_handshaker_result_get_unused_bytes()
548 const unsigned char* unused_bytes, size_t unused_bytes_size, in fake_handshaker_result_create() argument
550 if ((unused_bytes_size > 0 && unused_bytes == nullptr) || in fake_handshaker_result_create()
557 if (unused_bytes_size > 0) { in fake_handshaker_result_create()
559 static_cast<unsigned char*>(gpr_malloc(unused_bytes_size)); in fake_handshaker_result_create()
560 memcpy(result->unused_bytes, unused_bytes, unused_bytes_size); in fake_handshaker_result_create()
562 result->unused_bytes_size = unused_bytes_size; in fake_handshaker_result_create()
716 size_t unused_bytes_size = received_bytes_size - consumed_bytes_size; in fake_handshaker_next() local
717 if (unused_bytes_size > 0) { in fake_handshaker_next()
[all …]
Dssl_transport_security.cc121 size_t unused_bytes_size; member
1113 *bytes_size = impl->unused_bytes_size; in ssl_handshaker_result_get_unused_bytes()
1137 size_t unused_bytes_size, tsi_handshaker_result** handshaker_result) { in ssl_handshaker_result_create() argument
1139 (unused_bytes_size > 0 && unused_bytes == nullptr)) { in ssl_handshaker_result_create()
1150 if (unused_bytes_size > 0) { in ssl_handshaker_result_create()
1152 static_cast<unsigned char*>(gpr_malloc(unused_bytes_size)); in ssl_handshaker_result_create()
1153 memcpy(result->unused_bytes, unused_bytes, unused_bytes_size); in ssl_handshaker_result_create()
1155 result->unused_bytes_size = unused_bytes_size; in ssl_handshaker_result_create()
1287 size_t unused_bytes_size = received_bytes_size - bytes_consumed; in ssl_handshaker_next() local
1289 unused_bytes_size == 0 ? nullptr : received_bytes + bytes_consumed; in ssl_handshaker_next()
[all …]
/external/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_tsi_handshaker.cc64 size_t unused_bytes_size; member
172 *bytes_size = result->unused_bytes_size; in handshaker_result_get_unused_bytes()
396 result->unused_bytes_size = GRPC_SLICE_LENGTH(*recv_bytes) - bytes_consumed; in set_unused_bytes()
398 static_cast<unsigned char*>(gpr_zalloc(result->unused_bytes_size)); in set_unused_bytes()
401 result->unused_bytes_size); in set_unused_bytes()
/external/grpc-grpc/src/core/lib/security/transport/
Dsecurity_handshaker.cc180 size_t unused_bytes_size = 0; in on_peer_checked_inner() local
182 h->handshaker_result, &unused_bytes, &unused_bytes_size); in on_peer_checked_inner()
184 if (unused_bytes_size > 0) { in on_peer_checked_inner()
186 grpc_slice_from_copied_buffer((char*)unused_bytes, unused_bytes_size); in on_peer_checked_inner()
/external/grpc-grpc/test/core/tsi/alts/handshaker/
Dalts_tsi_handshaker_test.cc206 size_t unused_bytes_size = 0; in on_client_start_success_cb() local
208 &unused_bytes_size) == in on_client_start_success_cb()
233 size_t unused_bytes_size = 0; in on_server_start_success_cb() local
235 &unused_bytes_size) == in on_server_start_success_cb()