Skip to content

Conversation

@aeijdenberg
Copy link

Merged changes from add_get_peer_scts branch and refactored to use existing SCT primitives with minimal changes to existing functions:

  • added a few extra fields to the SCT structure and corresponding print function
  • fixed a memory leak in i2o_SCT_LIST when **pp is NULL
  • added SCT_CTX_set1_issuerpubkey

Adam Eijdenberg and others added 22 commits August 28, 2015 10:20
Wrap it for C++ like other headers.
I fuzzed this with AFL for a day and found no crashes.
Some flapping "make depend" churn.
clang suggests %llu instead, but it isn't clear that is portable on all platforms.

C99 and above define a handy macro for us, so we try to use that definition and fall back to current definition if needed (though we switch to 'u' for unsigned).
Without this fix "openssl ocsp -port xxx" will cause "openssl s_server -status" calls to hang on FreeBSD.

I'm not 100% sure this is the right overall fix... my knowledge here is weak, but it is verified to fix the problem I was having.
ekasper pushed a commit that referenced this pull request Nov 8, 2016
PKCS #1 v2.0 is the name of a document which specifies an algorithm
RSASSA-PKCS1-v1_5, often referred to as "PKCS #1 v1.5" after an earlier
document which specified it. This gets further confusing because the
document PKCS #1 v2.1 specifies two signature algorithms,
RSASSA-PKCS1-v1_5 and RSASSA-PSS. RSA_sign implements RSASSA-PKCS1-v1_5.

Refer to the document using the RFC number which is easier to find
anyway, and refer to the algorithm by its name.

Reviewed-by: Kurt Roeckx <[email protected]>
Reviewed-by: Rich Salz <[email protected]>

GH: openssl#1474
ekasper pushed a commit that referenced this pull request Jan 25, 2017
PKCS #1 v2.0 is the name of a document which specifies an algorithm
RSASSA-PKCS1-v1_5, often referred to as "PKCS #1 v1.5" after an earlier
document which specified it. This gets further confusing because the
document PKCS #1 v2.1 specifies two signature algorithms,
RSASSA-PKCS1-v1_5 and RSASSA-PSS. RSA_sign implements RSASSA-PKCS1-v1_5.

Refer to the document using the RFC number which is easier to find
anyway, and refer to the algorithm by its name.

Reviewed-by: Kurt Roeckx <[email protected]>
Reviewed-by: Rich Salz <[email protected]>

GH: openssl#1474
(cherry picked from commit aa90ca1)
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.

1 participant