projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel] pci_set_mwi depends upon CONFIG_HAVE_PCI_SET_MWI
[openwrt.git]
/
package
/
uhttpd
/
src
/
uhttpd-tls.c
diff --git
a/package/uhttpd/src/uhttpd-tls.c
b/package/uhttpd/src/uhttpd-tls.c
index
cb50616
..
26143dd
100644
(file)
--- a/
package/uhttpd/src/uhttpd-tls.c
+++ b/
package/uhttpd/src/uhttpd-tls.c
@@
-35,12
+35,22
@@
SSL_CTX * uh_tls_ctx_init()
int uh_tls_ctx_cert(SSL_CTX *c, const char *file)
{
int uh_tls_ctx_cert(SSL_CTX *c, const char *file)
{
- return SSL_CTX_use_certificate_file(c, file, SSL_FILETYPE_ASN1);
+ int rv;
+
+ if( (rv = SSL_CTX_use_certificate_file(c, file, SSL_FILETYPE_PEM)) < 1 )
+ rv = SSL_CTX_use_certificate_file(c, file, SSL_FILETYPE_ASN1);
+
+ return rv;
}
int uh_tls_ctx_key(SSL_CTX *c, const char *file)
{
}
int uh_tls_ctx_key(SSL_CTX *c, const char *file)
{
- return SSL_CTX_use_PrivateKey_file(c, file, SSL_FILETYPE_ASN1);
+ int rv;
+
+ if( (rv = SSL_CTX_use_PrivateKey_file(c, file, SSL_FILETYPE_PEM)) < 1 )
+ rv = SSL_CTX_use_PrivateKey_file(c, file, SSL_FILETYPE_ASN1);
+
+ return rv;
}
void uh_tls_ctx_free(struct listener *l)
}
void uh_tls_ctx_free(struct listener *l)
This page took
0.019209 seconds
and
4
git commands to generate.