Rename controller_connection to rconn and use it in secchan also.
[openvswitch] / lib / Makefile.am
index d9a490c5feb246b60245e0eed2a668fad5786ea7..c34cba433a0d4bde76fcfa22dac57a3537e24367 100644 (file)
@@ -12,6 +12,9 @@ libopenflow_la_SOURCES = \
        hash.c \
        list.c \
        ofp-print.c \
+       poll-loop.c \
+       queue.c \
+       rconn.c \
        socket-util.c \
        util.c \
        vconn-tcp.c \
@@ -25,3 +28,18 @@ libopenflow_la_SOURCES += \
        netlink.c \
        vconn-netlink.c
 endif
+
+if HAVE_OPENSSL
+libopenflow_la_SOURCES += \
+       vconn-ssl.c 
+nodist_libopenflow_la_SOURCES = dhparams.c
+dhparams.c: dh1024.pem dh2048.pem dh4096.pem
+       (echo '#include "dhparams.h"' &&                        \
+        openssl dhparam -C -in $(srcdir)/dh1024.pem -noout &&  \
+        openssl dhparam -C -in $(srcdir)/dh2048.pem -noout &&  \
+        openssl dhparam -C -in $(srcdir)/dh4096.pem -noout)    \
+       | sed 's/\(get_dh[0-9]*\)()/\1(void)/' > dhparams.c.tmp
+       mv dhparams.c.tmp dhparams.c
+endif
+
+EXTRA_DIST = dh1024.pem dh2048.pem dh4096.pem dhparams.h