another writeLong

This commit is contained in:
zzz
2015-12-13 16:41:35 +00:00
parent db86850d15
commit 2155347e4f

View File

@ -176,7 +176,7 @@ public class Certificate extends DataStructureImpl {
if (_type < 0) throw new DataFormatException("Invalid certificate type: " + _type); if (_type < 0) throw new DataFormatException("Invalid certificate type: " + _type);
//if ((_type != 0) && (_payload == null)) throw new DataFormatException("Payload is required for non null type"); //if ((_type != 0) && (_payload == null)) throw new DataFormatException("Payload is required for non null type");
DataHelper.writeLong(out, 1, _type); out.write((byte) _type);
if (_payload != null) { if (_payload != null) {
DataHelper.writeLong(out, 2, _payload.length); DataHelper.writeLong(out, 2, _payload.length);
out.write(_payload); out.write(_payload);