if ( ber_read( ber, (char *) &netlen + diff, noctets )
!= noctets )
return( LBER_DEFAULT );
- *len = NTOHL( netlen );
+ *len = AC_NTOHL( netlen );
} else {
*len = lc;
}
*(p+i) = (char) 0xff;
}
}
- *num = NTOHL( netnum );
+ *num = AC_NTOHL( netnum );
return( len );
}
taglen = ber_calc_taglen( tag );
- ntag = HTONL( tag );
+ ntag = AC_HTONL( tag );
return( ber_write( ber, ((char *) &ntag) + sizeof(long) - taglen,
taglen, nosos ) );
*/
if ( len <= 127 ) {
- netlen = HTONL( len );
+ netlen = AC_HTONL( len );
return( ber_write( ber, (char *) &netlen + sizeof(long) - 1,
1, nosos ) );
}
return( -1 );
/* write the length itself */
- netlen = HTONL( len );
+ netlen = AC_HTONL( len );
if ( ber_write( ber, (char *) &netlen + (sizeof(long) - i), i, nosos )
!= i )
return( -1 );
if ( (lenlen = ber_put_len( ber, len, 0 )) == -1 )
return( -1 );
i++;
- netnum = HTONL( num );
+ netnum = AC_HTONL( num );
if ( ber_write( ber, (char *) &netnum + (sizeof(long) - i), i, 0 )
!= i )
return( -1 );
*/
len = (*sos)->sos_clen;
- netlen = HTONL( len );
+ netlen = AC_HTONL( len );
if ( sizeof(long) > 4 && len > 0xFFFFFFFFL )
return( -1 );
/* the tag */
taglen = ber_calc_taglen( (*sos)->sos_tag );
- ntag = HTONL( (*sos)->sos_tag );
+ ntag = AC_HTONL( (*sos)->sos_tag );
SAFEMEMCPY( (*sos)->sos_first, (char *) &ntag +
sizeof(long) - taglen, taglen );