shanemhansen/gossl — pull request #1 by partkyle (2014-04-11 22:54:44+00:00)
Title: Return proper length and errors

`io.Reader` and `io.Writer` are meant to return the number of bytes read or written. This implementation was returning the size of the input buffer, which would cause unexpected results when using buffered readers, etc.

This pull request resolves the issue with returning the value that was provided by the `SSL_read` and `SSL_write` methods.

This also resolves an issue with `C.SSL_ERROR_ZERO_RETURN` error codes, which indicate something similar to an `io.EOF`