SSL_pending(3) OpenSSL SSL_pending(3) NNAAMMEE SSL_pending - obtain number of readable bytes buffered in an SSL object SSYYNNOOPPSSIISS #include int SSL_pending(const SSL *ssl); DDEESSCCRRIIPPTTIIOONN _S_S_L___p_e_n_d_i_n_g_(_) returns the number of bytes which are available inside ssssll for immediate read. NNOOTTEESS Data are received in blocks from the peer. Therefore data can be buffered inside ssssll and are ready for immediate retrieval with _S_S_L___r_e_a_d(3). RREETTUURRNN VVAALLUUEESS The number of bytes pending is returned. BBUUGGSS _S_S_L___p_e_n_d_i_n_g_(_) takes into account only bytes from the TLS/SSL record that is currently being processed (if any). If the SSSSLL object's _r_e_a_d___a_h_e_a_d flag is set (see _S_S_L___C_T_X___s_e_t___r_e_a_d___a_h_e_a_d(3)), additional pro- tocol bytes may have been read containing more TLS/SSL records; these are ignored by _S_S_L___p_e_n_d_i_n_g_(_). Up to OpenSSL 0.9.6, _S_S_L___p_e_n_d_i_n_g_(_) does not check if the record type of pending data is application data. SSEEEE AALLSSOO _S_S_L___r_e_a_d(3), _S_S_L___C_T_X___s_e_t___r_e_a_d___a_h_e_a_d(3), _s_s_l(3) 1.0.2u 2019-12-20 SSL_pending(3)