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

Various code fixes #1168

Closed
wants to merge 5 commits into from
Closed

Conversation

FdaSilvaYY
Copy link
Contributor

@FdaSilvaYY FdaSilvaYY commented Jun 4, 2016

I push a large code change out of this PR, to minimize the review work to do .

@FdaSilvaYY FdaSilvaYY force-pushed the various-fixes2 branch 3 times, most recently from 75adee3 to eaddb2f Compare June 4, 2016 19:24
@@ -45,22 +45,21 @@ int BIO_set(BIO *bio, const BIO_METHOD *method)
bio->references = 1;
bio->num_read = 0L;
bio->num_write = 0L;
if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data))
return 0;

bio->lock = CRYPTO_THREAD_lock_new();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing to consider is have a static BIO object with initializers and then do an assignment, to get the initializatoin. If not that, then just doing memset() and setting the non-zero pointers is better. while you're in this part of the code.

Copy link
Contributor Author

@FdaSilvaYY FdaSilvaYY Jun 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the code-meaning of your 1st sentence.
Will reading this code, I also think that the initialisation code should be moved to BIO_new().
Let's do it...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static BIO nilb = { 0, 0, 0, -1L, 0, 0, …. Etc }

*b = nil;

@FdaSilvaYY FdaSilvaYY force-pushed the various-fixes2 branch 6 times, most recently from 37ba2a7 to c165cc2 Compare June 5, 2016 07:57
@mattcaswell mattcaswell added this to the 1.1.0 milestone Jun 6, 2016
@FdaSilvaYY FdaSilvaYY force-pushed the various-fixes2 branch 7 times, most recently from 61ec7a8 to e622b05 Compare June 12, 2016 16:53
@richsalz richsalz self-assigned this Jun 13, 2016
@FdaSilvaYY FdaSilvaYY force-pushed the various-fixes2 branch 4 times, most recently from a9950dc to 4edbdfc Compare June 16, 2016 21:44
@kroeckx
Copy link
Member

kroeckx commented Jun 18, 2016

+1

@kroeckx kroeckx added the approval: done This pull request has the required number of approvals label Jun 18, 2016
@richsalz
Copy link
Contributor

merged, thanks.

levitte pushed a commit that referenced this pull request Jun 18, 2016
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #1168)
levitte pushed a commit that referenced this pull request Jun 18, 2016
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #1168)
levitte pushed a commit that referenced this pull request Jun 18, 2016
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #1168)
levitte pushed a commit that referenced this pull request Jun 18, 2016
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #1168)
levitte pushed a commit that referenced this pull request Jun 18, 2016
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #1168)
@richsalz richsalz closed this Jun 18, 2016
@FdaSilvaYY FdaSilvaYY deleted the various-fixes2 branch June 18, 2016 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: done This pull request has the required number of approvals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants