/netbsd-current/external/bsd/openpam/dist/lib/libpam/ |
H A D | openpam_borrow_cred.c | 68 struct pam_saved_cred *scred; local 84 scred = calloc((size_t)1, sizeof *scred); 85 if (scred == NULL) 87 scred->euid = geteuid(); 88 scred->egid = getegid(); 89 r = getgroups(NGROUPS_MAX, scred->groups); 91 FREE(scred); 94 scred->ngroups = r; 95 r = pam_set_data(pamh, PAM_SAVED_CRED, scred, [all...] |
H A D | openpam_restore_cred.c | 67 const struct pam_saved_cred *scred; local 77 scred = scredp; 78 if (scred->euid != geteuid()) { 79 if (seteuid(scred->euid) < 0 || 80 setgroups(scred->ngroups, scred->groups) < 0 || 81 setegid(scred->egid) < 0)
|
/netbsd-current/external/bsd/openldap/dist/libraries/libldap/ |
H A D | cyrus.c | 634 struct berval *scred = NULL; local 638 rc = ldap_parse_sasl_bind_result( ld, result, &scred, 0 ); 640 if ( scred ) 641 ber_bvfree( scred ); 647 if( scred ) { 651 rc, scred ? (long) scred->bv_len : -1L ); 652 ber_bvfree( scred ); 653 scred = NULL; 660 if ( scred ) [all...] |
H A D | sasl.c | 269 struct berval* scred; local 292 scred = NULL; 348 if( ber_scanf( ber, "O", &scred ) == LBER_ERROR ) { 359 *servercredp = scred; 361 } else if ( scred != NULL ) { 362 ber_bvfree( scred );
|
H A D | vc.c | 308 struct berval **scred, 322 rc = ldap_parse_verify_credentials(ld, res, rcode, diagmsg, scookie, scred, vcoctrls); 296 ldap_verify_credentials_s( LDAP *ld, struct berval *cookie, LDAP_CONST char *dn, LDAP_CONST char *mechanism, struct berval *cred, LDAPControl **vcictrls, LDAPControl **sctrls, LDAPControl **cctrls, int *rcode, char **diagmsg, struct berval **scookie, struct berval **scred, LDAPControl ***vcoctrls) argument
|
H A D | gssapi.c | 672 struct berval cred, *scred = NULL; local 741 rc = ldap_sasl_bind_s( ld, NULL, "GSS-SPNEGO", &cred, NULL, NULL, &scred ); 747 if ( scred ) { 748 input_token.value = scred->bv_val; 749 input_token.length = scred->bv_len; 768 if ( scred ) { 769 ber_bvfree( scred );
|
/netbsd-current/external/bsd/openldap/dist/servers/lloadd/ |
H A D | upstream.c | 279 sasl_bind_step( LloadConnection *c, BerValue *scred, BerValue *ccred ) argument 375 (scred == NULL) ? NULL : scred->bv_val, 376 (scred == NULL) ? 0 : scred->bv_len, 445 BerValue scred = BER_BVNULL, ccred; local 450 ber_scanf( ber, "m", &scred ) == LBER_ERROR ) { 456 rc = sasl_bind_step( c, &scred, &ccred );
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/kadm5/ |
H A D | ad.c | 130 struct berval ccred, *scred; local 192 serverControls, clientControls, &scred); 196 if(scred && scred->bv_len) 197 ber_bvfree(scred); 201 in.tb_data = malloc(scred->bv_len); 206 memcpy(in.tb_data, scred->bv_val, scred->bv_len); 207 in.tb_size = scred->bv_len; 208 ber_bvfree(scred); [all...] |
/netbsd-current/external/bsd/openldap/dist/clients/tools/ |
H A D | ldapvc.c | 286 struct berval *scred = NULL; local 453 rc = ldap_parse_verify_credentials( ld, res, &rcode, &diag, &scookie, &scred, &vcctrls ); 505 ber_bvfree( scred );
|
/netbsd-current/sys/kern/ |
H A D | kern_proc.c | 1830 proc_crmod_leave(kauth_cred_t scred, kauth_cred_t fcred, bool sugid) argument 1839 if (scred != NULL) { 1840 p->p_cred = scred; 1851 if ((oc = l->l_cred) != scred) { 1852 l->l_cred = kauth_cred_hold(scred); 1869 KASSERT(scred != NULL); 1871 if (oc != scred)
|