Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap mimetype strings in FSPTR()s #4338

Merged
merged 8 commits into from
Feb 10, 2018

Conversation

earlephilhower
Copy link
Collaborator

Mimetype is now in progmem, so any accesses to it need to be using FPSTR() wrapped Strings or you'll get Exceptions.

Fixes #4329

earlephilhower and others added 7 commits January 9, 2018 09:45
Adds SSL server mode for WiFiServerSecure, for plain SSL connections,
ESP8266WebServerSecure, for HTTPS web serving, and SecureHTTPSUpdater for
encrypted OTA updates.

Example code is provided for all new options, as well as a BASH script for
generating their own, self-signed certificates.

Both ESP8266WebServerSecure and SecureHTTPSUpdater are important for secure
password-based authentication.  HTTP Basic Authentication, the only supported
model presently, sends the username and password in *cleartext* and therefore
should *never* be used in any un-SSL encrypted channel unless you don't mind
sharing your login and password with anyone else on the internet.  Even if the
ESP8266 is not safety critical, this cleartext broadcast could expose you should
you reuse this password elsewhere on your network or the internet.
@earlephilhower
Copy link
Collaborator Author

Don't know what's up with the merge listing, but the actual changed files are fine. Just need to be careful of the commend when squashing for commit.

Mimetype is now in progmem, so any accesses to it need to be using FPSTR()
wrapped Strings.

Fixes esp8266#4329
@earlephilhower
Copy link
Collaborator Author

Just tested serving a real file and found another crash. Fixed with latest push.

@earlephilhower earlephilhower merged commit 291bc6b into esp8266:master Feb 10, 2018
@earlephilhower earlephilhower deleted the webserverfix branch March 9, 2018 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants