Skip to content
Permalink
master

Commits on Feb 3, 2022

  1. openssl-dgst.pod.in: Fix documentation of -list option

    Mention openssl list -digest-algorithms, NOT -digest-commands.
    
    Move option -list just after the related option -digest.
    
    Fix HTML formatting of section 'Examples' by adding missing
    newlines and add 2 examples variant to clarify syntax of the
    command.
    
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17626)
    EasySec authored and t8m committed Feb 3, 2022
  2. Fix copyrights

    Add copyright to files that were missing it.
    Update license from OpenSSL to Apache as needed.
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17606)
    tmshort authored and t8m committed Feb 3, 2022
  3. Use opt_int_arg() to parse integers in apps/speed.c

    We use opt_int_arg() to prevent malformed processing of
    hexadecimal input to some command line options.
    
    Updated help to mention the change.
    
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17585)
    heavycrystal authored and t8m committed Feb 3, 2022
  4. Fix EVP todata and fromdata when used with selection of EVP_PKEY_PUBL…

    …IC_KEY.
    
    The private key for rsa, dsa, dh and ecx was being included when the
    selector was just the public key. (ec was working correctly).
    This matches the documented behaviour.
    
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17200)
    slontis authored and t8m committed Feb 3, 2022
  5. add SSL_get0_iana_groups() & SSL_client_hello_get_extension_order()

    The function/macro allow user get groups/extensions without memory allcations.
    So we could calculate the ssl fignerprint(ja3) in low cost.
    
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #16910)
    phuslu authored and t8m committed Feb 3, 2022

Commits on Feb 2, 2022

  1. apps/progs.pl: use SOURCE_DATE_EPOCH if defined for copyright year

    As with 11d7d90, use SOURCE_DATE_EPOCH for the copyright year if it is
    defined, to avoid reproducibility problems.
    
    CLA: trivial
    
    Signed-off-by: Ross Burton <ross.burton@arm.com>
    Change-Id: I1bea19070411a69155c43de7082350fb2c499da3
    
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    Reviewed-by: Paul Dale <pauli@openssl.org>
    (Merged from #17601)
    rossburton authored and paulidale committed Feb 2, 2022

Commits on Feb 1, 2022

  1. Update the comment on ssl3_write_pending()

    The struct s->s3 has been modified.
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17611)
    yangyangtiantianlonglong authored and t8m committed Feb 1, 2022
  2. Revert dropped usage of var thiswr in do_ssl3_write()

    The var 'thiswr' is an unwanted modification,
    it was submitted in #5253.
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17610)
    yangyangtiantianlonglong authored and t8m committed Feb 1, 2022
  3. indentation fix

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  4. tls1 prf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  5. pkcs12 kdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  6. test: change pkey kdf dup fail test to a pkey kdf dup success test

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  7. k942 kdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  8. ss KDF: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  9. ssh kdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  10. scrypt: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  11. pvk kdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  12. krb5kdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  13. kbkdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  14. hkdf: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  15. pbkdf2: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  16. pbkdf1: implement ctx dup operation

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  17. evp_test: add a ctx dup operation to the KDF tests

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  18. prov: add a safe memdup function for context cloning

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    (Merged from #17572)
    paulidale committed Feb 1, 2022
  19. Fix bad HTML formatting in EVP_KEYEXCH-DH.html because of missing new…

    …line in pod file
    
    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    Reviewed-by: Richard Levitte <levitte@openssl.org>
    Reviewed-by: Paul Dale <pauli@openssl.org>
    (Merged from #17609)
    EasySec authored and paulidale committed Feb 1, 2022
  20. Fix endianness problem in params_api_test

    On a big endian machine, we get test failures in params_api_test like
    
            # ERROR: (memory) 'buf1 == buf2' failed @ test/params_api_test.c:473
            # --- buf1
            # +++ buf2
            # 0000:-e901
            # 0000:+01e9
            #       ^^^^
            #
            # OPENSSL_TEST_RAND_ORDER=1643313367
            not ok 157 - iteration 3
    
    They are due to an additional conversion copy.  Remove this copy to solve the
    problem.
    
    Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
    
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    Reviewed-by: Paul Dale <pauli@openssl.org>
    (Merged from #17608)
    Juergen Christ authored and paulidale committed Feb 1, 2022

Commits on Jan 31, 2022

  1. aes: make the no-asm constant time code path not the default

    After OMC and OTC discussions, the 95% performance loss resulting from
    the constant time code was deemed excessive for something outside of
    our security policy.
    
    The option to use the constant time code exists as it was in OpenSSL 1.1.1.
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    (Merged from #17600)
    paulidale committed Jan 31, 2022

Commits on Jan 28, 2022

  1. Include the modules directory in openssl.pc

    Affected file: Configurations/unix-Makefile.tmpl
    
    Fixes #17602
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17605)
    levitte committed Jan 28, 2022
  2. apps: Add option -no_ems to s_client/s_server apps

    The option SSL_OP_NO_EXTENDED_MASTER_SECRET was added in #3910.
    And it is valid for versions below (D)TLS 1.2.
    
    Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17597)
    yangyangtiantianlonglong authored and t8m committed Jan 28, 2022
  3. Add -verbose/-queit flags to dhparam

    Allow dhparam to run quietly in scripts, etc.
    
    For other commands that took a -verbose flag already, also support -quiet.
    
    For genpkey which only supported -quiet, add the -verbose flag.
    
    Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17336)
    pprindeville authored and t8m committed Jan 28, 2022
  4. Use progress_cb in genrsa

    Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
    
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17336)
    pprindeville authored and t8m committed Jan 28, 2022
  5. Add the missing check of BN_bn2hex return value

    CLA: trivial
    
    Signed-off-by: Zhou Qingyang <zhou1615@umn.edu>
    
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Matt Caswell <matt@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17578)
    zhou1615 authored and t8m committed Jan 28, 2022

Commits on Jan 27, 2022

  1. BIO_new_from_core_bio: Check for NULL pointer after calling get_globals

    The get_globals could return NULL, for example,
    CRYPTO_THREAD_read_lock() failed.
    Therefore, just checking the member of 'bcgbl' is not enough.
    We need to check 'bcgbl' itself too in order to avoid the dereference of
    the NULL pointer.
    And the caller of ossl_bio_init_core(), OSSL_LIB_CTX_new_from_dispatch()
    in `crypto/context.c`, has already checked return value and dealed with
    the situation if it returns 0.
    
    Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
    
    Reviewed-by: Paul Dale <pauli@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    (Merged from #17581)
    JiangJias authored and t8m committed Jan 27, 2022
  2. Ensure ciphers command honours -propquery

    Any propquery passed via the -propquery option to the ciphers command was
    being ignored.
    
    Reviewed-by: Tomas Mraz <tomas@openssl.org>
    Reviewed-by: Paul Dale <pauli@openssl.org>
    (Merged from #17595)
    mattcaswell committed Jan 27, 2022
  3. Document purpose and trust setting functions

    In particular:
    X509_STORE_CTX_set_purpose()
    X509_STORE_CTX_set_trust();
    X509_STORE_CTX_purpose_inherit();
    
    Reviewed-by: Ben Kaduk <kaduk@mit.edu>
    (Merged from #17382)
    mattcaswell committed Jan 27, 2022
Older