summaryrefslogtreecommitdiff
path: root/demo/ssl/echod-forking.py
diff options
context:
space:
mode:
Diffstat (limited to 'demo/ssl/echod-forking.py')
-rw-r--r--demo/ssl/echod-forking.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/demo/ssl/echod-forking.py b/demo/ssl/echod-forking.py
deleted file mode 100644
index 43faab3..0000000
--- a/demo/ssl/echod-forking.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-
-"""A forking SSL 'echo' server.
-
-Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""
-
-from M2Crypto import DH, Rand, SSL
-import echod_lib
-
-class ssl_echo_handler(echod_lib.ssl_echo_handler):
- buffer = 'Ye Olde Forking Echo Servre\r\n'
-
-
-if __name__ == '__main__':
- Rand.load_file('../randpool.dat', -1)
- ctx = echod_lib.init_context('sslv23', 'server.pem', 'ca.pem',
- SSL.verify_peer | SSL.verify_fail_if_no_peer_cert)
- ctx.set_tmp_dh('dh1024.pem')
- s = SSL.ForkingSSLServer(('', 9999), ssl_echo_handler, ctx)
- s.serve_forever()
- Rand.save_file('../randpool.dat')
-