#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include "rpcclt_openapi.h"
#include "proc_util.h"
int main(int argc, char **argv)
{
char switch_os_revision_string[100];
l7proc_crashlog_register();
char encryptedPass[128 + 1] = "6ae8a168fd3449e7cf0faf020e09bffb9ade3b1b04ea8de5abc75c60ad63313211fa3ea7e6d8d3644c1d519d436b51849dbe3d99144ffa7542ea9eb8794e03aa";
char decryptedPass[64 + 1] = "\0";
{
printf("\nFailed to initialize RPC to OpEN. Exiting result = %d\n", result);
exit(2);
}
{
sleep(1);
}
printf("\n");
switch_os_revision.
pstart = switch_os_revision_string;
switch_os_revision.
size =
sizeof(switch_os_revision_string);
{
printf("Network OS version = %s\n", switch_os_revision_string);
}
else
{
printf("Network OS version retrieve error\n");
}
encryptedPw.size = strlen(encryptedPass) + 1;
encryptedPw.pstart = encryptedPass;
decryptedPw.size = sizeof(decryptedPass);
decryptedPw.pstart = decryptedPass;
{
printf("Successful in decrypting and decrypted string is : %s \n",(char *)decryptedPw.pstart);
}
else
{
printf("Unable to decrypt\n");
}
L7PROC_LOGF(L7PROC_LOG_SEVERITY_INFO, 0, "Stopping Password scramble example application");
return 0;
}