Portable build framework for OpenNTPD
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.

31 lines
373 B

  1. /*
  2. * Public domain
  3. * tls.h compatibility shim
  4. */
  5. #ifdef HAVE_LIBTLS
  6. #include_next <tls.h>
  7. #else
  8. #ifndef LIBCOMPAT_LIBTLS_H
  9. #define LIBCOMPAT_LIBTLS_H
  10. #include <sys/types.h>
  11. #include <stdint.h>
  12. static inline int
  13. tls_init(void)
  14. {
  15. return -1;
  16. }
  17. static inline uint8_t *
  18. tls_load_file(const char *_file, size_t *_len, char *_password)
  19. {
  20. return NULL;
  21. }
  22. #endif
  23. #endif