/* set_key_id [-s slot] [-p $pin] -n $keytag {-i $id | -l $label} */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#ifndef OPENCRYPTOKI
#include <security/cryptoki.h>
#else
#include <opencryptoki/pkcs11.h>
#endif
int
{
int error = 0;
int i = 0;
int c, errflg = 0;
};
extern char *optarg;
extern int optopt;
switch (c) {
case 's':
break;
case 'i':
oid &= 0xffff;
break;
case 'n':
nid &= 0xffff;
break;
case 'l':
break;
case 'p':
break;
case ':':
errflg++;
break;
case '?':
default:
errflg++;
}
}
"usage: set_key_id [-s slot] [-p pin] -n new_id "
"{ -i old_id | -l label }\n");
exit(1);
}
if (!label)
else {
}
/* Initialize the CRYPTOKI library */
exit(1);
}
/* Open a session on the slot found */
error = 1;
goto exit_program;
}
/* Login to the Token (Keystore) */
if (!pin)
#ifndef OPENCRYPTOKI
#else
#endif
error = 1;
goto exit_session;
}
error = 1;
goto exit_session;
}
ulObjectCount = 1;
while(ulObjectCount) {
error = 1;
goto exit_search;
} else if (ulObjectCount) {
/* Set update template. */
};
error = 1;
}
}
}
error = 1;
}
(void) C_CloseSession(hSession);
(void) C_Finalize(NULL_PTR);
}