Lines Matching refs:p
44 volatile unsigned char *p = v; while( n-- ) *p++ = 0; in mbedtls_zeroize() local
173 unsigned char *p = buf; in ssl_save_session() local
182 memcpy( p, session, sizeof( mbedtls_ssl_session ) ); in ssl_save_session()
183 p += sizeof( mbedtls_ssl_session ); in ssl_save_session()
195 *p++ = (unsigned char)( cert_len >> 16 & 0xFF ); in ssl_save_session()
196 *p++ = (unsigned char)( cert_len >> 8 & 0xFF ); in ssl_save_session()
197 *p++ = (unsigned char)( cert_len & 0xFF ); in ssl_save_session()
200 memcpy( p, session->peer_cert->raw.p, cert_len ); in ssl_save_session()
202 p += cert_len; in ssl_save_session()
205 *olen = p - buf; in ssl_save_session()
216 const unsigned char *p = buf; in ssl_load_session() local
222 if( p + sizeof( mbedtls_ssl_session ) > end ) in ssl_load_session()
225 memcpy( session, p, sizeof( mbedtls_ssl_session ) ); in ssl_load_session()
226 p += sizeof( mbedtls_ssl_session ); in ssl_load_session()
229 if( p + 3 > end ) in ssl_load_session()
232 cert_len = ( p[0] << 16 ) | ( p[1] << 8 ) | p[2]; in ssl_load_session()
233 p += 3; in ssl_load_session()
243 if( p + cert_len > end ) in ssl_load_session()
254 p, cert_len ) ) != 0 ) in ssl_load_session()
262 p += cert_len; in ssl_load_session()
266 if( p != end ) in ssl_load_session()