1. 28 Jul, 2015 1 commit
    • Fix undefined reference with old versions of openssl · f5740391
      Versions prior to 0.9.8f  did not have this function, rhel/centos5 are still on a
      heavily backported version of 0.9.8e and theoretically supported until March 2017
      
      Without this ifdef, I get the following link failure:
      ```
      CMakeFiles/libgit2_clar.dir/src/openssl_stream.c.o: In function `openssl_connect':
      openssl_stream.c:(.text+0x45a): undefined reference to `SSL_set_tlsext_host_name'
      collect2: error: ld returned 1 exit status
      make[6]: *** [libgit2_clar] Error 1
      ```
      Tony Kelman committed
  2. 29 Jun, 2015 1 commit
  3. 26 Jun, 2015 1 commit
  4. 24 Jun, 2015 2 commits
  5. 21 May, 2015 1 commit
  6. 20 May, 2015 1 commit
  7. 09 May, 2015 1 commit
  8. 23 Apr, 2015 2 commits
  9. 02 Mar, 2015 2 commits
  10. 24 Jan, 2015 1 commit
    • openssl: Add all required includes for AF_INET6 and in6_addr. · 3cda6be7
      This fixes the build at least on FreeBSD, where those types were not
      defined indirectly:
      
      src/openssl_stream.c:100:18: error: variable has incomplete type 'struct in6_addr'
              struct in6_addr addr6;
                              ^
      src/openssl_stream.c:100:9: note: forward declaration of 'struct in6_addr'
              struct in6_addr addr6;
                     ^
      src/openssl_stream.c:111:18: error: use of undeclared identifier 'AF_INET'
              if (p_inet_pton(AF_INET, host, &addr4)) {
                              ^
      src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
                                             ^
      src/openssl_stream.c:115:18: error: use of undeclared identifier 'AF_INET6'
                      if(p_inet_pton(AF_INET6, host, &addr6)) {
                                     ^
      src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
                                             ^
      Raphael Kubo da Costa committed
  11. 10 Dec, 2014 3 commits