Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s2n implementation. #77

Closed
wants to merge 9 commits into from
Closed
Prev Previous commit
Next Next commit
remove debug prints.
  • Loading branch information
samrushing committed Aug 24, 2015
commit e80422320c27099e4d53778f364662a7e2542ad4
3 changes: 0 additions & 3 deletions coro/ssl/s2n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class sock (coro.sock):
# set mode automatically?
def __init__ (self, cfg, fd=-1, verify=False, domain=coro.AF.INET, mode=MODE.SERVER):
coro.sock.__init__ (self, fd=fd, domain=domain)
print 'fd=', self.fd
self.cfg = cfg
self.conn_ob = _s2n.Connection(mode)
self.conn_ob.set_config (cfg)
Expand Down Expand Up @@ -49,7 +48,6 @@ def recv (self, block_size):
left = block_size
while left:
b, more = self.conn_ob.recv (left)
print 'more, b', more, repr(b)
r.append (b)
if not more:
break
Expand Down Expand Up @@ -77,7 +75,6 @@ def send (self, data):
left = len(data)
while left:
n, more = self.conn_ob.send (data, pos)
print 'n, more', n, more
pos += n
if not more:
break
Expand Down