projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small typo fixes (harmless).
[BearSSL]
/
src
/
x509
/
asn1.t0
diff --git
a/src/x509/asn1.t0
b/src/x509/asn1.t0
index
1b3313a
..
6732f9d
100644
(file)
--- a/
src/x509/asn1.t0
+++ b/
src/x509/asn1.t0
@@
-198,12
+198,12
@@
cc: set8 ( val addr -- ) {
cc: set16 ( val addr -- ) {
uint32_t addr = T0_POP();
cc: set16 ( val addr -- ) {
uint32_t addr = T0_POP();
- *(uint16_t *)((unsigned char *)CTX + addr) = T0_POP();
+ *(uint16_t *)(
void *)(
(unsigned char *)CTX + addr) = T0_POP();
}
cc: set32 ( val addr -- ) {
uint32_t addr = T0_POP();
}
cc: set32 ( val addr -- ) {
uint32_t addr = T0_POP();
- *(uint32_t *)((unsigned char *)CTX + addr) = T0_POP();
+ *(uint32_t *)(
void *)(
(unsigned char *)CTX + addr) = T0_POP();
}
cc: get8 ( addr -- val ) {
}
cc: get8 ( addr -- val ) {
@@
-213,12
+213,12
@@
cc: get8 ( addr -- val ) {
cc: get16 ( addr -- val ) {
uint32_t addr = T0_POP();
cc: get16 ( addr -- val ) {
uint32_t addr = T0_POP();
- T0_PUSH(*(uint16_t *)((unsigned char *)CTX + addr));
+ T0_PUSH(*(uint16_t *)(
void *)(
(unsigned char *)CTX + addr));
}
cc: get32 ( addr -- val ) {
uint32_t addr = T0_POP();
}
cc: get32 ( addr -- val ) {
uint32_t addr = T0_POP();
- T0_PUSH(*(uint32_t *)((unsigned char *)CTX + addr));
+ T0_PUSH(*(uint32_t *)(
void *)(
(unsigned char *)CTX + addr));
}
\ Read an ASN.1 tag. This function returns the "constructed" status
}
\ Read an ASN.1 tag. This function returns the "constructed" status
@@
-284,7
+284,7
@@
cc: get32 ( addr -- val ) {
\ single integer.
{ n } 0
begin n 0 > while n 1- >n
\ single integer.
{ n } 0
begin n 0 > while n 1- >n
- dup 0x
F
FFFFF > if ERR_X509_INNER_TRUNC fail then
+ dup 0x
7
FFFFF > if ERR_X509_INNER_TRUNC fail then
8 << swap read8 rot +
repeat ;
8 << swap read8 rot +
repeat ;