[docs]defproceed_response()->bytes:""" Proceed Stream message. Indicates that the TLS upgrade process has started. """elem=ET.Element("proceed",attrib={"xmlns":"urn:ietf:params:xml:ns:xmpp-tls"})returnET.tostring(elem)
[docs]classStartTLSFeature(ET.Element):""" STARTTLS Stream message. Indicates to the user that the server is ready for the TLS upgrade (handshake). """def__init__(self,tag:str="starttls",attrib:Dict[str,str]=None,required:bool=True,**extra:str)->None:default_attrib={"xmlns":"urn:ietf:params:xml:ns:xmpp-tls"}super().__init__(tag,attribordefault_attrib,**extra)ifrequired:self.append(ET.Element("required"))