Lines Matching refs:cert_len
172 size_t cert_len; in ssl_save_session() local
184 cert_len = 0; in ssl_save_session()
186 cert_len = session->peer_cert->raw.len; in ssl_save_session()
188 if( left < 3 + cert_len ) in ssl_save_session()
191 *p++ = (unsigned char)( ( cert_len >> 16 ) & 0xFF ); in ssl_save_session()
192 *p++ = (unsigned char)( ( cert_len >> 8 ) & 0xFF ); in ssl_save_session()
193 *p++ = (unsigned char)( ( cert_len ) & 0xFF ); in ssl_save_session()
196 memcpy( p, session->peer_cert->raw.p, cert_len ); in ssl_save_session()
198 p += cert_len; in ssl_save_session()
215 size_t cert_len; in ssl_load_session() local
228 cert_len = ( p[0] << 16 ) | ( p[1] << 8 ) | p[2]; in ssl_load_session()
231 if( cert_len == 0 ) in ssl_load_session()
239 if( cert_len > (size_t)( end - p ) ) in ssl_load_session()
250 p, cert_len ) ) != 0 ) in ssl_load_session()
258 p += cert_len; in ssl_load_session()