]> git.proxmox.com Git - mirror_ovs.git/blame - lib/stream-nossl.c
ovsdb-idl: Fix iteration over tracked rows with no actual data.
[mirror_ovs.git] / lib / stream-nossl.c
CommitLineData
bf8f2167 1/*
e18a1d08 2 * Copyright (c) 2011, 2016 Nicira, Inc.
bf8f2167
BP
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <config.h>
18#include "stream-ssl.h"
e6211adc 19#include "openvswitch/vlog.h"
bf8f2167
BP
20
21VLOG_DEFINE_THIS_MODULE(stream_nossl);
22\f
23/* Dummy function definitions, used when OVS is built without OpenSSL. */
24
25bool
26stream_ssl_is_configured(void)
27{
28 return false;
29}
30
cab50449 31OVS_NO_RETURN static void
bf8f2167
BP
32nossl_option(const char *detail)
33{
34 VLOG_FATAL("%s specified but Open vSwitch was built without SSL support",
35 detail);
36}
37
38void
39stream_ssl_set_private_key_file(const char *file_name)
40{
41 if (file_name != NULL) {
42 nossl_option("Private key");
43 }
44}
45
46void
47stream_ssl_set_certificate_file(const char *file_name)
48{
49 if (file_name != NULL) {
50 nossl_option("Certificate");
51 }
52}
53
54void
55stream_ssl_set_ca_cert_file(const char *file_name, bool bootstrap OVS_UNUSED)
56{
57 if (file_name != NULL) {
58 nossl_option("CA certificate");
59 }
60}
61
62void
63stream_ssl_set_peer_ca_cert_file(const char *file_name)
64{
65 if (file_name != NULL) {
66 nossl_option("Peer CA certificate");
67 }
68}
69
70void
71stream_ssl_set_key_and_cert(const char *private_key_file,
72 const char *certificate_file)
73{
74 stream_ssl_set_private_key_file(private_key_file);
75 stream_ssl_set_certificate_file(certificate_file);
76}
e18a1d08
ER
77
78void
79stream_ssl_set_protocols(const char *arg OVS_UNUSED)
80{
81 /* Ignore this option since it seems harmless to set SSL protocols if SSL
82 * won't be used. */
83}
84
85void
86stream_ssl_set_ciphers(const char *arg OVS_UNUSED)
87{
88 /* Ignore this option since it seems harmless to set SSL ciphers if SSL
89 * won't be used. */
90}