projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added API to share precomputations in EAX.
[BearSSL]
/
src
/
ssl
/
ssl_hs_server.c
diff --git
a/src/ssl/ssl_hs_server.c
b/src/ssl/ssl_hs_server.c
index
3970d28
..
5dd30a1
100644
(file)
--- a/
src/ssl/ssl_hs_server.c
+++ b/
src/ssl/ssl_hs_server.c
@@
-75,7
+75,7
@@
void br_ssl_hs_server_run(void *t0ctx);
/*
* This macro evaluates to a pointer to the current engine context.
*/
/*
* This macro evaluates to a pointer to the current engine context.
*/
-#define ENG ((br_ssl_engine_context *)((unsigned char *)t0ctx - offsetof(br_ssl_engine_context, cpu)))
+#define ENG ((br_ssl_engine_context *)(
void *)(
(unsigned char *)t0ctx - offsetof(br_ssl_engine_context, cpu)))
@@
-1454,7
+1454,7
@@
br_ssl_hs_server_run(void *t0ctx)
/* get16 */
size_t addr = (size_t)T0_POP();
/* get16 */
size_t addr = (size_t)T0_POP();
- T0_PUSH(*(uint16_t *)((unsigned char *)ENG + addr));
+ T0_PUSH(*(uint16_t *)(
void *)(
(unsigned char *)ENG + addr));
}
break;
}
break;
@@
-1462,7
+1462,7
@@
br_ssl_hs_server_run(void *t0ctx)
/* get32 */
size_t addr = (size_t)T0_POP();
/* get32 */
size_t addr = (size_t)T0_POP();
- T0_PUSH(*(uint32_t *)((unsigned char *)ENG + addr));
+ T0_PUSH(*(uint32_t *)(
void *)(
(unsigned char *)ENG + addr));
}
break;
}
break;
@@
-1635,7
+1635,7
@@
br_ssl_hs_server_run(void *t0ctx)
/* set16 */
size_t addr = (size_t)T0_POP();
/* set16 */
size_t addr = (size_t)T0_POP();
- *(uint16_t *)((unsigned char *)ENG + addr) = (uint16_t)T0_POP();
+ *(uint16_t *)(
void *)(
(unsigned char *)ENG + addr) = (uint16_t)T0_POP();
}
break;
}
break;
@@
-1643,7
+1643,7
@@
br_ssl_hs_server_run(void *t0ctx)
/* set32 */
size_t addr = (size_t)T0_POP();
/* set32 */
size_t addr = (size_t)T0_POP();
- *(uint32_t *)((unsigned char *)ENG + addr) = (uint32_t)T0_POP();
+ *(uint32_t *)(
void *)(
(unsigned char *)ENG + addr) = (uint32_t)T0_POP();
}
break;
}
break;