Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
sso
Commits
36650db9
Commit
36650db9
authored
Feb 18, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zero-terminate value returned by modsso_session_deserialize
parent
15e7349b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/mod_sso/session.c
src/mod_sso/session.c
+2
-0
src/sso/base64.c
src/sso/base64.c
+2
-0
No files found.
src/mod_sso/session.c
View file @
36650db9
...
...
@@ -111,6 +111,8 @@ int modsso_session_deserialize(apr_pool_t *pool, const unsigned char *key,
(
const
unsigned
char
*
)
enc_value
,
i
)
!=
0
)
{
return
-
1
;
}
// Zero-terminate value, as we'll be using it as a string later.
(
*
value
)[
*
value_len
]
=
'\0'
;
signature_len
=
strlen
(
enc_signature
);
signature
=
apr_palloc
(
pool
,
signature_len
+
1
);
...
...
src/sso/base64.c
View file @
36650db9
...
...
@@ -121,6 +121,8 @@ int sso_base64_encode(unsigned char *dst, size_t *dlen,
* Decode a base64-formatted buffer.
*
* Supports both standard and "web-safe" encodings.
*
* The destination buffer is *not* zero-terminated.
*/
int
sso_base64_decode
(
unsigned
char
*
dst
,
size_t
*
dlen
,
const
unsigned
char
*
src
,
size_t
slen
)
{
...
...
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