Skip to content

Commit da812db

Browse files
Fix merge issues with untemplated methods
1 parent 410fc9e commit da812db

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

libraries/ESP8266WebServer/examples/HttpHashCredAuth/HttpHashCredAuth.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void setup() {
110110
ESP.restart();
111111
}
112112

113-
server.setRSACert(new BearSSL::X509List(serverCert), new BearSSL::PrivateKey(serverKey));
113+
server.getServer().setRSACert(new BearSSL::X509List(serverCert), new BearSSL::PrivateKey(serverKey));
114114
server.on("/",showcredentialpage); //for this simple example, just show a simple page for changing credentials at the root
115115
server.on("/" + change_creds,handlecredentialchange); //handles submission of credentials from the client
116116
server.onNotFound(redirect);

libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ bool ESP8266WebServerTemplate<ServerType>::authenticate(const char * username, c
156156
return false;
157157
}
158158

159-
bool ESP8266WebServer::authenticateDigest(const String& username, const String& H1)
159+
template <typename ServerType>
160+
bool ESP8266WebServerTemplate<ServerType>::authenticateDigest(const String& username, const String& H1)
160161
{
161162
if(hasHeader(FPSTR(AUTHORIZATION_HEADER))) {
162163
String authReq = header(FPSTR(AUTHORIZATION_HEADER));
@@ -517,7 +518,8 @@ void ESP8266WebServerTemplate<ServerType>::sendContent_P(PGM_P content, size_t s
517518
}
518519
}
519520

520-
String ESP8266WebServer::credentialHash(const String& username, const String& realm, const String& password)
521+
template <typename ServerType>
522+
String ESP8266WebServerTemplate<ServerType>::credentialHash(const String& username, const String& realm, const String& password)
521523
{
522524
MD5Builder md5;
523525
md5.begin();

0 commit comments

Comments
 (0)