keystore_lib/src/util/ksutil.cpp
int cmdUnreg(char *argv[])
{
  int arg, res;
  uint8_t clientTicket[KEYSTORE_CLIENT_TICKET_SIZE];

  /* arg 1: client_ticket */
  arg = 0;

  res = readDataFromFile(argv[arg], clientTicket, sizeof(clientTicket));
  if (errRead(res, sizeof(clientTicket), argv[arg]))
    return res;

  /* api: unregisterClient */
  ksutilHexdump("clientTicket", clientTicket, sizeof(clientTicket));
  res = ias_keystore_unregister_client(clientTicket);
  ks_fprintf(stderr, "unregisterClient result: %d\n", res);

  errApi(res, "unregisterClient");

  return res;
}
/*
 * Unregister with keystore
 * @param argv arguments entry use ksutil to get more info
 * @return 0 on success or error code
 */
Unregister with keystore
@param argv arguments entry use ksutil to get more info
@return 0 on success or error code
Unregister with keystore @param argv arguments entry use ksutil to get more info @return 0 on success or error code
int cmdUnreg(char *argv[])
{
  int arg, res;
  uint8_t clientTicket[KEYSTORE_CLIENT_TICKET_SIZE];
  arg = 0;
  res = readDataFromFile(argv[arg], clientTicket, sizeof(clientTicket));
  if (errRead(res, sizeof(clientTicket), argv[arg]))
    return res;
  ksutilHexdump("clientTicket", clientTicket, sizeof(clientTicket));
  res = ias_keystore_unregister_client(clientTicket);
  ks_fprintf(stderr, "unregisterClient result: %d\n", res);
  errApi(res, "unregisterClient");
  return res;
}
int cmdUnreg ( char * argv [ ] ) { int arg , res ; uint8_t clientTicket [ KEYSTORE_CLIENT_TICKET_SIZE ] ; arg = 0 ; res = readDataFromFile ( argv [ arg ] , clientTicket , sizeof ( clientTicket ) ) ; if ( errRead ( res , sizeof ( clientTicket ) , argv [ arg ] ) ) return res ; ksutilHexdump ( " " , clientTicket , sizeof ( clientTicket ) ) ; res = ias_keystore_unregister_client ( clientTicket ) ; ks_fprintf ( stderr , " \n " , res ) ; errApi ( res , " " ) ; return res ; }
Unregister with keystore
 @param argv arguments entry use ksutil to get more info
 @return 0 on success or error code
Unregister with keystore @param argv arguments entry use ksutil to get more info @return 0 on success or error code
/* arg 1: client_ticket */ /* api: unregisterClient */