Support SSL in secchan and controller.
[openvswitch] / lib / Makefile.am
index d9a490c5feb246b60245e0eed2a668fad5786ea7..1ef8bd03e29a666116df58b8d99a075a170e03af 100644 (file)
@@ -25,3 +25,17 @@ libopenflow_la_SOURCES += \
        netlink.c \
        vconn-netlink.c
 endif
+
+if HAVE_OPENSSL
+libopenflow_la_SOURCES += \
+       vconn-ssl.c \
+       dhparams.c
+dhparams.c: dh512.pem dh1024.pem dh2048.pem dh4096.pem
+       (echo '#include "dhparams.h"' &&                        \
+        openssl dhparam -C -in $(srcdir)/dh512.pem -noout &&   \
+        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