Skip to content

Improves CTLOG_STORE setters - #1408

Closed
RJPercival wants to merge 3 commits into
openssl:masterfrom
RJPercival:ctlog_store_setters
Closed

RJPercival wants to merge 3 commits into
openssl:masterfrom
RJPercival:ctlog_store_setters

Conversation

@RJPercival

Copy link
Copy Markdown
Contributor

Changes them to have clearer ownership semantics, as suggested in
#1372 (comment).

Changes them to have clearer ownership semantics, as suggested in
openssl#1372 (comment).
@richsalz richsalz self-assigned this Aug 5, 2016
@richsalz richsalz added this to the 1.1.0 milestone Aug 5, 2016
@richsalz

richsalz commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

+1

@RJPercival
RJPercival force-pushed the ctlog_store_setters branch from 0666625 to cf314fa Compare August 5, 2016 13:24
Comment thread crypto/ct/ct_policy.c Outdated
void CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert)
{
ctx->cert = cert;
if (X509_up_ref(cert))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If they can fail then they should no longer be void.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

They may fail if they cannot increment the reference count of the
certificate they are storing a pointer for. They should return 0 if this
occurs.
@richsalz

Copy link
Copy Markdown
Contributor

still +1 needs another reviewer.

Comment thread util/libcrypto.num Outdated
d2i_ASN1_INTEGER 293 1_1_0 EXIST::FUNCTION:
i2d_PKCS7_ENCRYPT 294 1_1_0 EXIST::FUNCTION:
CT_POLICY_EVAL_CTX_set0_issuer 295 1_1_0 EXIST::FUNCTION:CT
CT_POLICY_EVAL_CTX_set0_issuer 295 1_1_0 NOEXIST::FUNCTION:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you could delete these since they now never existed (not sure if we have a script to clean them up before the release)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should I leave a gap in the number sequence or replace them with the new set1 functions?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Put the new functions directly in place of the old ones. Then I’ll merge.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@ekasper

ekasper commented Aug 15, 2016

Copy link
Copy Markdown

+1

@richsalz

Copy link
Copy Markdown
Contributor

merged, thanks. closing.

@richsalz richsalz closed this Aug 15, 2016
levitte pushed a commit that referenced this pull request Aug 15, 2016
Changes them to have clearer ownership semantics, as suggested in
#1372 (comment).

Reviewed-by: Emilia Käsper <[email protected]>
Reviewed-by: Rich Salz <[email protected]>
(Merged from #1408)
levitte pushed a commit that referenced this pull request Aug 15, 2016
They may fail if they cannot increment the reference count of the
certificate they are storing a pointer for. They should return 0 if this
occurs.

Reviewed-by: Emilia Käsper <[email protected]>
Reviewed-by: Rich Salz <[email protected]>
(Merged from #1408)
levitte pushed a commit that referenced this pull request Aug 15, 2016
…o.num

Reviewed-by: Emilia Käsper <[email protected]>
Reviewed-by: Rich Salz <[email protected]>
(Merged from #1408)
@RJPercival RJPercival mentioned this pull request Aug 23, 2016
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.

3 participants