mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
initial commit - import mediafire-shell sources
This commit is contained in:
41
cmd_debug.c
Normal file
41
cmd_debug.c
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user