Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
f5426466
Commit
f5426466
authored
Oct 12, 2015
by
Johny Mattsson
Browse files
Fixed includes after LWIP 1.4.0 upgrade.
parent
5d5be356
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/crypto/digests.c
View file @
f5426466
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
#include "digests.h"
#include "digests.h"
#include "user_config.h"
#include "user_config.h"
#include "rom.h"
#include "rom.h"
#include "lwip/mem.h"
#include "osapi.h"
#include "mem.h"
#include <string.h>
#include <string.h>
#include <c_errno.h>
#include <c_errno.h>
...
@@ -108,7 +109,7 @@ int ICACHE_FLASH_ATTR crypto_hash (const digest_mech_info_t *mi,
...
@@ -108,7 +109,7 @@ int ICACHE_FLASH_ATTR crypto_hash (const digest_mech_info_t *mi,
if
(
!
mi
)
if
(
!
mi
)
return
EINVAL
;
return
EINVAL
;
void
*
ctx
=
os_malloc
(
mi
->
ctx_size
);
void
*
ctx
=
(
void
*
)
os_malloc
(
mi
->
ctx_size
);
if
(
!
ctx
)
if
(
!
ctx
)
return
ENOMEM
;
return
ENOMEM
;
...
@@ -129,7 +130,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi,
...
@@ -129,7 +130,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi,
if
(
!
mi
)
if
(
!
mi
)
return
EINVAL
;
return
EINVAL
;
void
*
ctx
=
os_malloc
(
mi
->
ctx_size
);
void
*
ctx
=
(
void
*
)
os_malloc
(
mi
->
ctx_size
);
if
(
!
ctx
)
if
(
!
ctx
)
return
ENOMEM
;
return
ENOMEM
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment