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:
parent
9d94188a23
commit
99601567bc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue