Lines Matching refs:buf
208 ber_get_stringb( BerElement *ber, char *buf, unsigned int *len )
220 if ( ber_read( ber, buf, datalen ) != datalen )
223 buf[datalen] = '\0';
228 transbuf = buf;
238 (void) SAFEMEMCPY( buf, transbuf, datalen );
249 ber_get_stringa( BerElement *ber, char **buf )
256 if ( (*buf = (char *) malloc( (size_t)datalen + 1 )) == NULL )
259 if ( ber_read( ber, *buf, datalen ) != datalen )
261 (*buf)[datalen] = '\0';
267 if ( (*(ber->ber_decode_translate_proc))( buf, &datalen, 1 )
269 free( *buf );
314 ber_get_bitstringa( BerElement *ber, char **buf, unsigned int *blen )
323 if ( (*buf = (char *) malloc( (size_t)datalen )) == NULL )
329 if ( ber_read( ber, *buf, datalen ) != datalen )