eina: removing base64 from eina example.

Summary:
As base64 API's are no longer part of eina, removing them. Will add
separate file for emile examples.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3552
This commit is contained in:
Srivardhan Hebbar 2016-01-08 23:51:41 +01:00 committed by Cedric BAIL
parent 97b7964e8c
commit f3380734e2
1 changed files with 0 additions and 17 deletions

View File

@ -17,9 +17,6 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
char *time_arr;
time_t curr_time;
struct tm *info;
char *b64;
unsigned char *decoded;
int decoded_len;
eina_init();
@ -71,20 +68,6 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
printf("Today's Date: %s\n", time_arr);
free(time_arr);
b64 = eina_str_base64_encode((unsigned char *)"Enlightenment", 9);
printf("%s\n", b64);
decoded = eina_str_base64_decode(b64, &decoded_len);
printf("decoded string: %s, decoded_len: %d\n", decoded, decoded_len);
free(b64);
free(decoded);
b64 = eina_str_base64url_encode((unsigned char *)"www.enlightenment.org", 21);
printf("%s\n", b64);
decoded = eina_str_base64_decode(b64, &decoded_len);
printf("decoded string: %s, decoded_len: %d\n", decoded, decoded_len);
free(b64);
free(decoded);
eina_shutdown();
return 0;