Skip to content

Instantly share code, notes, and snippets.

@magegu
Created July 22, 2008 13:05
Show Gist options
  • Save magegu/920 to your computer and use it in GitHub Desktop.
Save magegu/920 to your computer and use it in GitHub Desktop.
RCKey*
retrieveDataKey (DevMediaInfo *pDevMediaInfo, char *psPKCS12FileName, char *psPassword, byte aDataKeyIndex[])
{
int a = 0, i = 0;
printf("devType: %d,serial:%s, NodeName:%s, mediaIdentifier:%s, pkcs12file:%s, pwd: %s",
pDevMediaInfo->devType,
pDevMediaInfo->serialNumber,
pDevMediaInfo->wordwideNodename,
pDevMediaInfo->mediaIdentifier,
psPKCS12FileName,
psPassword
);
a = sizeof(aDataKeyIndex)/sizeof(aDataKeyIndex[0]);
printf("\n\tGROESSE: %i\n", a);
for(i=0;i<a;i++){
printf(", dataKeyIndex[%i]=%x",i,aDataKeyIndex[i]);
}
printf("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment