int i;
ber_len_t len;
- assert( must_b64_encode );
- assert( name );
- assert( oid );
+ assert( must_b64_encode != NULL );
+ assert( name != NULL );
+ assert( oid != NULL );
len = strlen( name );
{
int i;
- assert( must_b64_encode );
+ assert( must_b64_encode != NULL );
if ( must_b64_encode == default_must_b64_encode ) {
return;
int i;
struct berval bv;
- assert( must_b64_encode );
- assert( s );
+ assert( must_b64_encode != NULL );
+ assert( s != NULL );
ber_str2bv( s, 0, 0, &bv );
LDIFFP *
ldif_open(
- char *file,
- char *mode
+ LDAP_CONST char *file,
+ LDAP_CONST char *mode
)
{
FILE *fp = fopen( file, mode );
lnew->fp = lfp->fp;
lfp->prev = lnew;
lfp->fp = fp2;
+ line[len] = '\n';
+ len++;
continue;
} else {
/* We failed to open the file, this should