Skip to content

Commit

Permalink
Add SSL support to "stream" library and OVSDB.
Browse files Browse the repository at this point in the history
  • Loading branch information
blp committed Jan 6, 2010
1 parent d474bd0 commit 9467fe6
Show file tree
Hide file tree
Showing 21 changed files with 1,272 additions and 58 deletions.
4 changes: 4 additions & 0 deletions lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ lib_libopenvswitch_a_SOURCES = \
lib/stream-fd.c \
lib/stream-fd.h \
lib/stream-provider.h \
lib/stream-ssl.h \
lib/stream-tcp.c \
lib/stream-unix.c \
lib/stream.c \
Expand Down Expand Up @@ -168,6 +169,7 @@ endif

if HAVE_OPENSSL
lib_libopenvswitch_a_SOURCES += \
lib/stream-ssl.c \
lib/vconn-ssl.c
nodist_lib_libopenvswitch_a_SOURCES += lib/dhparams.c
lib/dhparams.c: lib/dh1024.pem lib/dh2048.pem lib/dh4096.pem
Expand All @@ -193,8 +195,10 @@ EXTRA_DIST += \
lib/dpif.man \
lib/leak-checker.man \
lib/ssl-bootstrap.man \
lib/ssl-bootstrap-syn.man \
lib/ssl-peer-ca-cert.man \
lib/ssl.man \
lib/ssl-syn.man \
lib/vconn-active.man \
lib/vconn-passive.man \
lib/vlog-unixctl.man \
Expand Down
2 changes: 2 additions & 0 deletions lib/ssl-bootstrap-syn.man
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.br
[\fB\-\-bootstrap\-ca\-cert=\fIcacert.pem]
6 changes: 6 additions & 0 deletions lib/ssl-syn.man
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.IP "Public key infrastructure options:"
[\fB\-\-private\-key=\fIprivkey.pem\fR]
.br
[\fB\-\-certificate=\fIcert.pem\fR]
.br
[\fB\-\-ca\-cert=\fIswitch\-cacert.pem\fR]
4 changes: 4 additions & 0 deletions lib/stream-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,9 @@ extern struct stream_class tcp_stream_class;
extern struct pstream_class ptcp_pstream_class;
extern struct stream_class unix_stream_class;
extern struct pstream_class punix_pstream_class;
#ifdef HAVE_OPENSSL
extern struct stream_class ssl_stream_class;
extern struct pstream_class pssl_pstream_class;
#endif

#endif /* stream-provider.h */
Loading

0 comments on commit 9467fe6

Please sign in to comment.