commit 028565022d76be1785a698ad98488311a25f9027
Author: Daniel B. Giffin <dbg@scs.stanford.edu>
Date:   Mon Sep 15 17:58:44 2014 -0700

    libtcpcrypt: export only public symbols

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 5159272..e7c3cbd 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,13 +1,17 @@
 lib_LTLIBRARIES = libtcpcrypt.la
 libtcpcrypt_ladir = $(includedir)/tcpcrypt
-libtcpcrypt_la_HEADERS = \
-	$(top_srcdir)/include/tcpcrypt/tcpcrypt.h \
-	$(top_srcdir)/shared/socket_address.h
+libtcpcrypt_la_HEADERS = $(top_srcdir)/include/tcpcrypt/tcpcrypt.h
 libtcpcrypt_la_SOURCES = \
 	sockopt.c \
 	$(top_srcdir)/src/tcpcrypt_ctl.h \
-	$(top_srcdir)/shared/socket_address.c
-libtcpcrypt_la_CFLAGS  = -I$(top_srcdir)/include/ -iquote$(top_srcdir)/
+	$(top_srcdir)/shared/socket_address.h \
+	$(top_srcdir)/shared/socket_address.c \
+	libtcpcrypt.sym
+
+libtcpcrypt_la_CFLAGS  = \
+	-I$(top_srcdir)/include/ \
+	-I$(top_srcdir)/ \
+	-export-symbols $(srcdir)/libtcpcrypt.sym
 
 TCPCRYPT_LIBRARY_VERSION = 0:0:0
 libtcpcrypt_la_LDFLAGS = -version-info $(TCPCRYPT_LIBRARY_VERSION)
diff --git a/lib/libtcpcrypt.sym b/lib/libtcpcrypt.sym
new file mode 100644
index 0000000..1e9ae90
--- /dev/null
+++ b/lib/libtcpcrypt.sym
@@ -0,0 +1,4 @@
+tcpcrypt_getsessid
+tcpcrypt_getsockopt
+tcpcrypt_setparam
+tcpcrypt_setsockopt
