The code to deal with multi-byte tags in ber_get_next is byte-order dependent, it will only work on a Big-Endian platform. It seems to me that this code shouldn't even be here since the only valid tag at this point is 0x30. Any opinions? -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support