aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2014-08-16 20:37:29 (GMT)
committerFlorent Le Coz2014-09-01 00:47:15 (GMT)
commit882f984b2622a6e44cce5401b8673760f559f718 (patch)
treee5193703478d41027e074359b47d6835c993000d
parent6175cbcd99f917b08646d130770a132458056249 (diff)
downloadslixmpp-882f984b2622a6e44cce5401b8673760f559f718.tar.gz
slixmpp-882f984b2622a6e44cce5401b8673760f559f718.tar.xz
Remove (usually) useless comments in examples about OpenFire and how to verify a certificate.
-rwxr-xr-xexamples/adhoc_provider.py7
-rwxr-xr-xexamples/adhoc_user.py7
-rwxr-xr-xexamples/admin_commands.py7
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_provider.py7
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_user.py7
-rwxr-xr-xexamples/disco_browser.py7
-rwxr-xr-xexamples/download_avatars.py7
-rwxr-xr-xexamples/echo_client.py20
-rwxr-xr-xexamples/gtalk_custom_domain.py7
-rwxr-xr-xexamples/ibb_transfer/ibb_receiver.py7
-rwxr-xr-xexamples/ibb_transfer/ibb_sender.py7
-rwxr-xr-xexamples/ping.py7
-rwxr-xr-xexamples/proxy_echo_client.py7
-rwxr-xr-xexamples/pubsub_client.py7
-rwxr-xr-xexamples/pubsub_events.py7
-rwxr-xr-xexamples/register_account.py7
-rwxr-xr-xexamples/roster_browser.py7
-rwxr-xr-xexamples/send_client.py7
-rwxr-xr-xexamples/set_avatar.py7
-rwxr-xr-xexamples/user_location.py7
-rwxr-xr-xexamples/user_tune.py7
21 files changed, 0 insertions, 160 deletions
diff --git a/examples/adhoc_provider.py b/examples/adhoc_provider.py
index e4a8fc0..7d1a41e 100755
--- a/examples/adhoc_provider.py
+++ b/examples/adhoc_provider.py
@@ -171,13 +171,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0050') # Adhoc Commands
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/adhoc_user.py b/examples/adhoc_user.py
index 4aa2a23..31ff0d1 100755
--- a/examples/adhoc_user.py
+++ b/examples/adhoc_user.py
@@ -177,13 +177,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0004') # Data Forms
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/admin_commands.py b/examples/admin_commands.py
index 97708cd..ef0dc5b 100755
--- a/examples/admin_commands.py
+++ b/examples/admin_commands.py
@@ -145,13 +145,6 @@ if __name__ == '__main__':
xmpp = AdminCommands(opts.jid, opts.password, opts.command)
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/custom_stanzas/custom_stanza_provider.py b/examples/custom_stanzas/custom_stanza_provider.py
index cfc8335..fc04bdd 100755
--- a/examples/custom_stanzas/custom_stanza_provider.py
+++ b/examples/custom_stanzas/custom_stanza_provider.py
@@ -135,13 +135,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0050') # Adhoc Commands
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/custom_stanzas/custom_stanza_user.py b/examples/custom_stanzas/custom_stanza_user.py
index 891eb72..9583710 100755
--- a/examples/custom_stanzas/custom_stanza_user.py
+++ b/examples/custom_stanzas/custom_stanza_user.py
@@ -142,13 +142,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0004') # Data Forms
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/disco_browser.py b/examples/disco_browser.py
index 2f92668..2a4ce54 100755
--- a/examples/disco_browser.py
+++ b/examples/disco_browser.py
@@ -171,13 +171,6 @@ if __name__ == '__main__':
# Setup the Disco browser.
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/download_avatars.py b/examples/download_avatars.py
index 61b07c5..d2e3ab2 100755
--- a/examples/download_avatars.py
+++ b/examples/download_avatars.py
@@ -151,13 +151,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0153')
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/echo_client.py b/examples/echo_client.py
index de649eb..1046bd4 100755
--- a/examples/echo_client.py
+++ b/examples/echo_client.py
@@ -111,26 +111,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0060') # PubSub
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/gtalk_custom_domain.py b/examples/gtalk_custom_domain.py
index 8c280ac..2c1d5be 100755
--- a/examples/gtalk_custom_domain.py
+++ b/examples/gtalk_custom_domain.py
@@ -131,13 +131,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0060') # PubSub
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/ibb_transfer/ibb_receiver.py b/examples/ibb_transfer/ibb_receiver.py
index 02c899e..9045bd6 100755
--- a/examples/ibb_transfer/ibb_receiver.py
+++ b/examples/ibb_transfer/ibb_receiver.py
@@ -114,13 +114,6 @@ if __name__ == '__main__':
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/ibb_transfer/ibb_sender.py b/examples/ibb_transfer/ibb_sender.py
index f5e44fb..261202a 100755
--- a/examples/ibb_transfer/ibb_sender.py
+++ b/examples/ibb_transfer/ibb_sender.py
@@ -112,13 +112,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0060') # PubSub
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/ping.py b/examples/ping.py
index 8ecb8cf..dd3ce73 100755
--- a/examples/ping.py
+++ b/examples/ping.py
@@ -110,13 +110,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0060') # PubSub
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/proxy_echo_client.py b/examples/proxy_echo_client.py
index e1eab19..56ecb78 100755
--- a/examples/proxy_echo_client.py
+++ b/examples/proxy_echo_client.py
@@ -128,13 +128,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0060') # PubSub
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.proxy_config = {
'host': opts.proxy_host,
diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py
index 1e24dbd..36d044f 100755
--- a/examples/pubsub_client.py
+++ b/examples/pubsub_client.py
@@ -168,13 +168,6 @@ if __name__ == '__main__':
action=args[1],
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/pubsub_events.py b/examples/pubsub_events.py
index f4be2d6..eb678cf 100755
--- a/examples/pubsub_events.py
+++ b/examples/pubsub_events.py
@@ -120,13 +120,6 @@ if __name__ == '__main__':
# Setup the PubsubEvents listener
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/register_account.py b/examples/register_account.py
index 396b23c..29885f9 100755
--- a/examples/register_account.py
+++ b/examples/register_account.py
@@ -146,13 +146,6 @@ if __name__ == '__main__':
# though they allow it. If this applies to your server, use:
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/roster_browser.py b/examples/roster_browser.py
index 0bdc7c1..8f3e0d8 100755
--- a/examples/roster_browser.py
+++ b/examples/roster_browser.py
@@ -136,13 +136,6 @@ if __name__ == '__main__':
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/send_client.py b/examples/send_client.py
index 17dffca..9a03f70 100755
--- a/examples/send_client.py
+++ b/examples/send_client.py
@@ -110,13 +110,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0030') # Service Discovery
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/set_avatar.py b/examples/set_avatar.py
index 452363b..e446497 100755
--- a/examples/set_avatar.py
+++ b/examples/set_avatar.py
@@ -141,13 +141,6 @@ if __name__ == '__main__':
xmpp.register_plugin('xep_0153')
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/user_location.py b/examples/user_location.py
index 3e484d7..74cad8a 100755
--- a/examples/user_location.py
+++ b/examples/user_location.py
@@ -103,13 +103,6 @@ if __name__ == '__main__':
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.
xmpp.connect()
xmpp.process()
diff --git a/examples/user_tune.py b/examples/user_tune.py
index 4ecfdb7..2f28de3 100755
--- a/examples/user_tune.py
+++ b/examples/user_tune.py
@@ -115,13 +115,6 @@ if __name__ == '__main__':
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.
xmpp.connect()
xmpp.process()