Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
sso
Commits
3073a8b5
Commit
3073a8b5
authored
Jan 06, 2017
by
ale
Browse files
Remove obsolete debugging code
parent
a4642e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
src/sso/sso.c
src/sso/sso.c
+0
-17
No files found.
src/sso/sso.c
View file @
3073a8b5
...
...
@@ -11,13 +11,6 @@
#define GROUP_SEP_STR ","
#define GROUP_SEP_CH ','
//static void print_bytes(unsigned char *b, int n) {
// int i;
// for (i = 0; i < n; i++) {
// printf("%02x", b[i]);
// }
//}
static
char
**
group_list_dup
(
const
char
**
groups
)
{
int
i
=
0
;
const
char
**
p
;
...
...
@@ -285,11 +278,6 @@ int sso_ticket_sign(sso_ticket_t t, const unsigned char *secret_key, char *out,
return
SSO_ERR_SIGNATURE
;
}
// Debug
//printf("crypto_sign(%s) -> ", serialized);
//print_bytes(signed_data, signed_size);
//printf("\n");
dlen
=
out_size
;
r
=
sso_base64_encode
((
unsigned
char
*
)
out
,
&
dlen
,
signed_data
,
(
size_t
)
signed_size
);
...
...
@@ -317,11 +305,6 @@ int sso_ticket_open(sso_ticket_t *t, const char *str, const unsigned char *publi
serialized_size
=
signed_size
;
serialized
=
(
unsigned
char
*
)
malloc
(
serialized_size
);
// Debug
//printf("crypto_open(");
//print_bytes(signed_data, signed_size);
//printf(")\n");
if
(
crypto_sign_open
(
serialized
,
&
serialized_size
,
(
const
unsigned
char
*
)
signed_data
,
(
unsigned
long
long
)
signed_size
,
...
...
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