Pauli
c768893e7d
doc: move XXX_get_number() documentation to internal
...
These functions are effectively useless for users outside of libcrypto.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15564 )
2021-06-02 20:45:39 +10:00
Pauli
4cedf30e99
utils: remove TODO
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
71653965b3
crypto: remove TODOs
...
Fixes #15451
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
60e91cc409
http: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
4c3c2633b2
evp: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
3b90a847ec
err: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
4656d9ecd1
ec: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
3dc12810fa
dso: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
26b3e44a66
bn: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
79cabd7e27
rsa: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
c6472fec64
store: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
e73a08b400
pem: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
126e37716f
ocsp: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
29cfba8599
ct: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
e0a7ef0b51
crmf: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
1486b1fbd3
comp: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
6f6c8b0e3c
cms: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
75e1191f4d
cmp: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
69e21cb648
x509: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
1c8c5d4755
bio: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
10dbfcc91e
asn.1: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
0848b943a8
providers: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
407820c0e3
tls: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
fd009d763a
test: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
fb6ad22e36
fuzz: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Pauli
db70dc2cda
apps: remove TODOs
...
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15539 )
2021-06-02 16:30:15 +10:00
Richard Levitte
0d7d5e2490
providers/common/der/build.info: make a variable for ../include/prov
...
This is a proof of concept for GENERATE variable expansion.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15554 )
2021-06-02 08:19:23 +02:00
Richard Levitte
7058b4db82
Configure: variable expand GENERATE values too
...
Internal documentation doesn't allow for any exception... Therefore,
even GENERATE values should be variable expanded.
(there are historical reasons why GENERATE was excepted from variable
expansion, that aren't applicable any more)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15554 )
2021-06-02 08:18:47 +02:00
Jon Spillett
0608afe096
Fix up bad libcrypto.num
...
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15576 )
2021-06-02 13:04:04 +10:00
Tomas Mraz
b3c2ed7043
Add NCONF_get_section_names()
...
And a few additional fixups to make the no-deprecated configuration
to build.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15466 )
2021-06-02 12:40:02 +10:00
Rich Salz
6b750b89ee
Add NCONF_get0_libctx()
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15466 )
2021-06-02 12:40:02 +10:00
Rich Salz
ff234c6804
Make conf_method_st and conf_st deprecated
...
So they can be made opaque in a future release.
Fixes #15101
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15466 )
2021-06-02 12:40:02 +10:00
Trev Larock
147ed5f9de
Modify ssl_handshake_hash to call SSLfatal
...
When EVP_MD_CTX_new fails call SSLfatal before the goto err.
This resolves a state machine issue on the out of memory condition.
Fixes #15491 .
CLA: trivial
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15520 )
2021-06-01 16:43:43 +02:00
Tomas Mraz
7e8d6bafd0
Make the 00-prep_*.t recipe truly mandatory
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15550 )
2021-06-01 15:07:51 +02:00
Tomas Mraz
86825c9917
Windows CI: enable fips on shared 64 bit build
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15550 )
2021-06-01 15:07:51 +02:00
Tomas Mraz
e47ed5fe1f
Fix enable-fips builds on Windows
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15550 )
2021-06-01 15:07:37 +02:00
Tomas Mraz
31b7f23d2f
Add documentation of the old names kept as alias macros
...
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15405 )
2021-06-01 12:43:57 +02:00
Tomas Mraz
c4e9167437
Rename also the OSSL_PROVIDER_name() function
...
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15405 )
2021-06-01 12:43:57 +02:00
Tomas Mraz
ed576acdf5
Rename all getters to use get/get0 in name
...
For functions that exist in 1.1.1 provide a simple aliases via #define.
Fixes #15236
Functions with OSSL_DECODER_, OSSL_ENCODER_, OSSL_STORE_LOADER_,
EVP_KEYEXCH_, EVP_KEM_, EVP_ASYM_CIPHER_, EVP_SIGNATURE_,
EVP_KEYMGMT_, EVP_RAND_, EVP_MAC_, EVP_KDF_, EVP_PKEY_,
EVP_MD_, and EVP_CIPHER_ prefixes are renamed.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15405 )
2021-06-01 12:40:00 +02:00
Jon Spillett
5e2d22d53e
Pass library context and property query into private key decoders
...
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14587 )
2021-06-01 12:16:27 +02:00
Jon Spillett
e3c7595521
Fix up encoder/decoder issues caused by not passing a library context to the PKCS8 encrypt/decrypt
...
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14587 )
2021-06-01 12:16:27 +02:00
Jon Spillett
169eca602c
Enhance the encoder/decoder tests to allow testing with a non-default library context and configurable providers
...
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14587 )
2021-06-01 12:16:27 +02:00
Pauli
8ee66a092c
req: fix Coverity 1485137 Explicit null dereference
...
Add a check for a non-existent file name when specifying params via file.
Add a check for a failure to determine key type.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15534 )
2021-06-01 18:46:44 +10:00
Pauli
28cab20916
crypto: updates to pass size_t to RAND_bytes_ex()
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15540 )
2021-06-01 18:13:56 +10:00
Pauli
dfefa4c164
ssl: ass size_t to RAND_bytes_ex()
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15540 )
2021-06-01 18:13:36 +10:00
Pauli
528685fe77
rand: use size_t for size argument to RAND_bytes_ex()
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15540 )
2021-06-01 18:13:36 +10:00
Shane Lontis
f7c1b472bf
Move provider der_XXX.h.in files to the include directory.
...
Fixes #15506
The .in and generated .h files are now in the same directory.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15544 )
2021-06-01 15:31:06 +10:00
Shane Lontis
3c15d67705
Fix error stack for some fetch calls.
...
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15532 )
2021-06-01 15:28:18 +10:00
Shane Lontis
9ff4b7b0c7
Migration guide updates for flags and controls.
...
Provided a section that links to the ctrl/flags mappings to parameters
for digests and ciphers.
Added "EVP_CIPHER_CTX_set_flags() ordering" to changes section.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15496 )
2021-06-01 15:22:30 +10:00
Shane Lontis
7f9537d57a
Document Settable EVP_CIPHER_CTX parameter "use-bits"
...
Added docs for EVP_CIPHER_CTX_set_flags(),
EVP_CIPHER_CTX_clear_flags() and EVP_CIPHER_CTX_test_flags().
Added section for "FLAGS" to show parameter mappings.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15496 )
2021-06-01 15:22:30 +10:00