/freebsd/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 …]
|
/freebsd/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 …]
|
/freebsd/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 …]
|
/freebsd/usr.bin/lockf/ |
H A D | lockf.c | 50 static int acquire_lock(union lock_subject *subj, int flags, int silent); 97 union lock_subject subj; in main() local 147 subj.subj_fd = -1; in main() 149 fdlock = fdlock_implied(lockname, &subj.subj_fd); in main() 157 if (subj.subj_fd < 0) { in main() 161 subj.subj_fd = strtol(lockname, &endp, 10); in main() 169 if (subj.subj_fd < 0 || subj.subj_fd > INT_MAX) { in main() 171 subj.subj_fd); in main() 175 subj.subj_name = lockname; in main() 209 lockfd = acquire_lock(&subj, flags | O_NONBLOCK, silent); in main() [all …]
|
/freebsd/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}"…
|
/freebsd/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()
|
/freebsd/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()
|
/freebsd/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" |
|
/freebsd/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()
|
/freebsd/crypto/openssl/apps/ |
H A D | req.c | 124 {"subj", OPT_SUBJ, 's', "Set or modify subject of request or cert"}, 255 char *req_exts = NULL, *subj = NULL; in req_main() local 436 subj = opt_arg(); in req_main() 742 * subj is expected to be in the format /type0=value0/type1=value1/type2=... in req_main() 745 if (subj != NULL in req_main() 746 && (fsubj = parse_name(subj, chtype, multirdn, "subject")) == NULL) in req_main() 798 /* Note that -x509 can take over -key and -subj option values. */ in req_main() 909 if (subj != NULL && !newreq && !gen_x509) { in req_main() 1139 X509_NAME *subj = X509_REQ_get_subject_name(req); in prompt_info() local 1218 if (!add_DN_object(subj, in prompt_info() 1301 X509_NAME *subj; auto_info() local [all...] |
H A D | ca.c | 97 BIGNUM *serial, const char *subj, unsigned long chtype, 109 BIGNUM *serial, const char *subj, unsigned long chtype, 118 BIGNUM *serial, const char *subj, unsigned long chtype, 126 const char *subj, unsigned long chtype, int multirdn, 284 const char *serialfile = NULL, *subj = NULL; in ca_main() local 342 subj = opt_arg(); in ca_main() 968 attribs, db, serial, subj, chtype, multirdn, in ca_main() 989 db, serial, subj, chtype, multirdn, email_dn, in ca_main() 1010 serial, subj, chtype, multirdn, email_dn, startdate, in ca_main() 1031 serial, subj, chtype, multirdn, email_dn, startdate, in ca_main() [all …]
|
H A D | x509.c | 264 char *subj = NULL, *digest = NULL; in x509_main() local 427 subj = opt_arg(); in x509_main() 641 if (subj == NULL) { in x509_main() 652 if (subj != NULL in x509_main() 653 && (fsubj = parse_name(subj, chtype, multirdn, "subject")) == NULL) in x509_main()
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 25-test_x509.t | 68 my $subj = "/CN=CA"; # using same DN as in issuer of ee-cert.pem 78 "-subj", $subj, "-extfile", $extfile,
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | t_x509.c | 230 const X509_NAME *subj; in X509_ocspid_print() local 240 subj = X509_get_subject_name(x); in X509_ocspid_print() 241 derlen = i2d_X509_NAME(subj, NULL); in X509_ocspid_print() 246 i2d_X509_NAME(subj, &dertmp); in X509_ocspid_print()
|
H A D | v3_conf.c | 446 void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subj, X509_REQ *req, in X509V3_set_ctx() argument 455 ctx->subject_cert = subj; in X509V3_set_ctx()
|
/freebsd/crypto/openssl/crypto/cmp/ |
H A D | cmp_client.c | 571 char *subj = NULL; in cert_response() local 625 subj = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); in cert_response() 651 "rejecting newly enrolled cert with subject: %s", subj); in cert_response() 662 subj, txt); in cert_response() 666 OPENSSL_free(subj); in cert_response()
|
/freebsd/contrib/netbsd-tests/usr.bin/grep/ |
H A D | t_grep.sh | 556 echo "blubb" > subj 560 atf_check -s exit:1 -o empty fgrep -f epatfile subj 561 atf_check -o file:subj fgrep -vf epatfile subj
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_load-key/ |
H A D | zfs_load-key_common.kshlib | 104 …days 1 -nodes -keyout "/$TESTPOOL/snakeoil.key" -out "$SSL_CA_CERT_FILE" -subj "/CN=$HTTPS_HOSTNAM…
|
/freebsd/sys/netinet6/ |
H A D | icmp6.c | 1217 char *subj = NULL; in ni6_input() local 1321 subj = (char *)&in6_subj; in ni6_input() 1365 subj = (char *)(mtod(m, caddr_t) + off + in ni6_input() 1367 if (!ni6_dnsmatch(subj, subjlen, mtod(n, const char *), in ni6_input() 1407 addrs = ni6_addrs(ni6, m, &ifp, (struct in6_addr *)subj); in ni6_input() 1685 struct in6_addr *subj) in ni6_addrs() argument 1698 if (subj == NULL) /* must be impossible... */ in ni6_addrs() 1718 IN6_ARE_ADDR_EQUAL(subj, &ifa6->ia_addr.sin6_addr)) in ni6_addrs()
|
/freebsd/contrib/ntp/util/ |
H A D | ntp-keygen.c | 1982 X509_NAME *subj; /* distinguished (common) name */ in x509() 2006 subj = X509_get_subject_name(cert); in x509() 2007 X509_NAME_add_entry_by_txt(subj, "commonName", MBSTRING_ASC, in x509() 2009 subj = X509_get_issuer_name(cert); in x509() 2010 X509_NAME_add_entry_by_txt(subj, "commonName", MBSTRING_ASC, in x509() 1967 X509_NAME *subj; /* distinguished (common) name */ x509() local
|
/freebsd/crypto/openssl/test/certs/ |
H A D | mkcert.sh | 85 openssl req -new -"${OPENSSL_SIGALG}" -subj / -key "${key}.pem" \
|
H A D | setup.sh | 208 openssl req -new -x509 -key ee-key.pem -subj /CN=ee-self-signed -out ee-self-signed.pem -addext key… 421 openssl req -new -noenc -subj "/CN=localhost" \
|
/freebsd/crypto/openssl/doc/man7/ |
H A D | proxy-certificates.pod | 113 -subj "/DC=org/DC=openssl/DC=users/CN=proxy" 125 -subj "/DC=org/DC=openssl/DC=users/CN=proxy/CN=proxy 2"
|
/freebsd/contrib/sendmail/src/ |
H A D | tls.c | 1982 X509_NAME *subj, *issuer; 1985 subj = X509_get_subject_name(cert); 1987 X509_NAME_oneline(subj, buf, sizeof(buf)); 2027 r = X509_NAME_get_text_by_NID(subj, NID_commonName, buf,
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-x509.pod.in | 59 [B<-subj> I<arg>] 121 Instead, the B<-subj> option needs to be given. 386 =item B<-subj> I<arg> 414 It can also be used in conjunction with B<-new> and B<-subj> to directly
|