Lines Matching refs:extension
38 * ClientHello and ServerHello messages. The extension mechanism and
47 * . ExtensionType: an enum style class for the extension type
53 * . ServerNameExtension: the server_name extension.
54 * . SignatureAlgorithmsExtension: the signature_algorithms extension.
55 * . SupportedEllipticCurvesExtension: the ECC supported curves extension.
57 * (compressed/uncompressed) extension.
79 HelloExtension extension;
81 extension = new ServerNameExtension(s, extlen);
83 extension = new SignatureAlgorithmsExtension(s, extlen);
85 extension = new SupportedEllipticCurvesExtension(s, extlen);
87 extension =
90 extension = new RenegotiationInfoExtension(s, extlen);
92 extension = new UnknownExtension(s, extlen, extType);
94 extensions.add(extension);
238 // Length of the encoded extension, including the type and length fields
271 return "Unsupported extension " + type + ", data: " +
279 * include an extension of type "server_name" in the (extended) client hello.
280 * The "extension_data" field of this extension SHALL contain "ServerNameList"
330 // We only need to add "server_name" extension in ClientHello unless
345 if (len >= 2) { // "server_name" extension in ClientHello
349 "Invalid " + type + " extension");
361 } else if (len == 0) { // "server_name" extension in ServerHello
367 throw new SSLProtocolException("Invalid server_name extension");
435 // the extension value to send in the ClientHello message
472 throw new SSLProtocolException("Invalid " + type + " extension");
685 * For secure renegotiation, RFC5746 defines a new TLS extension,
686 * "renegotiation_info" (with extension type 0xff01), which contains a
688 * which the renegotiation is being performed. The "extension data"
689 * field of this extension contains a "RenegotiationInfo" structure:
722 // check the extension length
724 throw new SSLProtocolException("Invalid " + type + " extension");
729 throw new SSLProtocolException("Invalid " + type + " extension");
739 // Length of the encoded extension, including the type and length fields
767 * [RFC5246] The client uses the "signature_algorithms" extension to
770 * extension contains a "supported_signature_algorithms" value.
809 throw new SSLProtocolException("Invalid " + type + " extension");
826 throw new SSLProtocolException("Invalid server_name extension");