projects
/
oweals
/
openwrt-ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ustream-openssl: clear error stack before SSL_read/SSL_write
[oweals/openwrt-ustream-ssl.git]
/
ustream-openssl.h
diff --git
a/ustream-openssl.h
b/ustream-openssl.h
index ef786f2810dddd2f194ac0585f99758b91fd3c02..0a6ca91023d0f9b13fb8878610e56a5dbd4fecbc 100644
(file)
--- a/
ustream-openssl.h
+++ b/
ustream-openssl.h
@@
-19,6
+19,10
@@
#ifndef __USTREAM_OPENSSL_H
#define __USTREAM_OPENSSL_H
#ifndef __USTREAM_OPENSSL_H
#define __USTREAM_OPENSSL_H
+#if defined(HAVE_WOLFSSL)
+#include <wolfssl/options.h>
+#endif
+
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <stdbool.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <stdbool.h>
@@
-39,4
+43,9
@@
static inline void __ustream_ssl_update_peer_cn(struct ustream_ssl *us)
{
}
{
}
+static inline void __ustream_ssl_set_server_name(struct ustream_ssl *us)
+{
+ SSL_set_tlsext_host_name(us->ssl, us->server_name);
+}
+
#endif
#endif