| /src/sys/security/mac_biba/ |
| H A D | mac_biba.c | 826 struct mac_biba *subj, *new; in biba_cred_check_relabel() local 829 subj = SLOT(cred->cr_label); in biba_cred_check_relabel() 859 !biba_effective_in_range(new, subj)) in biba_cred_check_relabel() 867 !biba_range_in_range(new, subj)) in biba_cred_check_relabel() 875 error = biba_subject_privileged(subj); in biba_cred_check_relabel() 887 struct mac_biba *subj, *obj; in biba_cred_check_visible() local 892 subj = SLOT(u1->cr_label); in biba_cred_check_visible() 896 if (!biba_dominate_effective(obj, subj)) in biba_cred_check_visible() 1015 struct mac_biba *subj, *new; in biba_ifnet_check_relabel() local 1018 subj = SLOT(cred->cr_label); in biba_ifnet_check_relabel() [all …]
|
| /src/sys/security/mac_mls/ |
| H A D | mac_mls.c | 790 struct mac_mls *subj, *new; in mls_cred_check_relabel() local 793 subj = SLOT(cred->cr_label); in mls_cred_check_relabel() 822 !mls_effective_in_range(new, subj)) in mls_cred_check_relabel() 830 !mls_range_in_range(new, subj)) in mls_cred_check_relabel() 838 error = mls_subject_privileged(subj); in mls_cred_check_relabel() 850 struct mac_mls *subj, *obj; in mls_cred_check_visible() local 855 subj = SLOT(cr1->cr_label); in mls_cred_check_visible() 859 if (!mls_dominate_effective(subj, obj)) in mls_cred_check_visible() 980 struct mac_mls *subj, *new; in mls_ifnet_check_relabel() local 983 subj = SLOT(cred->cr_label); in mls_ifnet_check_relabel() [all …]
|
| /src/sys/security/mac_lomac/ |
| H A D | mac_lomac.c | 496 struct mac_lomac_proc *subj; in maybe_demote() local 501 subj = PSLOT(curthread->td_proc->p_label); in maybe_demote() 504 mtx_lock(&subj->mtx); in maybe_demote() 505 if (subj->mac_lomac.ml_flags & MAC_LOMAC_FLAG_UPDATE) { in maybe_demote() 511 if (lomac_dominate_single(objlabel, &subj->mac_lomac)) { in maybe_demote() 512 mtx_unlock(&subj->mtx); in maybe_demote() 516 bzero(&subj->mac_lomac, sizeof(subj->mac_lomac)); in maybe_demote() 520 lomac_copy_single(objlabel, &subj->mac_lomac); in maybe_demote() 526 lomac_copy_range(subjlabel, &subj->mac_lomac); in maybe_demote() 528 &subj->mac_lomac.ml_rangelow)) in maybe_demote() [all …]
|
| /src/usr.bin/lockf/ |
| H A D | lockf.c | 52 static int acquire_lock(union lock_subject *subj, int flags, int silent); 109 union lock_subject subj; in main() local 164 subj.subj_fd = -1; in main() 166 fdlock = fdlock_implied(lockname, &subj.subj_fd); in main() 174 if (subj.subj_fd < 0) { in main() 178 subj.subj_fd = strtol(lockname, &endp, 10); in main() 186 if (subj.subj_fd < 0 || subj.subj_fd > INT_MAX) { in main() 188 subj.subj_fd); in main() 192 subj.subj_name = lockname; in main() 226 lockfd = acquire_lock(&subj, flags | O_NONBLOCK, silent); in main() [all …]
|
| /src/share/examples/uefisign/ |
| H A D | uefikeys | 24 subj="/CN=${1}" 33 openssl req -new -x509 -sha256 -days "${days}" -subj "${subj}" -key "${keyfile}" -out "${certfile}"…
|
| /src/usr.bin/mail/ |
| H A D | cmd3.c | 260 reedit(char *subj) in reedit() argument 264 if (subj == NULL) in reedit() 266 if ((subj[0] == 'r' || subj[0] == 'R') && in reedit() 267 (subj[1] == 'e' || subj[1] == 'E') && in reedit() 268 subj[2] == ':') in reedit() 269 return (subj); in reedit() 270 newsubj = salloc(strlen(subj) + 5); in reedit() 271 sprintf(newsubj, "Re: %s", subj); in reedit()
|
| /src/contrib/wpa/hs20/client/ |
| H A D | est.c | 372 X509_NAME *subj = NULL; in generate_csr() local 436 subj = X509_NAME_new(); in generate_csr() 437 if (subj == NULL || in generate_csr() 438 !X509_NAME_add_entry_by_txt(subj, "CN", MBSTRING_ASC, in generate_csr() 441 !X509_REQ_set_subject_name(req, subj)) in generate_csr() 443 X509_NAME_free(subj); in generate_csr() 444 subj = NULL; in generate_csr() 563 if (subj) in generate_csr() 564 X509_NAME_free(subj); in generate_csr()
|
| /src/crypto/openssl/test/ocsp-tests/ |
| H A D | mk-ocsp-cert-chain.sh | 27 -subj /CN=TestRootCA \ 43 -subj /CN=TestIntermediateCA \ 71 -subj /CN=TestServerCA \
|
| /src/crypto/openssl/test/recipes/95-test_external_oqsprovider_data/ |
| H A D | oqsprovider-ca.sh | 35 $OPENSSL_APP req -x509 -new -newkey $1 -keyout $1_rootCA.key -out $1_rootCA.crt -subj "/CN=test CA"… 42 $OPENSSL_APP req -new -newkey $1 -keyout $1.key -out $1.csr -nodes -subj "/CN=test Server"
|
| /src/crypto/openssl/test/recipes/25-test_eai_data/ |
| H A D | kdc.sh | 11 -x509 -subj /CN=Root -days 36524 -out kdc-root-cert.pem 37 -subj "/CN=TEST.EXAMPLE" |
|
| /src/usr.bin/msgs/ |
| H A D | msgs.c | 98 static char subj[128]; variable 487 printf("Subject: %s", subj); in main() 818 subj[0] = from[0] = date[0] = '\0'; in gfrsub() 874 strlcpy(subj, nxtfld(inbuf), sizeof subj); in gfrsub() 887 strlcpy(subj, "(No Subject)\n", sizeof subj); in gfrsub()
|
| /src/contrib/pam-krb5/ci/ |
| H A D | kdc-setup-mit | 58 -out /etc/krb5kdc/cacert.pem -subj "/CN=MIT.TEST CA" -days 3650 65 -key /var/lib/krb5kdc/kdckey.pem -subj "/CN=MIT.TEST" 76 -subj "/CN=testuser@MIT.TEST"
|
| /src/crypto/openssl/apps/ |
| H A D | req.c | 303 char *subj = NULL; in req_main() local 498 subj = opt_arg(); in req_main() 775 if (subj != NULL in req_main() 776 && (fsubj = parse_name(subj, chtype, multirdn, "subject")) == NULL) in req_main() 954 if (subj != NULL && !newreq && !gen_x509) { in req_main() 1176 X509_NAME *subj = X509_REQ_get_subject_name(req); in prompt_info() local 1246 if (!add_DN_object(subj, v->value, def, value, nid, in prompt_info() 1250 if (X509_NAME_entry_count(subj) == 0) { in prompt_info() 1318 X509_NAME *subj; in auto_info() local 1320 subj = X509_REQ_get_subject_name(req); in auto_info() [all …]
|
| H A D | ca.c | 99 BIGNUM *serial, const char *subj, unsigned long chtype, 111 BIGNUM *serial, const char *subj, unsigned long chtype, 120 BIGNUM *serial, const char *subj, unsigned long chtype, 128 const char *subj, unsigned long chtype, int multirdn, 335 const char *serialfile = NULL, *subj = NULL; in ca_main() local 396 subj = opt_arg(); in ca_main() 974 attribs, db, serial, subj, chtype, multirdn, in ca_main() 995 db, serial, subj, chtype, multirdn, email_dn, in ca_main() 1016 serial, subj, chtype, multirdn, email_dn, startdate, in ca_main() 1037 serial, subj, chtype, multirdn, email_dn, startdate, in ca_main() [all …]
|
| H A D | x509.c | 330 char *issu = NULL, *subj = NULL, *digest = NULL; in x509_main() local 503 subj = opt_arg(); in x509_main() 730 if (subj == NULL) { in x509_main() 744 if (subj != NULL in x509_main() 745 && (fsubj = parse_name(subj, chtype, multirdn, "subject")) == NULL) in x509_main()
|
| /src/crypto/openssl/crypto/x509/ |
| H A D | t_x509.c | 205 const X509_NAME *subj; in X509_ocspid_print() local 215 subj = X509_get_subject_name(x); in X509_ocspid_print() 216 derlen = i2d_X509_NAME(subj, NULL); in X509_ocspid_print() 221 if (i2d_X509_NAME(subj, &dertmp) < 0) in X509_ocspid_print()
|
| /src/crypto/openssl/crypto/cmp/ |
| H A D | cmp_genm.c | 25 char *subj = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); in cert_msg() local 30 source, subj, msg); in cert_msg() 31 OPENSSL_free(subj); in cert_msg()
|
| H A D | cmp_client.c | 664 char *subj = NULL; in cert_response() local 750 subj = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); in cert_response() 777 "rejecting newly enrolled cert with subject: %s", subj); in cert_response() 792 subj, txt); in cert_response() 796 OPENSSL_free(subj); in cert_response()
|
| /src/usr.sbin/certctl/tests/ |
| H A D | certctl.subr | 40 -subj="$(subject ${crtname})" \
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/ |
| H A D | zfs_load-key_common.kshlib | 105 …days 1 -nodes -keyout "/$TESTPOOL/snakeoil.key" -out "$SSL_CA_CERT_FILE" -subj "/CN=$HTTPS_HOSTNAM…
|
| /src/contrib/netbsd-tests/usr.bin/grep/ |
| H A D | t_grep.sh | 562 echo "blubb" > subj 566 atf_check -s exit:1 -o empty fgrep -f epatfile subj 567 atf_check -o file:subj fgrep -vf epatfile subj
|
| /src/crypto/openssl/demos/guide/ |
| H A D | Makefile | 35 openssl req -x509 -new -key pkey.pem -days 36500 -subj '/CN=localhost' -out chain.pem
|
| /src/crypto/openssl/test/recipes/ |
| H A D | 25-test_x509.t | 80 my $subj = "/CN=CA"; # using same DN as in issuer of ee-cert.pem 89 && run(app(["openssl", "x509", "-new", "-force_pubkey", $pubkey, "-subj", $subj,
|
| /src/sys/netinet6/ |
| H A D | icmp6.c | 1188 char *subj = NULL; in ni6_input() local 1292 subj = (char *)&in6_subj; in ni6_input() 1336 subj = (char *)(mtod(m, caddr_t) + off + in ni6_input() 1338 if (!ni6_dnsmatch(subj, subjlen, mtod(n, const char *), in ni6_input() 1378 addrs = ni6_addrs(ni6, m, &ifp, (struct in6_addr *)subj); in ni6_input() 1656 struct in6_addr *subj) in ni6_addrs() argument 1669 if (subj == NULL) /* must be impossible... */ in ni6_addrs() 1689 IN6_ARE_ADDR_EQUAL(subj, &ifa6->ia_addr.sin6_addr)) in ni6_addrs()
|
| /src/crypto/openssl/test/smime-certs/ |
| H A D | mksmime-certs.sh | 17 $OPENSSL x509 -CA smroot.pem -new -days 36524 -force_pubkey $1 -subj "$2" \
|