Skip to content

streams: report OpenSSL errors if global init fails#4710

Merged
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/ssl-init-errors
Jul 8, 2018
Merged

streams: report OpenSSL errors if global init fails#4710
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/ssl-init-errors

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Jun 29, 2018

In case when the global initialization of the OpenSSL stream fails, the
user is left without any hint as to what went wrong as we do not provide
any error message at all. This commit refactors the init function to
have a common error path, which now also sets an error message including
the error string provided by OpenSSL.

In case when the global initialization of the OpenSSL stream fails, the
user is left without any hint as to what went wrong as we do not provide
any error message at all. This commit refactors the init function to
have a common error path, which now also sets an error message including
the error string provided by OpenSSL.
@pks-t pks-t force-pushed the pks/ssl-init-errors branch from 2ec5fd0 to 75395c8 Compare July 6, 2018 08:41
@pks-t
Copy link
Copy Markdown
Member Author

pks-t commented Jul 6, 2018

Oh. Embarassing syntax error. I shouldn't push an untested state 😅

@ethomson ethomson merged commit 290292b into libgit2:master Jul 8, 2018
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Jul 8, 2018

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants