Remove (usually) useless comments in examples about OpenFire and how to verify a certificate.
This commit is contained in:
parent
6175cbcd99
commit
882f984b26
21 changed files with 0 additions and 160 deletions
|
@ -171,13 +171,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
||||||
xmpp.register_plugin('xep_0199', {'keepalive': True, 'frequency':15})
|
xmpp.register_plugin('xep_0199', {'keepalive': True, 'frequency':15})
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -177,13 +177,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0004') # Data Forms
|
xmpp.register_plugin('xep_0004') # Data Forms
|
||||||
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -145,13 +145,6 @@ if __name__ == '__main__':
|
||||||
xmpp = AdminCommands(opts.jid, opts.password, opts.command)
|
xmpp = AdminCommands(opts.jid, opts.password, opts.command)
|
||||||
xmpp.register_plugin('xep_0133') # Service Administration
|
xmpp.register_plugin('xep_0133') # Service Administration
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -135,13 +135,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
||||||
xmpp.register_plugin('xep_0199', {'keepalive': True, 'frequency':15})
|
xmpp.register_plugin('xep_0199', {'keepalive': True, 'frequency':15})
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -142,13 +142,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0004') # Data Forms
|
xmpp.register_plugin('xep_0004') # Data Forms
|
||||||
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
xmpp.register_plugin('xep_0050') # Adhoc Commands
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -171,13 +171,6 @@ if __name__ == '__main__':
|
||||||
# Setup the Disco browser.
|
# Setup the Disco browser.
|
||||||
xmpp = Disco(opts.jid, opts.password, args[1], args[2], args[0])
|
xmpp = Disco(opts.jid, opts.password, args[1], args[2], args[0])
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -151,13 +151,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0153')
|
xmpp.register_plugin('xep_0153')
|
||||||
xmpp.register_plugin('xep_0084')
|
xmpp.register_plugin('xep_0084')
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -111,26 +111,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0060') # PubSub
|
xmpp.register_plugin('xep_0060') # PubSub
|
||||||
xmpp.register_plugin('xep_0199') # XMPP Ping
|
xmpp.register_plugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
# If you are connecting to Facebook and wish to use the
|
|
||||||
# X-FACEBOOK-PLATFORM authentication mechanism, you will need
|
|
||||||
# your API key and an access token. Then you'll set:
|
|
||||||
# xmpp.credentials['api_key'] = 'THE_API_KEY'
|
|
||||||
# xmpp.credentials['access_token'] = 'THE_ACCESS_TOKEN'
|
|
||||||
|
|
||||||
# If you are connecting to MSN, then you will need an
|
|
||||||
# access token, and it does not matter what JID you
|
|
||||||
# specify other than that the domain is 'messenger.live.com',
|
|
||||||
# so '_@messenger.live.com' will work. You can specify
|
|
||||||
# the access token as so:
|
|
||||||
# xmpp.credentials['access_token'] = 'THE_ACCESS_TOKEN'
|
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -131,13 +131,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0060') # PubSub
|
xmpp.register_plugin('xep_0060') # PubSub
|
||||||
xmpp.register_plugin('xep_0199') # XMPP Ping
|
xmpp.register_plugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -114,13 +114,6 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
xmpp = IBBReceiver(opts.jid, opts.password)
|
xmpp = IBBReceiver(opts.jid, opts.password)
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -112,13 +112,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0060') # PubSub
|
xmpp.register_plugin('xep_0060') # PubSub
|
||||||
xmpp.register_plugin('xep_0199') # XMPP Ping
|
xmpp.register_plugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -110,13 +110,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0060') # PubSub
|
xmpp.register_plugin('xep_0060') # PubSub
|
||||||
xmpp.register_plugin('xep_0199') # XMPP Ping
|
xmpp.register_plugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -128,13 +128,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0060') # PubSub
|
xmpp.register_plugin('xep_0060') # PubSub
|
||||||
xmpp.register_plugin('xep_0199') # XMPP Ping
|
xmpp.register_plugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
xmpp.use_proxy = True
|
xmpp.use_proxy = True
|
||||||
xmpp.proxy_config = {
|
xmpp.proxy_config = {
|
||||||
'host': opts.proxy_host,
|
'host': opts.proxy_host,
|
||||||
|
|
|
@ -168,13 +168,6 @@ if __name__ == '__main__':
|
||||||
action=args[1],
|
action=args[1],
|
||||||
data=args[3])
|
data=args[3])
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -120,13 +120,6 @@ if __name__ == '__main__':
|
||||||
# Setup the PubsubEvents listener
|
# Setup the PubsubEvents listener
|
||||||
xmpp = PubsubEvents(opts.jid, opts.password)
|
xmpp = PubsubEvents(opts.jid, opts.password)
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -146,13 +146,6 @@ if __name__ == '__main__':
|
||||||
# though they allow it. If this applies to your server, use:
|
# though they allow it. If this applies to your server, use:
|
||||||
xmpp['xep_0077'].force_registration = True
|
xmpp['xep_0077'].force_registration = True
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -136,13 +136,6 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
xmpp = RosterBrowser(opts.jid, opts.password)
|
xmpp = RosterBrowser(opts.jid, opts.password)
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -110,13 +110,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0030') # Service Discovery
|
xmpp.register_plugin('xep_0030') # Service Discovery
|
||||||
xmpp.register_plugin('xep_0199') # XMPP Ping
|
xmpp.register_plugin('xep_0199') # XMPP Ping
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -141,13 +141,6 @@ if __name__ == '__main__':
|
||||||
xmpp.register_plugin('xep_0153')
|
xmpp.register_plugin('xep_0153')
|
||||||
xmpp.register_plugin('xep_0084')
|
xmpp.register_plugin('xep_0084')
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -103,13 +103,6 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
xmpp = LocationBot(opts.jid, opts.password)
|
xmpp = LocationBot(opts.jid, opts.password)
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
|
@ -115,13 +115,6 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
xmpp = TuneBot(opts.jid, opts.password)
|
xmpp = TuneBot(opts.jid, opts.password)
|
||||||
|
|
||||||
# If you are working with an OpenFire server, you may need
|
|
||||||
# to adjust the SSL version used:
|
|
||||||
# xmpp.ssl_version = ssl.PROTOCOL_SSLv3
|
|
||||||
|
|
||||||
# If you want to verify the SSL certificates offered by a server:
|
|
||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# Connect to the XMPP server and start processing XMPP stanzas.
|
||||||
xmpp.connect()
|
xmpp.connect()
|
||||||
xmpp.process()
|
xmpp.process()
|
||||||
|
|
Loading…
Reference in a new issue