commit - 89a8666a0364791b8c6b40f914b1dc919592d1ee
commit + 7e97fd319197d8a100a5de3f613a02253977b26b
blob - 1a04a063314fb2fb9e9b5344a346eb6e4c2dcead
blob + b065fd4370af8bf8b2e9e1965d21cb5f905c12f0
--- configure.ac
+++ configure.ac
],
AC_MSG_ERROR(["*** Couldn't find libtls ***"])
)
+
+# Look for crypto (part of openssl)
+PKG_CHECK_MODULES(
+ LIBCRYPTO,
+ [libcrypto],
+ [
+ libcrypto_CFLAGS="$LIBCRYPTO_CFLAGS"
+ libcrypto_LIBS="$LIBCRYPTO_LIBS"
+ AC_SUBST(libcrypto_CFLAGS)
+ AC_SUBST(libcrypto_LIBS)
+ ],
+ AC_MSG_ERROR(["*** Couldn't find libcrypto ***"])
+)
fi
# Look for __progname.
blob - 1cbc9bf79ffeb8bb5f2f5e42877dfb8c3a155986
blob + 004a2be18921988cf17814c84201ddb89b275e0c
--- gotd/libexec/got-notify-http/Makefile.am
+++ gotd/libexec/got-notify-http/Makefile.am
got_notify_http_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
LDADD = -L$(top_builddir)/compat -lopenbsd-compat
-LDADD += $(zlib_LIBS) $(libbsd_LIBS) $(libutil_LIBS) $(libmd_LIBS) $(libtls_LIBS)
+LDADD += $(zlib_LIBS) $(libbsd_LIBS) $(libutil_LIBS) $(libmd_LIBS) \
+ $(libtls_LIBS) $(libcrypto_LIBS)
if HOST_FREEBSD
LDADD += -lmd
endif
LDADD += -ltls
endif
-AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS) $(libtls_CFLAGS)
+AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS) \
+ $(libtls_CFLAGS) $(libcrypto_CFLAGS)
blob - e100344e77d2e37963d0fc58732e8b298127b4a6
blob + e96c864b1063d14085e71cf29b14566c0f446574
--- gotd/libexec/got-notify-http/got-notify-http.c
+++ gotd/libexec/got-notify-http/got-notify-http.c
#include <limits.h>
#include <netdb.h>
#include <poll.h>
-#include <sha1.h>
-#include <sha2.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>