8dc34b1f | 11-Nov-2020 |
Daniel Bevenius |
EVP: don't touch the lock for evp_pkey_downgrade This commit tries to address a locking issue in evp_pkey_reset_unlocked which can occur when it is called from evp_pkey_downgrade.
EVP: don't touch the lock for evp_pkey_downgrade This commit tries to address a locking issue in evp_pkey_reset_unlocked which can occur when it is called from evp_pkey_downgrade. evp_pkey_downgrade will acquire a lock for pk->lock and if successful then call evp_pkey_reset_unlocked. evp_pkey_reset_unlocked will call memset on pk, and then create a new lock and set pk->lock to point to that new lock. I believe there are two problems with this. The first is that after the call to memset, another thread would try to acquire a lock for NULL as that is what the value of pk->lock would be at that point. The second issue is that after the new lock has been assigned to pk->lock, that lock is different from the one currently locked so another thread trying to acquire the lock will succeed which can lead to strange behaviour. More details and a reproducer can be found in the Refs link below. This changes the evp_pkey_reset_unlocked to not touch the lock and the creation of a new lock is done in EVP_PKEY_new. Refs: https://github.com/danbev/learning-libcrypto/blob/master/notes/issues.md#openssl-investigationtroubleshooting https://github.com/nodejs/node/issues/29817 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13374)
show more ...
|
2b407d05 | 18-Nov-2020 |
Tomas Mraz |
Documentation improvements for EVP_DigestInit_ex and related functions Documenting when EVP_MD_CTX_reset() is implicitly called and when type can be set to NULL. Reviewed-by: Dm
Documentation improvements for EVP_DigestInit_ex and related functions Documenting when EVP_MD_CTX_reset() is implicitly called and when type can be set to NULL. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13402)
show more ...
|
5de9863b | 13-Nov-2020 |
Tomas Mraz |
Fix regression in EVP_DigestInit_ex: crash when called with NULL type Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged f
Fix regression in EVP_DigestInit_ex: crash when called with NULL type Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13402)
show more ...
|
8d8dd09b | 13-Nov-2020 |
Tomas Mraz |
Add test for no reset after DigestFinal_ex and DigestFinalXOF Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from http
Add test for no reset after DigestFinal_ex and DigestFinalXOF Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13402)
show more ...
|
39fde64a | 13-Nov-2020 |
Tomas Mraz |
EVP_DigestFinalXOF must not reset the EVP_MD_CTX It does not do it in legacy path and 1.1.1 so that must not change. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-
EVP_DigestFinalXOF must not reset the EVP_MD_CTX It does not do it in legacy path and 1.1.1 so that must not change. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13402)
show more ...
|
e109aaa9 | 24-Nov-2020 |
Matt Caswell |
Fix no-posix-io The "multi" variable should only be used within HTTP_DAEMON guards. However there were a few spots where this was not the case, which causes no-posix-io builds to fai
Fix no-posix-io The "multi" variable should only be used within HTTP_DAEMON guards. However there were a few spots where this was not the case, which causes no-posix-io builds to fail. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13498)
show more ...
|
467f441b | 25-Nov-2020 |
Richard Levitte |
APPS: Modify apps/cmp.c to use set_base_ui_method() for its -batch option Fixes #13511 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/
APPS: Modify apps/cmp.c to use set_base_ui_method() for its -batch option Fixes #13511 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13512)
show more ...
|
a6a5dec6 | 25-Nov-2020 |
Richard Levitte |
APPS: Make it possible for apps to set the base (fallback) UI_METHOD The apps UI method acts as a proxy that bases its activity on a base (was called fallback) UI_METHOD, which defaults
APPS: Make it possible for apps to set the base (fallback) UI_METHOD The apps UI method acts as a proxy that bases its activity on a base (was called fallback) UI_METHOD, which defaults to UI_OpenSSL() under normal circumstances. However, some apps might want to have it based on another UI_METHOD, such as UI_null() to avoid prompting (typical for a -batch run). The new function set_base_ui_method() allows them to do precisely this. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13512)
show more ...
|
e3197e5a | 26-Nov-2020 |
Matt Caswell |
Prepare for 3.0 alpha 10 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> |
68ec3d47 | 26-Nov-2020 |
Matt Caswell |
Prepare for release of 3.0 alpha 9 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> |
605856d7 | 26-Nov-2020 |
Matt Caswell |
Update copyright year Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13533) |
c589c149 | 23-Nov-2020 |
Richard Levitte |
DOC: Add note on how to terminate an OSSL_PARAM array The examples are also updated to have correct terminators. doc/man3/OSSL_PARAM.pod is deliberately written with no help from th
DOC: Add note on how to terminate an OSSL_PARAM array The examples are also updated to have correct terminators. doc/man3/OSSL_PARAM.pod is deliberately written with no help from the constructor macros described in OSSL_PARAM_int.pod. Therefore, use of OSSL_PARAM_END isn't shown directly here, only leaving a link to its man-page to indicate that there is that option. Fixes #11280 Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13478)
show more ...
|
2d840893 | 24-Nov-2020 |
Matt Caswell |
Fix no-rc2 Skip a test that relies on RC2 being present in a no-rc2 build. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (M
Fix no-rc2 Skip a test that relies on RC2 being present in a no-rc2 build. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13496)
show more ...
|
0f386f2e | 02-Nov-2020 |
Matt Caswell |
Remove deprecation warning suppression from genpkey genpkey was supressing deprecation warnings in order to support ENGINE functionality. We move all of that into a separate file so that
Remove deprecation warning suppression from genpkey genpkey was supressing deprecation warnings in order to support ENGINE functionality. We move all of that into a separate file so that we don't need to suppress the warnings anymore. Fixes #13118 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13454)
show more ...
|
931d5b4b | 24-Nov-2020 |
Dr. David von Oheimb |
apps/cmp.c: fix crash with -batch option on OPENSSL_NO_UI_CONSOLE Also make clear we cannot use get_ui_method() at this point. Fixes #13494 Reviewed-by: Matt Caswell <matt@
apps/cmp.c: fix crash with -batch option on OPENSSL_NO_UI_CONSOLE Also make clear we cannot use get_ui_method() at this point. Fixes #13494 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13497)
show more ...
|
68f9d922 | 25-Nov-2020 |
Dr. David von Oheimb |
apps/cmp.c: Improve description of key loaded due to -newkew option Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13497) |
e50b81c9 | 24-Nov-2020 |
Dr. David von Oheimb |
re-encrypt 81-test_cmp_cli_data/Mock/signer.p12 with AES-256-CBC (avoiding DES) Fixes #13494 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl
re-encrypt 81-test_cmp_cli_data/Mock/signer.p12 with AES-256-CBC (avoiding DES) Fixes #13494 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13497)
show more ...
|
6955e3f7 | 10-Nov-2020 |
Matt Caswell |
Re-enable testing of ciphersuites Commit be9d82bb3 inadvertently disabled ciphersuite testing. This masked some issues. Therefore we fix this testing. Reviewed-by: Tomas Mraz <t
Re-enable testing of ciphersuites Commit be9d82bb3 inadvertently disabled ciphersuite testing. This masked some issues. Therefore we fix this testing. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13378)
show more ...
|
6db0d58d | 11-Nov-2020 |
Matt Caswell |
Fix RC4-MD5 based ciphersuites The RC4-MD5 ciphersuites were not removing the length of the MAC when calculating the length of decrypted TLS data. Since RC4 is a streamed cipher that
Fix RC4-MD5 based ciphersuites The RC4-MD5 ciphersuites were not removing the length of the MAC when calculating the length of decrypted TLS data. Since RC4 is a streamed cipher that doesn't use padding we separate out the concepts of fixed length TLS data to be removed, and TLS padding. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13378)
show more ...
|
01c6551c | 10-Nov-2020 |
Matt Caswell |
Ensure Stream ciphers know how to remove a TLS MAC We previously updated the block ciphers to know how to remove a TLS MAC when using Encrypt-then-MAC. We also need to do the same for st
Ensure Stream ciphers know how to remove a TLS MAC We previously updated the block ciphers to know how to remove a TLS MAC when using Encrypt-then-MAC. We also need to do the same for stream ciphers. Fixes #13363 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13378)
show more ...
|
1950e0e3 | 18-Nov-2020 |
Matt Caswell |
Test that OSSL_STORE can load various types of params There have been instances where OSSL_STORE got confused between DSA and DH params (e.g. see issue #13046) due the DER encoding of DH
Test that OSSL_STORE can load various types of params There have been instances where OSSL_STORE got confused between DSA and DH params (e.g. see issue #13046) due the DER encoding of DH and DSA params looking identical. Therefore we test that we get the types that we expect. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13329)
show more ...
|
cdbd27ba | 17-Nov-2020 |
Matt Caswell |
Test various deprecated PEM_read_bio_* APIs Add tests for various deprecated PEM_read_bio_*() functions to ensure they can still read the various files. Reviewed-by: Richard Lev
Test various deprecated PEM_read_bio_* APIs Add tests for various deprecated PEM_read_bio_*() functions to ensure they can still read the various files. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13329)
show more ...
|
337ade3d | 05-Nov-2020 |
Matt Caswell |
Don't forget the datatype when decoding a PEM file The OSSL_STORE code was forgetting the datatype that we read from the PEM header when decoding the DER. Fixes #13046
Don't forget the datatype when decoding a PEM file The OSSL_STORE code was forgetting the datatype that we read from the PEM header when decoding the DER. Fixes #13046 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13329)
show more ...
|
403ef8ce | 23-Nov-2020 |
Richard Levitte |
APPS: Guard use of IPv6 functions and constants with a check of AF_INET6 Fixes #13482 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openss
APPS: Guard use of IPv6 functions and constants with a check of AF_INET6 Fixes #13482 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13484)
show more ...
|
ee825284 | 23-Nov-2020 |
Matt Caswell |
Undeprecate the -dsaparam option in the dhparam app The -dsaparam option was deprecated because it was previously using deprecated functions in order to operate. This is no longer the ca
Undeprecate the -dsaparam option in the dhparam app The -dsaparam option was deprecated because it was previously using deprecated functions in order to operate. This is no longer the case and therefore does not need to be deprecated. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13485)
show more ...
|