projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vconn: New function vconn_ssl_is_configured().
[openvswitch]
/
lib
/
vconn-ssl.c
diff --git
a/lib/vconn-ssl.c
b/lib/vconn-ssl.c
index 607d9b9e7310a289d1f1eb03b9f465cb16a90516..0da4c578da8fce6a851d05bf19616a1b5b1d7e90 100644
(file)
--- a/
lib/vconn-ssl.c
+++ b/
lib/vconn-ssl.c
@@
-867,6
+867,13
@@
tmp_dh_callback(SSL *ssl, int is_export UNUSED, int keylength)
return NULL;
}
+/* Returns true if SSL is at least partially configured. */
+bool
+vconn_ssl_is_configured(void)
+{
+ return has_private_key || has_certificate || has_ca_cert;
+}
+
void
vconn_ssl_set_private_key_file(const char *file_name)
{