projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for Server Name Indication
[project/ustream-ssl.git]
/
ustream-openssl.c
diff --git
a/ustream-openssl.c
b/ustream-openssl.c
index 818110730fa8a5f108eee6caa1562c4e21b8de1d..635d34ce29726b50f141999f13090d13e4e40be1 100644
(file)
--- a/
ustream-openssl.c
+++ b/
ustream-openssl.c
@@
-52,6
+52,7
@@
__ustream_ssl_context_new(bool server)
return NULL;
SSL_CTX_set_verify(c, SSL_VERIFY_NONE, NULL);
+ SSL_CTX_set_quiet_shutdown(c, 1);
return (void *) c;
}
@@
-120,7
+121,7
@@
static bool host_pattern_match(const unsigned char *pattern, const char *cn)
for (; (c = tolower(*pattern++)) != 0; cn++) {
if (c != '*') {
- if (c !=
*cn
)
+ if (c !=
tolower(*cn)
)
return false;
continue;
}