initial commit - import mediafire-shell sources

This commit is contained in:
josch
2014-09-15 20:00:05 +02:00
commit ad1fea5a78
56 changed files with 8147 additions and 0 deletions

41
cmd_debug.c Normal file
View File

@@ -0,0 +1,41 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "strings.h"
#include "mfshell.h"
#include "private.h"
#include "command.h"
int
mfshell_cmd_debug(mfshell_t *mfshell)
{
printf(" %-15.15s %s\n\r",
"server:",
mfshell->server);
if(mfshell->session_token != NULL && mfshell->secret_time != NULL)
{
printf(" %-15.15s %u\n\r",
"secret key:",
mfshell->secret_key);
printf(" %-15.15s %s\n\r",
"secret time:",
mfshell->secret_time);
printf(" %-15.15s %s\n\r",
"status:",
"Authenticated");
}
else
{
printf(" %-15.15s %s\n\r",
"status:",
"Not authenticated");
}
return 0;
}