• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.sbin/keyserv/

Lines Matching defs:res

350 	static cryptkeyres res;
357 res.cryptkeyres_u.deskey = arg->deskey;
358 res.status = pk_encrypt(uid, arg->remotename, &(arg->remotekey),
359 &res.cryptkeyres_u.deskey);
361 if (res.status == KEY_SUCCESS) {
363 res.cryptkeyres_u.deskey.key.high,
364 res.cryptkeyres_u.deskey.key.low);
366 (void) fprintf(stderr, "%s\n", strstatus(res.status));
370 return (&res);
378 static cryptkeyres res;
385 res.cryptkeyres_u.deskey = arg->deskey;
386 res.status = pk_decrypt(uid, arg->remotename, &(arg->remotekey),
387 &res.cryptkeyres_u.deskey);
389 if (res.status == KEY_SUCCESS) {
391 res.cryptkeyres_u.deskey.key.high,
392 res.cryptkeyres_u.deskey.key.low);
394 (void) fprintf(stderr, "%s\n", strstatus(res.status));
398 return (&res);
459 static cryptkeyres res;
466 res.status = pk_get_conv_key(uid, arg, &res);
469 if (res.status == KEY_SUCCESS) {
471 res.cryptkeyres_u.deskey.key.high,
472 res.cryptkeyres_u.deskey.key.low);
474 (void) fprintf(stderr, "%s\n", strstatus(res.status));
478 return (&res);
487 static cryptkeyres res;
494 res.cryptkeyres_u.deskey = arg->deskey;
495 res.status = pk_encrypt(uid, arg->remotename, NULL,
496 &res.cryptkeyres_u.deskey);
498 if (res.status == KEY_SUCCESS) {
500 res.cryptkeyres_u.deskey.key.high,
501 res.cryptkeyres_u.deskey.key.low);
503 (void) fprintf(stderr, "%s\n", strstatus(res.status));
507 return (&res);
515 static cryptkeyres res;
522 res.cryptkeyres_u.deskey = arg->deskey;
523 res.status = pk_decrypt(uid, arg->remotename, NULL,
524 &res.cryptkeyres_u.deskey);
526 if (res.status == KEY_SUCCESS) {
528 res.cryptkeyres_u.deskey.key.high,
529 res.cryptkeyres_u.deskey.key.low);
531 (void) fprintf(stderr, "%s\n", strstatus(res.status));
535 return (&res);
568 static getcredres res;
572 cred = &res.getcredres_u.cred;
576 res.status = KEY_UNKNOWN;
578 res.status = KEY_SUCCESS;
582 if (res.status == KEY_SUCCESS) {
586 (void) fprintf(stderr, "%s\n", strstatus(res.status));
590 return (&res);