| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | package xmpp | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"encoding/xml" | 
					
						
							| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	"dev.sum7.eu/genofire/yaja/xmpp/base" | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | // StreamFeatures implements RFC 6120 - A.1 Stream Namespace
 | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | type StreamFeatures struct { | 
					
						
							| 
									
										
										
										
											2018-02-15 20:56:04 +01:00
										 |  |  | 	XMLName     xml.Name `xml:"http://etherx.jabber.org/streams features"` | 
					
						
							|  |  |  | 	StartTLS    *TLSStartTLS | 
					
						
							| 
									
										
										
										
											2018-02-22 03:12:07 +01:00
										 |  |  | 	Mechanisms  SASLMechanisms      // RFC 6120: A.4 SASL Namespace (see sasl.go)
 | 
					
						
							| 
									
										
										
										
											2018-02-15 20:56:04 +01:00
										 |  |  | 	Compression *CompressionFeature // XEP-0138: Stream Compression (see compression.go)
 | 
					
						
							|  |  |  | 	Bind        *Bind | 
					
						
							|  |  |  | 	Session     bool | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | // TLSStartTLS implements RFC 6120 - A.3 StartTLS Namespace
 | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | type TLSStartTLS struct { | 
					
						
							|  |  |  | 	XMLName  xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls starttls"` | 
					
						
							| 
									
										
										
										
											2018-02-16 08:29:35 +01:00
										 |  |  | 	Required string   `xml:"required,omitempty"` | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | // TLSProceed implements RFC 6120 - A.3 StartTLS Namespace
 | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | type TLSProceed struct { | 
					
						
							|  |  |  | 	XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls proceed"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | // TLSFailure implements RFC 6120 - A.3 StartTLS Namespace
 | 
					
						
							| 
									
										
										
										
											2018-02-13 20:05:18 +01:00
										 |  |  | type TLSFailure struct { | 
					
						
							|  |  |  | 	XMLName xml.Name `xml:"urn:ietf:params:xml:ns:xmpp-tls failure"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-22 03:12:07 +01:00
										 |  |  | // Bind implements RFC 6120 - A.7  Resource binding namespace
 | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | type Bind struct { | 
					
						
							| 
									
										
										
										
											2018-02-14 18:49:26 +01:00
										 |  |  | 	XMLName  xml.Name      `xml:"urn:ietf:params:xml:ns:xmpp-bind bind"` | 
					
						
							|  |  |  | 	Resource string        `xml:"resource"` | 
					
						
							|  |  |  | 	JID      *xmppbase.JID `xml:"jid"` | 
					
						
							| 
									
										
										
										
											2018-02-07 19:32:11 +01:00
										 |  |  | } |