1. 13 4月, 2016 1 次提交
  2. 07 4月, 2016 1 次提交
  3. 05 4月, 2016 1 次提交
    • E
      New SSL test framework · 453dfd8d
      Emilia Kasper 提交于
      Currently, SSL tests are configured via command-line switches to
      ssltest.c. This results in a lot of duplication between ssltest.c and
      apps, and a complex setup. ssltest.c is also simply old and needs
      maintenance.
      
      Instead, we already have a way to configure SSL servers and clients, so
      we leverage that. SSL tests can now be configured from a configuration
      file. Test servers and clients are configured using the standard
      ssl_conf module. Additional test settings are configured via a test
      configuration.
      
      Moreover, since the CONF language involves unnecessary boilerplate, the
      test conf itself is generated from a shorter Perl syntax.
      
      The generated testcase files are checked in to the repo to make
      it easier to verify that the intended test cases are in fact run; and to
      simplify debugging failures.
      
      To demonstrate the approach, min/max protocol tests are converted to the
      new format. This change also fixes MinProtocol and MaxProtocol
      handling. It was previously requested that an SSL_CTX have both the
      server and client flags set for these commands; this clearly can never work.
      
      Guide to this PR:
       - test/ssl_test.c - test framework
       - test/ssl_test_ctx.* - test configuration structure
       - test/handshake_helper.* - new SSL test handshaking code
       - test/ssl-tests/ - test configurations
       - test/generate_ssl_tests.pl - script for generating CONF-style test
         configurations from perl inputs
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      453dfd8d
  4. 04 4月, 2016 1 次提交
  5. 03 4月, 2016 1 次提交
  6. 02 4月, 2016 1 次提交
  7. 01 4月, 2016 1 次提交
    • R
      Make the use of perl more consistent · 5902821d
      Richard Levitte 提交于
      - In Configure, register the perl interpreter used to run Configure,
        so that's the one being used throughout instead of something else
        that Configure happens to find.  This is helpful for using a perl
        version that's not necessarely first in $PATH:
      
          /opt/perl/5.22.1/bin/perl ./Configure
      
      - Make apps/tsget a generated file, just like apps/CA.pl, so the
        perl interpreter registered by Configure becomes the hashbang path
        instead of a hardcoded /usr/bin/perl
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      5902821d
  8. 30 3月, 2016 1 次提交
  9. 21 3月, 2016 2 次提交
  10. 20 3月, 2016 3 次提交
  11. 19 3月, 2016 6 次提交
  12. 17 3月, 2016 2 次提交
  13. 16 3月, 2016 3 次提交
  14. 13 3月, 2016 3 次提交
  15. 12 3月, 2016 2 次提交
    • R
      Avoid sed for dependency post-processing · ef75444d
      Richard Levitte 提交于
      It turns out that different sed implementations treat -i differently
      to cause issues.  make it simpler by avoiding it entirely and give
      perl the trust to be consistent enough.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      ef75444d
    • R
      Some sed implementations are not greedy enough, use perl instead · bb26842d
      Richard Levitte 提交于
      The issue is demonstrated as follows:
      
        On Linux:
      
          $ echo ': foo.h /usr/include/stddef.h bar.h' | sed -e 's/ \/\(\\.\|[^ ]\)*//g'
          : foo.h bar.h
      
        On MacOS X:
      
          $ echo ': foo.h /usr/include/stddef.h bar.h' | sed -e 's/ \/\(\\.\|[^ ]\)*//g'
          : foo.husr/include/stddef.h bar.h
      
      Perl is more consistent:
      
        On Linux:
      
          $ echo ': foo.h /usr/include/stddef.h bar.h' | perl -pe 's/ \/(\\.|[^ ])*//g;'
          : foo.h bar.h
      
        On MacOS X:
      
          $ echo ': foo.h /usr/include/stddef.h bar.h' | perl -pe 's/ \/(\\.|[^ ])*//g;'
          : foo.h bar.h
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      bb26842d
  16. 11 3月, 2016 3 次提交
  17. 10 3月, 2016 1 次提交
  18. 09 3月, 2016 2 次提交
    • R
      Adapt unix Makefile template to 'no-makedepend' · 29eed3dd
      Richard Levitte 提交于
      This change is a bit more complex, as it involves several recipe
      variants.
      
      Also, remove the $(CROSS_COMPILE) prefix for the makedepend program.
      When we use the program "makedepend", this doesn't serve anything,
      and when we use the compiler, this value isn't even used.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      29eed3dd
    • R
      Redo the Unix source code generator · 8458f1bf
      Richard Levitte 提交于
      For assembler, we want the final target to be foo.s (lowercase s).
      However, the build.info may have lines like this (note upper case S):
      
          GENERATE[foo.S]=foo.pl
      
      This indicates that foo.s (lowercase s) is still to be produced, but
      that producing it will take an extra step via $(CC) -E.  Therefore,
      the following variants (simplified for display) can be generated:
      
          GENERATE[foo.S]=foo.pl  =>  foo.s: foo.pl
                                      	$(PERL) $foo.pl $@.S; \
                                      	$(CC) $(CFLAGS) -E -P $@.S > $@ && \
                                      	rm -f $@.S
      
          GENERATE[foo.s]=foo.pl  =>  foo.s: foo.pl
                                      	$(PERL) $foo.pl $@
      
          GENERATE[foo.S]=foo.m4  =>  foo.s: foo.m4
                                      	m4 -B 8192 $foo.m4 > $@.S; \
                                      	$(CC) $(CFLAGS) -E -P $@.S > $@ && \
                                      	rm -f $@.S
      
          GENERATE[foo.s]=foo.m4  =>  foo.s: foo.m4
                                      	m4 -B 8192 $foo.m4 > $@
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      8458f1bf
  19. 08 3月, 2016 2 次提交
  20. 04 3月, 2016 2 次提交
  21. 03 3月, 2016 1 次提交