Lines Matching defs:secret
85 char **slist = NULL; /* List of secret key(s) */
86 char **clist = NULL; /* List of encrypted secret key(s) */
155 /* Encrypt secret key(s) with login_pw */
193 fprintf(stderr, "%s: Could not encrypt any secret keys.\n",
200 /* Initialize the array of public, secret, and encrypted secret keys */
289 /* Generate a new set of public/secret key pair(s) */
297 char *public, *secret;
310 if (!(secret = malloc(hexkeylen))) {
316 if (!(__gen_dhkeys_g(public, secret, CURMECH->keylen,
324 free(secret);
326 secret = NULL;
330 slist[mcount] = secret;
333 char *public, *secret;
341 if (!(secret = malloc(HEXKEYBYTES + 1))) {
346 __gen_dhkeys(public, secret, short_login_pw);
349 slist[0] = secret;
484 /* Retrieve the secret key(s) for the user and attempt to decrypt them */
495 char *secret;
500 if (!(secret = (char *)calloc(hexkeylen,
509 CURMECH->algtype, secret,
514 if (secret[0] == 0)
522 if (secret[0] == 0) {
526 * secret key
532 secret,
537 * secret key, abort
539 free(secret);
540 secret = NULL;
544 if (secret[0] == 0) {
564 slist[mcount] = secret;
567 char *secret = NULL;
569 if (!(secret = (char *)malloc(HEXKEYBYTES + 1))) {
574 if (!getsecretkey(netname, secret, rpc_pws[0])) {
576 "%s: could not get secret key for '%s'\n",
581 if (secret[0] == 0) {
598 slist[0] = secret;
604 "%s: could not get nor decrypt any secret keys for '%s'\n",
612 /* Register AUTH_DES secret key with keyserv */
616 char *secret = slist[0];
624 if (key_setsecret(secret) < 0) {
641 (void) memcpy(netst.st_priv_key, secret, HEXKEYBYTES);
648 fprintf(stderr, "Could not set %s's secret key\n", netname);
654 /* Register a secret key with the keyserv */
670 "Could not set %s's %s secret key\n",
731 /* Write unencrypted secret key into root key file */
733 write_rootkey(char *secret, char *flavor, keylen_t keylen, algtype_t algtype)
795 fprintf(rootfile, "%s\n", secret);
811 fprintf(rootfile, "%s %d\n", secret, algtype);
821 fprintf(rootfile, "%s\n", secret);
825 fprintf(rootfile, "%s %d\n", secret, algtype);
1124 /* Obtain a list of decrypted secret keys */