~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to OpenSSL/test/test_ssl.py

  • Committer: Myers Carpenter
  • Date: 2012-02-10 13:44:03 UTC
  • Revision ID: myers@maski.org-20120210134403-23n8adodgz9yha4s
add ifdefs so this will build with older versions of openssl

Show diffs side-by-side

added added

removed removed

Lines of Context:
588
588
        self.assertTrue(called)
589
589
 
590
590
    def test_next_proto(self):
 
591
        if not hasattr(Context, 'set_next_proto_select_callback'):
 
592
            return
 
593
        
591
594
        (server, client) = socket_pair()
592
595
 
593
596
        server_protos = ['spdy/2', 'http/1.1',]