Lines Matching refs:serial
89 mbedtls_x509_buf *serial ) in mbedtls_x509_get_serial() argument
102 serial->tag = *(*p)++; in mbedtls_x509_get_serial()
104 if( ( ret = mbedtls_asn1_get_len( p, end, &serial->len ) ) != 0 ) in mbedtls_x509_get_serial()
107 serial->p = *p; in mbedtls_x509_get_serial()
108 *p += serial->len; in mbedtls_x509_get_serial()
769 int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial ) in mbedtls_x509_serial_gets() argument
778 nr = ( serial->len <= 32 ) in mbedtls_x509_serial_gets()
779 ? serial->len : 28; in mbedtls_x509_serial_gets()
783 if( i == 0 && nr > 1 && serial->p[i] == 0x0 ) in mbedtls_x509_serial_gets()
787 serial->p[i], ( i < nr - 1 ) ? ":" : "" ); in mbedtls_x509_serial_gets()
791 if( nr != serial->len ) in mbedtls_x509_serial_gets()