mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
expose SHA1 api
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
8acc194dc2
commit
2836c641cf
2 changed files with 9 additions and 0 deletions
|
@ -427,6 +427,12 @@ int libwebsockets_get_random(struct libwebsocket_context *context,
|
|||
return n;
|
||||
}
|
||||
|
||||
unsigned char *
|
||||
libwebsockets_SHA1(const unsigned char *d, size_t n, unsigned char *md)
|
||||
{
|
||||
return SHA1(d, n, md);
|
||||
}
|
||||
|
||||
void libwebsockets_00_spaceout(char *key, int spaces, int seed)
|
||||
{
|
||||
char *p;
|
||||
|
|
|
@ -640,6 +640,9 @@ extern int
|
|||
libwebsockets_get_random(struct libwebsocket_context *context,
|
||||
void *buf, int len);
|
||||
|
||||
extern unsigned char *
|
||||
libwebsockets_SHA1(const unsigned char *d, size_t n, unsigned char *md);
|
||||
|
||||
extern struct libwebsocket_extension libwebsocket_internal_extensions[];
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
Loading…
Add table
Reference in a new issue