1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

24 Commits

Author SHA1 Message Date
Alessio Leoncini
03f1a540ca Added constant time string comparison to avoid possible time-based attacks. (#3836)
* Added constant time strings comparison to avoid possible time-based attacks

* Fixed data types

* Fixed indentation

* Moved string comnparison in constant time to String class; modified function body to assure constant time comparison despite compiler optimizations

* Removed wrong code

* Fixed error and prevented compiler optimization to delete u1 local variable

* Avoid timing attacks on string comparison

* Minor

* changed counter names, removed else
2017-11-21 01:56:05 -03:00
Ivan Grokhotkov
03baea27ef ArduinoOTA: forward errors from Update.begin to espota.py
If Update.begin fails, instead of printing “No response from device”,
espota.py will print the actual error message from the Updater.
2017-05-09 06:17:06 -05:00
Me No Dev
889775c6fe ArduinoOTA optimizations (#2445)
- Added option to control if the ESP should be rebooted on success
- Added delay before ESP.restart() is called
- Added some comments to the header
2016-08-27 18:32:26 +03:00
Clemens Kirchgatterer
18297458be allows global object instances be switch off with defines (#2344) 2016-08-01 11:21:50 +08:00
Me No Dev
e83f30a78d Ota hashed password (#2292)
* Add option to give ArduinoOTA a hashed value of the password

hashed password can be safely stored on flash

* Switch to separate method to accept the hash

* Calculate the hash of plain passwords at setup

* missed line

* Remove underscores from local variable
2016-07-18 19:28:56 +08:00
andig
c4f9f102ce Add getCommand() api for OTA update type (#2259) 2016-07-15 11:03:34 +03:00
NullMedia
d60d744b59 ArduinoOTA library change (#2013)
* Fixed callbacks to allow lambda capture

* Update ArduinoOTA.cpp

* Fixed callbacks to allow lambda capture

* Fixed callbacks to allow lambda capture

* Update ArduinoOTA.h

* Tests update

Update ArduinoOTA.h

Fixed callbacks to allow lambda capture

* Modified callbacks to enable lambda capture

* Modified callbacks to enable lambda capture
2016-06-01 11:10:29 +08:00
Yuichi Tateno
cffdd55759 Add ArduinoOTA::getHostname() interface 2016-05-22 18:17:23 +09:00
Me No Dev
bfe9f7be69 Update and move lwIP headers, add options to use different lwIP build for generic device
Makefile added to lwip source folder to build and install liblwip_gcc.a
2016-04-10 21:55:22 +03:00
Markus Sattler
137c50757e add OTA debug level 2016-01-02 13:27:21 +01:00
Stavros Korokithakis
e9f2f1c989 Fix typo. 2015-11-28 16:37:36 +02:00
Me No Dev
a44632b8cf make compiler happier 2015-11-25 18:11:16 +02:00
Me No Dev
fe9dc913b4 unref udp if exists 2015-11-21 21:14:11 +02:00
Me No Dev
d2982d3555 Make ArduinoOTA AUTH async
still up to the user to call ArduinoOTA.handle() to start the upload
2015-11-19 22:49:40 +02:00
Me No Dev
0213dc34ff Skip authentication when password is empty
should have been changed when turned in String
2015-11-12 03:09:04 +02:00
Me No Dev
18f0a9999a add progress option for espota.py and fix typo in ArduinoOTA 2015-11-11 23:23:25 +02:00
Ivan Grokhotkov
92069e657b Replace some manually managed buffers with Strings, fix code style 2015-11-11 01:07:02 +03:00
Me No Dev
950e9c9522 Let the socket to properly close
python was keeping the connection open and sending duplicate FINs until
the ESP came back online, because the ESP was resetting without giving
the network a chance to answer and close
2015-11-09 02:38:20 +02:00
Me No Dev
13b8cc0a27 Add sanity check so we do not trigger an update from wrong data 2015-11-09 01:47:51 +02:00
Me No Dev
a8976a01fd Add MD5 to core, Fix OTA examples and Digest Authentication to OTA and espota.py 2015-11-09 00:42:30 +02:00
sticilface
0c9892fd24 Update ArduinoOTA.cpp
my bad
2015-11-04 21:38:00 +00:00
sticilface
46658593b0 Update ArduinoOTA.cpp
Restarts the UDP port if it becomes disconnected. Works when for example the wifi is disconnected and reconnected
2015-11-03 19:57:57 +00:00
Pascal Gollor
c773140a5b use ArduinoOTA class in OTA-mDNS.SPIFFS example 2015-10-22 16:43:00 +02:00
Miguel Angel Ajo
6978b6a777 OTA support encapsulated to ArduinoOTA class 2015-10-12 10:29:18 +02:00