projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d586c4
)
Using "SSL_CTX_use_certificate_chain_file" instead of "SSL_CTX_use_certificate_file"
author
David Galeano
<davidgaleano@turbulenz.biz>
Thu, 10 Jan 2013 02:11:21 +0000
(10:11 +0800)
committer
Andy Green
<andy.green@linaro.org>
Thu, 10 Jan 2013 04:45:53 +0000
(12:45 +0800)
to support server certificates signed by intermediaries.
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
2f8b453
..
18c780b
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-2800,8
+2800,8
@@
libwebsocket_create_context(int port, const char *interf,
/* openssl init for server sockets */
/* set the local certificate from CertFile */
- n = SSL_CTX_use_certificate_file(context->ssl_ctx,
- ssl_cert_filepath
, SSL_FILETYPE_PEM
);
+ n = SSL_CTX_use_certificate_
chain_
file(context->ssl_ctx,
+ ssl_cert_filepath);
if (n != 1) {
fprintf(stderr, "problem getting cert '%s': %s\n",
ssl_cert_filepath,