Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
667e415c
Commit
667e415c
authored
Jul 07, 2015
by
Mark Haines
Browse files
Removed SignedKey class
parent
14a0e4c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/olm/account.hh
View file @
667e415c
...
...
@@ -30,11 +30,6 @@ struct LocalKey {
};
struct
SignedKey
:
LocalKey
{
std
::
uint8_t
signature
[
64
];
};
static
std
::
size_t
const
MAX_ONE_TIME_KEYS
=
100
;
struct
Account
{
...
...
src/account.cpp
View file @
667e415c
...
...
@@ -102,34 +102,6 @@ static std::uint8_t const * unpickle(
return
pos
;
}
static
std
::
size_t
pickle_length
(
olm
::
SignedKey
const
&
value
)
{
return
olm
::
pickle_length
((
olm
::
LocalKey
const
&
)
value
)
+
64
;
}
static
std
::
uint8_t
*
pickle
(
std
::
uint8_t
*
pos
,
olm
::
SignedKey
const
&
value
)
{
pos
=
olm
::
pickle
(
pos
,
(
olm
::
LocalKey
const
&
)
value
);
pos
=
olm
::
pickle_bytes
(
pos
,
value
.
signature
,
64
);
return
pos
;
}
static
std
::
uint8_t
const
*
unpickle
(
std
::
uint8_t
const
*
pos
,
std
::
uint8_t
const
*
end
,
olm
::
SignedKey
&
value
)
{
pos
=
olm
::
unpickle
(
pos
,
end
,
(
olm
::
LocalKey
&
)
value
);
pos
=
olm
::
unpickle_bytes
(
pos
,
end
,
value
.
signature
,
64
);
return
pos
;
}
}
// namespace olm
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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