mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-30 14:13:07 +01:00
07691e3985
commit04b8e20773
Author: Asbelos <asbelos@btinternet.com> Date: Sat Jan 18 10:13:32 2025 +0000 Fix websocket binary mask issue Includes <D WEBSOCKET ON> commit5600382ae4
Merge:5941866
137008c
Author: Asbelos <asbelos@btinternet.com> Date: Sat Jan 18 08:58:30 2025 +0000 Merge branch 'devel' into devel-websockets commit59418668e2
Author: Asbelos <asbelos@btinternet.com> Date: Fri Jan 17 13:16:29 2025 +0000 WIfiESP websock fix commitc4e2146bd1
Author: Asbelos <asbelos@btinternet.com> Date: Thu Jan 16 08:37:38 2025 +0000 websockets broadcast commit2591d100ca
Author: Asbelos <asbelos@btinternet.com> Date: Wed Jan 15 19:38:41 2025 +0000 browser barf on \n commit67f836e886
Author: Asbelos <asbelos@btinternet.com> Date: Wed Jan 15 09:44:04 2025 +0000 5.5.5 + websockets Ethernet not yet included
26 lines
694 B
C
26 lines
694 B
C
// For DCC-EX: This file downloaded from:
|
|
// https://github.com/Links2004/arduinoWebSockets
|
|
// All due credit to Steve Reid
|
|
|
|
/* ================ sha1.h ================ */
|
|
/*
|
|
SHA-1 in C
|
|
By Steve Reid <steve@edmweb.com>
|
|
100% Public Domain
|
|
*/
|
|
|
|
// DCC-EX REMOVED #if !defined(ESP8266) && !defined(ESP32)
|
|
#ifndef libsha1_h
|
|
#define libsha1_h
|
|
typedef struct {
|
|
uint32_t state[5];
|
|
uint32_t count[2];
|
|
unsigned char buffer[64];
|
|
} SHA1_CTX;
|
|
|
|
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]);
|
|
void SHA1Init(SHA1_CTX* context);
|
|
void SHA1Update(SHA1_CTX* context, const unsigned char* data, uint32_t len);
|
|
void SHA1Final(unsigned char digest[20], SHA1_CTX* context);
|
|
|
|
#endif |