Commit 3073a8b5 authored by ale's avatar ale

Remove obsolete debugging code

parent a4642e0a
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment