You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
536 B

  1. --- a/include/h2o/socket.h
  2. +++ b/include/h2o/socket.h
  3. @@ -29,6 +29,7 @@
  4. #include <stdint.h>
  5. #include <sys/socket.h>
  6. #include <openssl/ssl.h>
  7. +#include <openssl/opensslconf.h>
  8. #include "h2o/cache.h"
  9. #include "h2o/memory.h"
  10. #include "h2o/openssl_backport.h"
  11. @@ -45,7 +44,11 @@
  12. #if OPENSSL_VERSION_NUMBER >= 0x10002000L
  13. #define H2O_USE_ALPN 1
  14. +#ifndef OPENSSL_NO_NEXTPROTONEG
  15. #define H2O_USE_NPN 1
  16. +#else
  17. +#define H2O_USE_NPN 0
  18. +#endif
  19. #elif OPENSSL_VERSION_NUMBER >= 0x10001000L
  20. #define H2O_USE_ALPN 0
  21. #define H2O_USE_NPN 1