| /netbsd-src/crypto/external/bsd/netpgp/dist/tests/ |
| H A D | userid.at | 1 # $NetBSD: userid.at,v 1.1 2009/06/13 05:25:09 agc Exp $ 3 AT_SETUP([tests with no default userid in gpg.conf]) 18 # sign with an explicit userid, no default in gpg.conf 19 AT_CHECK([netpgp --homedir $testhomedir --userid $testuserid --sign file3], 22 # test with no userid
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/ |
| H A D | netpgp.c | 89 conffile(netpgp_t *netpgp, char *homedir, char *userid, size_t length) in conffile() argument 106 (void) memcpy(userid, &buf[(int)matchv[1].rm_so], in conffile() 124 userid_to_id(const uint8_t *userid, char *id) in userid_to_id() argument 130 id[i * 2] = hexes[(unsigned)(userid[i] & 0xf0) >> 4]; in userid_to_id() 131 id[(i * 2) + 1] = hexes[userid[i] & 0xf]; in userid_to_id() 517 resolve_userid(netpgp_t *netpgp, const pgp_keyring_t *keyring, const char *userid) in resolve_userid() argument 522 if (userid == NULL) { in resolve_userid() 523 userid = netpgp_getvar(netpgp, "userid"); in resolve_userid() 524 if (userid == NULL) in resolve_userid() 526 } else if (userid[0] == '0' && userid[1] == 'x') { in resolve_userid() [all …]
|
| H A D | keyring.c | 476 pgp_add_userid(pgp_key_t *key, const uint8_t *userid) in pgp_add_userid() argument 485 return copy_userid(uidp, userid); in pgp_add_userid() 518 pgp_add_selfsigned_userid(pgp_key_t *key, uint8_t *userid) in pgp_add_selfsigned_userid() argument 533 pgp_write_struct_userid(useridoutput, userid); in pgp_add_selfsigned_userid() 537 pgp_sig_start_key_sig(sig, &key->key.seckey.pubkey, userid, PGP_CERT_POSITIVE); in pgp_add_selfsigned_userid() 552 (void) pgp_add_userid(key, userid); in pgp_add_selfsigned_userid() 948 str2keyid(const char *userid, uint8_t *keyid, size_t len) in str2keyid() argument 959 for (i = 0, j = 0 ; j < len && userid[i] && userid[i + 1] ; i += 2, j++) { in str2keyid() 960 if ((hi = strchr(uppers, userid[i])) == NULL) { in str2keyid() 961 if ((hi = strchr(lowers, userid[i])) == NULL) { in str2keyid() [all …]
|
| H A D | ssh2pgp.c | 212 uint8_t *userid; in pgp_ssh2pubkey() local 313 (void) memset(&userid, 0x0, sizeof(userid)); in pgp_ssh2pubkey() 323 (void) pgp_asprintf((char **)(void *)&userid, in pgp_ssh2pubkey() 329 pgp_add_userid(key, userid); in pgp_ssh2pubkey() 331 free(userid); in pgp_ssh2pubkey()
|
| H A D | validate.c | 277 if (key->userid) { in pgp_validate_key_cb() 278 pgp_userid_free(&key->userid); in pgp_validate_key_cb() 280 key->userid = content->userid; in pgp_validate_key_cb() 327 key->userid, in pgp_validate_key_cb() 717 pgp_userid_free(&keysigs.userid); in pgp_validate_key_sigs()
|
| /netbsd-src/external/bsd/openldap/dist/build/ |
| H A D | shtool | 587 userid='' 589 userid="`(id -u) 2>/dev/null`" 590 if [ ".$userid" = . ]; then 591 userid="`(id -u ${username}) 2>/dev/null`" 592 if [ ".$userid" = . ]; then 595 userid=`echo $str | sed -e 's/^uid[ ]*=[ ]*//' -e 's/(.*$//'` 597 if [ ".$userid" = . ]; then 598 userid=`(getent passwd ${username}) 2>/dev/null | \ 600 if [ ".$userid" = . ]; then 601 userid=`grep "^${username}:" /etc/passwd 2>/dev/null | \ [all …]
|
| /netbsd-src/external/bsd/am-utils/dist/hlfsd/ |
| H A D | stubs.c | 308 uid_t userid = (uid_t) INVALIDID; in nfsproc_readlink_2_svc() local 318 if (getcreds(rqstp, &userid, &groupid, nfsxprt) < 0) in nfsproc_readlink_2_svc() 326 } else if (!(res.rlr_u.rlr_data_u = path_val = homedir(userid, groupid))) { in nfsproc_readlink_2_svc() 337 if (getcreds(rqstp, &userid, &groupid, nfsxprt) < 0) { in nfsproc_readlink_2_svc() 344 userid = xuserid; in nfsproc_readlink_2_svc() 346 if (!(res.rlr_u.rlr_data_u = mailbox(userid, username))) in nfsproc_readlink_2_svc() 354 if (userid != last_uid) { in nfsproc_readlink_2_svc() 356 (long) userid, (long) groupid, (char *) res.rlr_u.rlr_data_u); in nfsproc_readlink_2_svc() 357 last_uid = userid; in nfsproc_readlink_2_svc()
|
| H A D | homedir.c | 81 homedir(int userid, int groupid) in homedir() argument 90 if ((found = plt_search(userid)) == (uid2home_t *) NULL) { in homedir() 99 if ((int) userid == 0) /* force all uid 0 to use root's home */ in homedir() 179 if ((old_userid = seteuid(userid)) < 0) { in homedir() 180 plog(XLOG_WARNING, "could not seteuid to %d: %m", userid); in homedir()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
| H A D | libverify.c | 221 pgpv_string_t userid; member 239 pgpv_string_t userid; member 1544 pkt.u.userid.size = pkt.s.size; in read_pkt() 1545 pkt.u.userid.data = pkt.s.data; in read_pkt() 1546 pkt.u.userid.allocated = 0; in read_pkt() 1617 recog_userid(pgpv_t *pgp, pgpv_signed_userid_t *userid) in recog_userid() argument 1622 memset(userid, 0x0, sizeof(*userid)); in recog_userid() 1628 userid->userid.size = pkt->s.size; in recog_userid() 1629 userid->userid.data = pkt->s.data; in recog_userid() 1630 userid->userid.allocated = 0; in recog_userid() [all …]
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/libpaa/ |
| H A D | libpaa.c | 106 (void) snprintf(id->userid, sizeof(id->userid), "%.*s", in fill_identity() 250 response->userid = netpgp_getvar(netpgp, "userid"); in paa_format_response() 251 outc += snprintf(&out[outc], outsize - outc, " id=\"%s\"", response->userid); in paa_format_response() 256 (void) snprintf(sig, sizeof(sig), "%s;%s;%s;", response->userid, response->realm, challenge); in paa_format_response() 257 sigc = netpgp_sign_memory(netpgp, response->userid, challenge, in paa_format_response() 351 id->userid, in paa_print_identity()
|
| H A D | libpaa.h | 61 const char *userid; /* identity to be used for signature */ member 71 char userid[32]; /* verified identity */ member
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | ssh-sk-client.c | 292 const char *application, const char *userid, uint8_t flags, in sshsk_enroll() argument 318 (r = sshbuf_put_cstring(req, userid)) != 0 || in sshsk_enroll() 397 u_char *userid = NULL; in sshsk_load_resident() local 424 (r = sshbuf_get_string(resp, &userid, &userid_len)) != 0) { in sshsk_load_resident() 439 srk->user_id = userid; in sshsk_load_resident() 441 userid = NULL; in sshsk_load_resident() 466 freezero(userid, userid_len); in sshsk_load_resident()
|
| H A D | ssh-sk-helper.c | 153 char *provider, *application, *pin, *device, *userid; in process_enroll() local 166 (r = sshbuf_get_cstring(req, &userid, NULL)) != 0 || in process_enroll() 181 null_empty(&userid); in process_enroll() 184 if ((r = sshsk_enroll((int)type, provider, device, application, userid, in process_enroll()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
| H A D | sm2_internal_test.c | 304 const char *userid, in test_sm2_sign() argument 338 sig = sm2_do_sign(key, EVP_sm3(), (const uint8_t *)userid, strlen(userid), in test_sm2_sign() 354 ok = sm2_do_verify(key, EVP_sm3(), sig, (const uint8_t *)userid, in test_sm2_sign() 355 strlen(userid), (const uint8_t *)message, msg_len); in test_sm2_sign()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/bindings/tcl/ |
| H A D | netpgp.tcl | 13 set userid [netpgp_getvar $n "userid"] 14 netpgp_sign_file $n $userid "a" "a.gpg" 0 0 0
|
| /netbsd-src/usr.sbin/lpr/lpr/ |
| H A D | lpr.c | 100 static int userid; /* user id */ variable 270 userid = getuid(); in main() 271 if (userid != DU || person == 0) { in main() 272 if ((pw = getpwuid(userid)) == NULL) in main() 279 if (RG != NULL && userid != DU) { in main() 298 if (userid && stat(buf, &stb) == 0 && (stb.st_mode & S_IXGRP)) in main() 550 if (fchown(f, userid, -1) < 0) { in nfile()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/bindings/python/ |
| H A D | netpgp.py | 12 userid = _netpgppython.netpgp_getvar(n, "userid") variable 13 _netpgppython.netpgp_sign_file(n, userid, "a", "a.gpg", 0, 0, 0)
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | sm2_internal_test.c | 303 const char *userid, in test_sm2_sign() argument 340 sig = ossl_sm2_do_sign(key, EVP_sm3(), (const uint8_t *)userid, in test_sm2_sign() 341 strlen(userid), (const uint8_t *)message, msg_len); in test_sm2_sign() 356 ok = ossl_sm2_do_verify(key, EVP_sm3(), sig, (const uint8_t *)userid, in test_sm2_sign() 357 strlen(userid), (const uint8_t *)message, msg_len); in test_sm2_sign()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/bindings/perl/ |
| H A D | netpgp.pl | 16 $userid = netpgpperlc::netpgp_getvar($n, "userid"); 24 netpgpperlc::netpgp_sign_file($n, $userid, $in, $out, 0, 0, 0);
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/libverify/ |
| H A D | libverify.c | 1150 pkt.u.userid.size = pkt.s.size; in read_pkt() 1151 pkt.u.userid.data = pkt.s.data; in read_pkt() 1222 recog_userid(pgpv_t *pgp, pgpv_signed_userid_t *userid) in recog_userid() argument 1227 memset(userid, 0x0, sizeof(*userid)); in recog_userid() 1233 userid->userid.size = pkt->s.size; in recog_userid() 1234 userid->userid.data = pkt->s.data; in recog_userid() 1241 ARRAY_APPEND(userid->sigs, signature); in recog_userid() 1243 userid->primary_userid = signature.primary_userid; in recog_userid() 1246 userid->revoked = signature.revoked; in recog_userid() 1381 pgpv_signed_userid_t *userid; in fmt_userid() local [all …]
|
| /netbsd-src/games/larn/ |
| H A D | scores.c | 210 if (winr[i].suid == userid) in hashewon() 235 if (winr[i].suid == userid) /* look for players winning in paytaxes() 452 if (sco[i].suid == userid) in newscore() 461 if (winr[i].suid == userid) { in newscore() 480 if (sco[i].suid == userid) { in newscore() 516 p->suid = userid; in new1sub() 541 p->suid = userid; in new2sub()
|
| /netbsd-src/usr.bin/rdist/ |
| H A D | main.c | 77 uid_t userid; /* user's user ID */ variable 94 pw = getpwuid(userid = getuid()); in main() 200 seteuid(userid); in main()
|
| /netbsd-src/external/bsd/file/dist/tests/ |
| H A D | Makefile.am | 93 pgp-binary-key-v4-ecc-no-userid-secret.result \ 94 pgp-binary-key-v4-ecc-no-userid-secret.testfile \ 99 pgp-binary-key-v4-rsa-no-userid-secret.result \ 100 pgp-binary-key-v4-rsa-no-userid-secret.testfile \
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/hkpclient/ |
| H A D | hkpc.c | 87 …**info, const char *server, const int port, const int family, const char *type, const char *userid) in hkpc_get() argument 98 cc = snprintf(buf, sizeof(buf), "GET /pks/lookup?op=%s&search=%s&options=json", type, userid); in hkpc_get()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/ |
| H A D | TODO | 43 init(&netpgp, userid, pubring, secring) 74 failure to run if no userid in gpg.conf (even if --userid specified)
|