/** * Reads the next bytes as the DistinguishedNamesLength and writes them in * the message * * @param msg * Message to write in */ private void parseDistinguishedNamesLength(CertificateRequestMessage msg) { msg.setDistinguishedNamesLength(parseIntField(HandshakeByteLength.DISTINGUISHED_NAMES_LENGTH)); LOGGER.debug("DistinguishedNamesLength: " + msg.getDistinguishedNamesLength().getValue()); }
private void prepareDistinguishedNamesLength(CertificateRequestMessage msg) { msg.setDistinguishedNamesLength(msg.getDistinguishedNames().getValue().length); LOGGER.debug("DistinguishedNamesLength: " + msg.getDistinguishedNamesLength().getValue()); }