/freebsd/sys/security/mac_biba/ |
H A D | mac_biba.c | 827 struct mac_biba *subj, *new; in biba_cred_check_relabel() local 830 subj = SLOT(cred->cr_label); in biba_cred_check_relabel() 888 struct mac_biba *subj, *obj; in biba_cred_check_visible() local 893 subj = SLOT(u1->cr_label); in biba_cred_check_visible() 1016 struct mac_biba *subj, *new; in biba_ifnet_check_relabel() local 1019 subj = SLOT(cred->cr_label); in biba_ifnet_check_relabel() 1155 struct mac_biba *subj, *obj; in biba_inpcb_check_visible() local 1888 struct mac_biba *subj; in biba_priv_check() local 2387 struct mac_biba *subj; in biba_system_check_auditon() local 2406 struct mac_biba *subj; in biba_system_check_swapoff() local [all …]
|
/freebsd/sys/security/mac_mls/ |
H A D | mac_mls.c | 792 struct mac_mls *subj, *new; in mls_cred_check_relabel() local 852 struct mac_mls *subj, *obj; in mls_cred_check_visible() local 857 subj = SLOT(cr1->cr_label); in mls_cred_check_visible() 982 struct mac_mls *subj, *new; in mls_ifnet_check_relabel() local 1077 struct mac_mls *subj, *obj; in mls_inpcb_check_visible() local 1223 struct mac_mls *subj, *obj; in mls_mount_check_stat() local 1345 struct mac_mls *subj, *obj; in mls_pipe_check_poll() local 1363 struct mac_mls *subj, *obj; in mls_pipe_check_read() local 1432 struct mac_mls *subj, *obj; in mls_pipe_check_stat() local 1450 struct mac_mls *subj, *obj; in mls_pipe_check_write() local [all …]
|
/freebsd/sys/security/mac_lomac/ |
H A D | mac_lomac.c | 505 mtx_lock(&subj->mtx); in maybe_demote() 513 mtx_unlock(&subj->mtx); in maybe_demote() 517 bzero(&subj->mac_lomac, sizeof(subj->mac_lomac)); in maybe_demote() 539 mtx_unlock(&subj->mtx); in maybe_demote() 1666 struct mac_lomac *subj; in lomac_priv_check() local 2175 struct mac_lomac *subj; in lomac_system_check_swapoff() local 2213 struct mac_lomac *subj; in lomac_system_check_sysctl() local 2245 mtx_lock(&subj->mtx); in lomac_thread_userret() 2248 mtx_unlock(&subj->mtx); in lomac_thread_userret() 2251 mtx_lock(&subj->mtx); in lomac_thread_userret() [all …]
|
/freebsd/usr.bin/lockf/ |
H A D | lockf.c | 97 union lock_subject subj; in main() local 147 subj.subj_fd = -1; 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() 212 lockfd = acquire_lock(&subj, flags, silent); in main() 269 assert(subj->subj_fd >= 0 && subj->subj_fd <= INT_MAX); in acquire_lock() 270 fd = (int)subj->subj_fd; in acquire_lock() [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 | 394 X509_NAME *subj = NULL; in generate_csr() local 463 subj = X509_NAME_new(); in generate_csr() 464 if (subj == NULL || in generate_csr() 465 !X509_NAME_add_entry_by_txt(subj, "CN", MBSTRING_ASC, in generate_csr() 468 !X509_REQ_set_subject_name(req, subj)) in generate_csr() 470 X509_NAME_free(subj); in generate_csr() 471 subj = NULL; in generate_csr() 590 if (subj) in generate_csr() 591 X509_NAME_free(subj); in generate_csr()
|
/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 | 255 char *req_exts = NULL, *subj = NULL; in req_main() local 436 subj = opt_arg(); in req_main() 745 if (subj != NULL 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, v->value, def, value, nid, in prompt_info() 1222 if (X509_NAME_entry_count(subj) == 0) { in prompt_info() 1301 X509_NAME *subj; in auto_info() local 1303 subj = X509_REQ_get_subject_name(req); in auto_info() 1338 if (!X509_NAME_add_entry_by_txt(subj, type, chtype, in auto_info() [all …]
|
H A D | ca.c | 97 BIGNUM *serial, const char *subj, unsigned long chtype, 109 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() 1383 BIGNUM *serial, const char *subj, unsigned long chtype, in certify() argument 1495 const char *subj, unsigned long chtype, int multirdn, in do_body() argument 1521 if (subj) { in do_body() [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 | 568 char *subj = NULL; in cert_response() local 622 subj = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); in cert_response() 648 "rejecting newly enrolled cert with subject: %s", subj); in cert_response() 659 subj, txt); in cert_response() 663 OPENSSL_free(subj); in cert_response()
|
/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/contrib/netbsd-tests/usr.bin/grep/ |
H A D | t_grep.sh | 560 echo "blubb" > subj 564 atf_check -s exit:1 -o empty fgrep -f epatfile subj 565 atf_check -o file:subj fgrep -vf epatfile subj
|
/freebsd/sys/netinet6/ |
H A D | icmp6.c | 1214 char *subj = NULL; in ni6_input() local 1318 subj = (char *)&in6_subj; in ni6_input() 1362 subj = (char *)(mtod(m, caddr_t) + off + in ni6_input() 1364 if (!ni6_dnsmatch(subj, subjlen, mtod(n, const char *), in ni6_input() 1404 addrs = ni6_addrs(ni6, m, &ifp, (struct in6_addr *)subj); in ni6_input() 1682 struct in6_addr *subj) in ni6_addrs() argument 1695 if (subj == NULL) /* must be impossible... */ in ni6_addrs() 1715 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() local 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()
|
/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
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_crypto.c | 3150 X509_NAME *subj; /* distinguished (common) name */ in cert_sign() local 3201 subj = X509_get_issuer_name(cert); in cert_sign() 3202 X509_NAME_add_entry_by_txt(subj, "commonName", MBSTRING_ASC, in cert_sign() 3204 subj = X509_get_subject_name(req); in cert_sign() 3205 X509_set_subject_name(cert, subj); in cert_sign()
|