1. 15 4月, 2020 1 次提交
  2. 11 4月, 2020 2 次提交
  3. 08 4月, 2020 1 次提交
  4. 07 4月, 2020 1 次提交
    • R
      PROV: Add the beginning of a DER writing library · 1d39620b
      Richard Levitte 提交于
      This library is meant to be small and quick.  It's based on WPACKET,
      which was extended to support DER writing.  The way it's used is a
      bit unusual, as it's used to write the structures backward into a
      given buffer.  A typical quick call looks like this:
      
          /*
           * Fill in this structure:
           *
           * something ::= SEQUENCE {
           *     id OBJECT IDENTIFIER,
           *     x [0] INTEGER OPTIONAL,
           *     y [1] BOOLEAN OPTIONAL,
           *     n INTEGER
           * }
           */
          unsigned char buf[nnnn], *p = NULL;
          size_t encoded_len = 0;
          WPACKET pkt;
          int ok;
      
          ok =   WPACKET_init_der(&pkt, buf, sizeof(buf)
              && DER_w_start_sequence(&pkt, -1)
              && DER_w_bn(&pkt, -1, bn)
              && DER_w_boolean(&pkt, 1, bool)
              && DER_w_precompiled(&pkt, -1, OID, sizeof(OID))
              && DER_w_end_sequence(&pkt, -1)
              && WPACKET_finish(&pkt)
              && WPACKET_get_total_written(&pkt, &encoded_len)
              && (p = WPACKET_get_curr(&pkt)) != NULL;
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/11450)
      1d39620b
  5. 03 4月, 2020 1 次提交
  6. 27 3月, 2020 1 次提交
  7. 26 3月, 2020 1 次提交
  8. 25 3月, 2020 1 次提交
  9. 20 3月, 2020 1 次提交
  10. 10 3月, 2020 1 次提交
  11. 03 3月, 2020 1 次提交
  12. 28 2月, 2020 1 次提交
  13. 18 2月, 2020 1 次提交
  14. 17 2月, 2020 1 次提交
  15. 10 2月, 2020 1 次提交
  16. 07 2月, 2020 2 次提交
  17. 24 1月, 2020 1 次提交
  18. 23 1月, 2020 2 次提交
  19. 17 1月, 2020 1 次提交
  20. 16 1月, 2020 1 次提交
  21. 26 12月, 2019 1 次提交
  22. 22 12月, 2019 1 次提交
  23. 12 12月, 2019 1 次提交
  24. 30 11月, 2019 1 次提交
    • R
      SERIALIZER: add support for serializing EVP_PKEYs · 866234ac
      Richard Levitte 提交于
      The following public functions is added:
      
      - OSSL_SERIALIZER_CTX_new_by_EVP_PKEY()
      - OSSL_SERIALIZER_CTX_set_cipher()
      - OSSL_SERIALIZER_CTX_set_passphrase()
      - OSSL_SERIALIZER_CTX_set_passphrase_cb()
      - OSSL_SERIALIZER_CTX_set_passphrase_ui()
      
      OSSL_SERIALIZER_CTX_new_by_EVP_PKEY() selects a suitable serializer
      for the given EVP_PKEY, and sets up the OSSL_SERIALIZER_CTX to
      function together with OSSL_SERIALIZER_to_bio() and
      OSSL_SERIALIZER_to_fp().
      
      OSSL_SERIALIZER_CTX_set_cipher() indicates what cipher should be used
      to produce an encrypted serialization of the EVP_PKEY.  This is passed
      directly to the provider using OSSL_SERIALIZER_CTX_set_params().
      
      OSSL_SERIALIZER_CTX_set_passphrase() can be used to set a pass phrase
      to be used for the encryption.  This is passed directly to the
      provider using OSSL_SERIALIZER_CTX_set_params().
      
      OSSL_SERIALIZER_CTX_set_passphrase_cb() and
      OSSL_SERIALIZER_CTX_set_passphrase_ui() sets up a callback to be used
      to prompt for a passphrase.  This is stored in the context, and is
      called via an internal intermediary at the time of serialization.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/10394)
      866234ac
  25. 15 11月, 2019 1 次提交
  26. 12 11月, 2019 1 次提交
  27. 16 10月, 2019 1 次提交
  28. 02 10月, 2019 1 次提交
  29. 06 9月, 2019 1 次提交
  30. 31 7月, 2019 1 次提交
  31. 02 7月, 2019 1 次提交
  32. 28 6月, 2019 3 次提交
  33. 24 6月, 2019 1 次提交
  34. 21 6月, 2019 1 次提交
  35. 12 6月, 2019 1 次提交
    • M
      Make find-doc-nits check for newly added undocumented symbols · b5283535
      Matt Caswell 提交于
      We create lists of undocumented functions and macros as they are now so
      that find-doc-nits can check for newly introduced functions/macros that
      are undocumented.
      
      This works in a similar way to the -u and -d options to find-doc-nits.
      These count undocumented symbols and print a detailed list of undocumented
      symbols repsectively. This commit adds the -v and -e options to restrict
      the count/detailed list to newly added undocumented symbols only.
      
      There is also a new -s option that does the same as -e except that it
      produces no output if there are no newly undocumented symbols.
      
      We also amend "make doc-nits" to add the -s option which should cause
      travis to fail if a PR adds undocumented symbols.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/9094)
      b5283535