Home | History | Annotate | Download | only in conscrypt

Lines Matching defs:protocol

351     static byte[] toProtocolBytes(String protocol) {
352 if (protocol == null) {
355 return protocol.getBytes(US_ASCII);
360 * @param protocols the encoded protocol list
375 "Protocol has invalid length (" + protocolLength + " at position " + i
401 * @return the encoded form of the protocol list.
417 String protocol = protocols[i];
418 if (protocol == null) {
419 throw new IllegalArgumentException("protocol[" + i + "] is null");
427 "protocol[" + i + "] has invalid length: " + protocolLength);
430 // Include a 1-byte prefix for each protocol.
436 String protocol = protocols[i];
437 protocol.length();
442 char c = protocol.charAt(ci);
445 throw new IllegalArgumentException("Protocol contains invalid character: "
446 + c + "(protocol=" + protocol + ")");