1. 04 2月, 2016 2 次提交
    • R
      Refactoring BIO: Small adjustments · a5cc75d6
      Richard Levitte 提交于
      Because of the way bio_lcl.h is organised, we must not include
      internal/cryptlib.h before it.  As a matter of fact, bio_lcl.h
      includes internal/cryptlib.h on its own.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      a5cc75d6
    • R
      Refactoring BIO: add wrappers around sockaddr et al · 28a0841b
      Richard Levitte 提交于
      Because different platforms have different levels of support for IPv6,
      different kinds of sockaddr variants, and some have getaddrinfo et al
      while others don't, we could end up with a mess if ifdefs, duplicate
      code and other maintainance nightmares.
      
      Instead, we're introducing wrappers around the common form for socket
      communication:
      BIO_ADDR, closely related to struct sockaddr and some of its variants.
      BIO_ADDRINFO, closely related to struct addrinfo.
      
      With that comes support routines, both convenient creators and
      accessors, plus a few utility functions:
      
      BIO_parse_hostserv, takes a string of the form host:service and
      splits it into host and service.  It checks for * in both parts, and
      converts any [ipv6-address] syntax to ust the IPv6 address.
      
      BIO_lookup, looks up information on a host.
      
      All routines handle IPv4 (AF_INET) and IPv6 (AF_INET6) addresses, and
      there is support for local sockets (AF_UNIX) as well.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      28a0841b
  2. 01 2月, 2016 2 次提交
  3. 30 1月, 2016 1 次提交
  4. 27 1月, 2016 1 次提交
    • R
      Remove /* foo.c */ comments · 34980760
      Rich Salz 提交于
      This was done by the following
              find . -name '*.[ch]' | /tmp/pl
      where /tmp/pl is the following three-line script:
              print unless $. == 1 && m@/\* .*\.[ch] \*/@;
              close ARGV if eof; # Close file to reset $.
      
      And then some hand-editing of other files.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      34980760
  5. 20 1月, 2016 1 次提交
  6. 18 1月, 2016 1 次提交
  7. 13 1月, 2016 1 次提交
  8. 22 12月, 2015 1 次提交
  9. 18 12月, 2015 1 次提交
  10. 17 12月, 2015 1 次提交
    • R
      Rename some BUF_xxx to OPENSSL_xxx · 7644a9ae
      Rich Salz 提交于
      Rename BUF_{strdup,strlcat,strlcpy,memdup,strndup,strnlen}
      to OPENSSL_{strdup,strlcat,strlcpy,memdup,strndup,strnlen}
      Add #define's for the old names.
      Add CRYPTO_{memdup,strndup}, called by OPENSSL_{memdup,strndup} macros.
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      7644a9ae
  11. 13 12月, 2015 1 次提交
  12. 02 12月, 2015 1 次提交
  13. 24 11月, 2015 1 次提交
  14. 10 11月, 2015 1 次提交
  15. 05 11月, 2015 1 次提交
  16. 03 11月, 2015 2 次提交
  17. 24 10月, 2015 1 次提交
  18. 05 10月, 2015 3 次提交
  19. 30 9月, 2015 1 次提交
    • D
      Fix no-stdio build · 984d6c60
      David Woodhouse 提交于
      Much related/similar work also done by
      Ivan Nestlerode <ivan.nestlerode@sonos.com>
      
         +Replace FILE BIO's with dummy ops that fail.
         +Include <stdio.h> for sscanf() even with no-stdio (since the declaration
          is there). We rely on sscanf() to parse the OPENSSL_ia32cap environment
          variable, since it can be larger than a 'long'. And we don't rely on the
          availability of strtoull().
         +Remove OPENSSL_stderr(); not used.
         +Make OPENSSL_showfatal() do nothing (currently without stdio there's
          nothing we can do).
         +Remove file-based functionality from ssl/. The function
          prototypes were already gone, but not the functions themselves.
         +Remove unviable conf functionality via SYS_UEFI
         +Add fallback definition of BUFSIZ.
         +Remove functions taking FILE * from header files.
         +Add missing DECLARE_PEM_write_fp_const
         +Disable X509_LOOKUP_hash_dir(). X509_LOOKUP_file() was already compiled out,
          so remove its prototype.
         +Use OPENSSL_showfatal() in CRYPTO_destroy_dynlockid().
         +Eliminate SRP_VBASE_init() and supporting functions. Users will need to
          build the verifier manually instead.
         +Eliminate compiler warning for unused do_pk8pkey_fp().
         +Disable TEST_ENG_OPENSSL_PKEY.
         +Disable GOST engine as is uses [f]printf all over the place.
         +Eliminate compiler warning for unused send_fp_chars().
      Signed-off-by: NRich Salz <rsalz@akamai.com>
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      984d6c60
  20. 23 9月, 2015 1 次提交
  21. 22 9月, 2015 1 次提交
  22. 04 9月, 2015 1 次提交
  23. 03 9月, 2015 1 次提交
  24. 29 6月, 2015 2 次提交
  25. 24 6月, 2015 1 次提交
  26. 10 6月, 2015 2 次提交
    • M
      Change BIO_number_read and BIO_number_written() to be 64 bit · b8b12aad
      Matt Caswell 提交于
      The return type of BIO_number_read() and BIO_number_written() as well as
      the corresponding num_read and num_write members in the BIO structure has
      been changed from unsigned long to uint64_t. On platforms where an unsigned
      long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is
      transferred.
      
      With thanks to the Open Crypto Audit Project for reporting this issue.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b8b12aad
    • M
      Fix memory leaks in BIO_dup_chain() · aec54108
      Matt Caswell 提交于
      This fixes a memory leak that can occur whilst duplicating a BIO chain if
      the call to CRYPTO_dup_ex_data() fails. It also fixes a second memory leak
      where if a failure occurs after successfully creating the first BIO in the
      chain, then the beginning of the new chain was not freed.
      
      With thanks to the Open Crypto Audit Project for reporting this issue.
      Reviewed-by: NStephen Henson <steve@openssl.org>
      aec54108
  27. 03 6月, 2015 1 次提交
  28. 02 6月, 2015 1 次提交
  29. 26 5月, 2015 1 次提交
  30. 23 5月, 2015 1 次提交
    • R
      Fix the update target and remove duplicate file updates · 0f539dc1
      Richard Levitte 提交于
      We had updates of certain header files in both Makefile.org and the
      Makefile in the directory the header file lived in.  This is error
      prone and also sometimes generates slightly different results (usually
      just a comment that differs) depending on which way the update was
      done.
      
      This removes the file update targets from the top level Makefile, adds
      an update: target in all Makefiles and has it depend on the depend: or
      local_depend: targets, whichever is appropriate, so we don't get a
      double run through the whole file tree.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      0f539dc1
  31. 14 5月, 2015 2 次提交
  32. 11 5月, 2015 1 次提交