git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix dependencies for external nodes
[sliver-openvswitch.git]
/
lib
/
stream-ssl.c
diff --git
a/lib/stream-ssl.c
b/lib/stream-ssl.c
index
0ca5b18
..
23c5591
100644
(file)
--- a/
lib/stream-ssl.c
+++ b/
lib/stream-ssl.c
@@
-17,7
+17,6
@@
#include <config.h>
#include "stream-ssl.h"
#include "dhparams.h"
#include <config.h>
#include "stream-ssl.h"
#include "dhparams.h"
-#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
@@
-599,7
+598,7
@@
ssl_recv(struct stream *stream, void *buffer, size_t n)
ssize_t ret;
/* Behavior of zero-byte SSL_read is poorly defined. */
ssize_t ret;
/* Behavior of zero-byte SSL_read is poorly defined. */
- assert(n > 0);
+
ovs_
assert(n > 0);
old_state = SSL_get_state(sslv->ssl);
ret = SSL_read(sslv->ssl, buffer, n);
old_state = SSL_get_state(sslv->ssl);
ret = SSL_read(sslv->ssl, buffer, n);
@@
-805,7
+804,7
@@
pssl_open(const char *name OVS_UNUSED, char *suffix, struct pstream **pstreamp,
return -fd;
}
sprintf(bound_name, "pssl:%"PRIu16":"IP_FMT,
return -fd;
}
sprintf(bound_name, "pssl:%"PRIu16":"IP_FMT,
- ntohs(sin.sin_port), IP_ARGS(
&
sin.sin_addr.s_addr));
+ ntohs(sin.sin_port), IP_ARGS(sin.sin_addr.s_addr));
pssl = xmalloc(sizeof *pssl);
pstream_init(&pssl->pstream, &pssl_pstream_class, bound_name);
pssl = xmalloc(sizeof *pssl);
pstream_init(&pssl->pstream, &pssl_pstream_class, bound_name);
@@
-847,7
+846,7
@@
pssl_accept(struct pstream *pstream, struct stream **new_streamp)
return error;
}
return error;
}
- sprintf(name, "ssl:"IP_FMT, IP_ARGS(
&sin.sin
_addr));
+ sprintf(name, "ssl:"IP_FMT, IP_ARGS(
sin.sin_addr.s
_addr));
if (sin.sin_port != htons(OFP_SSL_PORT)) {
sprintf(strchr(name, '\0'), ":%"PRIu16, ntohs(sin.sin_port));
}
if (sin.sin_port != htons(OFP_SSL_PORT)) {
sprintf(strchr(name, '\0'), ":%"PRIu16, ntohs(sin.sin_port));
}
@@
-897,7
+896,7
@@
ssl_init(void)
static int init_status = -1;
if (init_status < 0) {
init_status = do_ssl_init();
static int init_status = -1;
if (init_status < 0) {
init_status = do_ssl_init();
- assert(init_status >= 0);
+
ovs_
assert(init_status >= 0);
}
return init_status;
}
}
return init_status;
}