1. 11 5月, 2018 2 次提交
    • K
      Use void in all function definitions that do not take any arguments · 3cb7c5cf
      Kurt Roeckx 提交于
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      GH: #6208
      3cb7c5cf
    • M
      Set the ossl_shim to auto retry if not running asynchronously · c3114a77
      Matt Caswell 提交于
      In certain circumstances in the DTLS code we have to drop a record (e.g. if
      it is a stale retransmit). We then have to move on to try and read the next
      record. Some applications using blocking sockets (e.g. s_server/s_client
      will hang if there isn't actually any data to be read from the socket yet).
      Others can tolerate this. Therefore SSL_read()/SSL_write() can sometimes
      return SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE even when using blocking
      sockets. Applications can use the mode SSL_MODE_AUTO_RETRY, to switch this
      behaviour off so that we never return unless we have read the data we
      wanted to.
      
      Commit ad962252 fixed a DTLS problem where we always retried even if
      SSL_MODE_AUTO_RETRY was not set. However that fix caused the Boring
      ossl_shim to fail in some tests because it was relying on the previous
      (buggy) behaviour. The ossl_shim should be set into SSL_MODE_AUTO_RETRY if
      it is not operating asynchronously to avoid this problem.
      
      [extended tests]
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/6216)
      c3114a77
  2. 10 5月, 2018 2 次提交
  3. 08 5月, 2018 2 次提交
  4. 03 5月, 2018 3 次提交
  5. 01 5月, 2018 1 次提交
  6. 30 4月, 2018 1 次提交
  7. 27 4月, 2018 2 次提交
  8. 25 4月, 2018 2 次提交
    • R
      test/recipes/15-test_out_option.t: refine tests · 39e32be1
      Richard Levitte 提交于
      Test writing to the null device.  This should be successful.
      
      Also, refactor so the planned number of tests is calculated.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/6033)
      39e32be1
    • N
      [SM2_sign] add minimal EVP_PKEY functionality testing · 22f0c72b
      Nicola Tuveri 提交于
      The actual functionality of generating signatures through the `EVP_PKEY`
      API is completely untested.
      Current tests under the `EVP_PKEY` API
      (`test/recipes/30-test_evp_data/evppkey.txt`) only cover `Verify` and
      `Decrypt`, while encryption and signature generation are tested with
      ad-hoc clients (`test/sm2crypttest.c`, `test/sm2signtest.c`) that do not
      call the `EVP_PKEY` interface at all but soon-to-be private functions
      that bypass it (cf. PR#5895 ).
      
      It is my opinion that an ideal solution for the future would consist on
      enhancing the `test/evp_pkey` facility and syntax to allow tests to take
      control of the PRNG to inject known nonces and validate the results of
      `EVP_PKEY` implementations against deterministic known answer tests, but
      it is probably too late to work on this feature in time for next release.
      
      Given that commit b5a85f70d8 highlights some critical bugs in the hook
      between the `EVP_PKEY` interface and SM2 signature generation and that
      these defects escaped testing and code review, I think that at least for
      now it is beneficial to at least add the kind of "bogus" testing
      provided by this patch:
      this is a "fake" test as it does only verify that the SM2 `EVP_PKEY`
      interface is capable of creating a signature without failing, but it
      does not say anything about the generated signature being valid, nor
      does it test the functional correctness of the cryptosystem.
      Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/6066)
      22f0c72b
  9. 24 4月, 2018 2 次提交
  10. 20 4月, 2018 2 次提交
  11. 19 4月, 2018 3 次提交
  12. 18 4月, 2018 5 次提交
  13. 17 4月, 2018 4 次提交
  14. 15 4月, 2018 1 次提交
  15. 13 4月, 2018 2 次提交
  16. 08 4月, 2018 1 次提交
  17. 04 4月, 2018 3 次提交
  18. 03 4月, 2018 1 次提交
  19. 02 4月, 2018 1 次提交