Lines Matching refs:bvp
49 static int berval_from_file( const char *path, struct berval *bvp,
232 struct berval *bvp, int recognize_url_syntax, int always_try_file, in ldaptool_berval_from_ldif_value() argument
297 rc = berval_from_file( path, bvp, reporterrs ); in ldaptool_berval_from_ldif_value()
309 rc = berval_from_file( value, bvp, reporterrs ); in ldaptool_berval_from_ldif_value()
311 bvp->bv_len = vlen; in ldaptool_berval_from_ldif_value()
312 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { in ldaptool_berval_from_ldif_value()
316 SAFEMEMCPY( bvp->bv_val, value, vlen ); in ldaptool_berval_from_ldif_value()
317 bvp->bv_val[ vlen ] = '\0'; in ldaptool_berval_from_ldif_value()
360 berval_from_file( const char *path, struct berval *bvp, int reporterrs ) argument
385 bvp->bv_len = ftell( fp );
387 if (( bvp->bv_val = (char *)malloc( bvp->bv_len + 1 )) == NULL ) {
399 rlen = fread( bvp->bv_val, 1, bvp->bv_len, fp );
402 if ( rlen != (long)bvp->bv_len ) {
404 free( bvp->bv_val );
408 bvp->bv_val[ bvp->bv_len ] = '\0';