/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_subr.h | 142 void smb_credinit(struct smb_cred *scred, cred_t *cr); 143 void smb_credrele(struct smb_cred *scred); 167 uio_t *uiop, smb_cred_t *scred, int timo); 195 int smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred); 196 int smb_smb_ssnsetup(struct smb_vc *vcp, struct smb_cred *scred); 197 int smb_smb_logoff(struct smb_vc *vcp, struct smb_cred *scred); 198 int smb_smb_echo(smb_vc_t *vcp, smb_cred_t *scred, int timo); 199 int smb_smb_treeconnect(smb_share_t *ssp, smb_cred_t *scred); 200 int smb_smb_treedisconnect(smb_share_t *ssp, smb_cred_t *scred); 219 uio_t *uiop, smb_cred_t *scred, int timo); [all …]
|
H A D | smb_usr.c | 104 struct smb_cred scred; in smb_usr_xnp() local 144 smb_credinit(&scred, cr); in smb_usr_xnp() 148 FSCTL_PIPE_TRANSCEIVE, &scred); in smb_usr_xnp() 152 &ioc->ioc_more, &scred); in smb_usr_xnp() 154 smb_credrele(&scred); in smb_usr_xnp() 210 struct smb_cred scred; in smb_usr_rw() local 257 smb_credinit(&scred, cr); in smb_usr_rw() 258 err = smb_rwuio(fhp, rw, &auio, &scred, 0); in smb_usr_rw() 259 smb_credrele(&scred); in smb_usr_rw() 282 struct smb_cred scred; in smb_usr_ntcreate() local [all …]
|
H A D | smb_conn.c | 401 smb_vc_create(smbioc_ossn_t *ossn, smb_cred_t *scred, smb_vc_t **vcpp) in smb_vc_create() argument 404 cred_t *cr = scred->scr_cred; in smb_vc_create() 458 smb_vc_findcreate(smbioc_ossn_t *ossn, smb_cred_t *scred, smb_vc_t **vcpp) in smb_vc_findcreate() argument 538 error = smb_vc_create(ossn, scred, &vcp); in smb_vc_findcreate() 636 struct smb_cred scred; in smb_share_gone() local 640 smb_credinit(&scred, NULL); in smb_share_gone() 643 (void) smb2_smb_treedisconnect(ssp, &scred); in smb_share_gone() 645 (void) smb_smb_treedisconnect(ssp, &scred); in smb_share_gone() 646 smb_credrele(&scred); in smb_share_gone() 671 struct smb_share **sspp, struct smb_cred *scred) in smb_share_create() argument [all …]
|
H A D | smb_rq.h | 214 struct smb_cred *scred, struct smb_rq **rqpp); 216 uchar_t cmd, struct smb_cred *scred); 232 struct smb_cred *scred, struct smb_t2rq **rqpp); 234 ushort_t *setup, int setupcnt, struct smb_cred *scred); 243 struct smb_cred *scred, struct smb_ntrq **rqpp); 245 ushort_t fn, struct smb_cred *scred);
|
H A D | smb_iod.c | 943 smb_cred_t scred; in smb_iod_send_echo() local 948 smb_credinit(&scred, cr); in smb_iod_send_echo() 950 err = smb2_smb_echo(vcp, &scred, tmo); in smb_iod_send_echo() 952 err = smb_smb_echo(vcp, &scred, tmo); in smb_iod_send_echo() 954 smb_credrele(&scred); in smb_iod_send_echo() 1530 smb_cred_t scred; in nsmb_iod_negotiate() local 1535 smb_credinit(&scred, cr); in nsmb_iod_negotiate() 1591 err = smb_smb_negotiate(vcp, &scred); in nsmb_iod_negotiate() 1618 err = smb2_smb_negotiate(vcp, &scred); in nsmb_iod_negotiate() 1633 smb_credrele(&scred); in nsmb_iod_negotiate() [all …]
|
H A D | smb_smb.c | 99 smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred) in smb_smb_negotiate() argument 156 err = smb_rq_alloc(VCTOCP(vcp), SMB_COM_NEGOTIATE, scred, &rqp); in smb_smb_negotiate() 454 smb_smb_ssnsetup(struct smb_vc *vcp, struct smb_cred *scred) in smb_smb_ssnsetup() argument 472 scred, &rqp); in smb_smb_ssnsetup() 581 smb_smb_logoff(struct smb_vc *vcp, struct smb_cred *scred) in smb_smb_logoff() argument 590 error = smb_rq_alloc(VCTOCP(vcp), SMB_COM_LOGOFF_ANDX, scred, &rqp); in smb_smb_logoff() 672 smb_smb_treeconnect(struct smb_share *ssp, struct smb_cred *scred) in smb_smb_treeconnect() argument 697 scred, &rqp); in smb_smb_treeconnect() 826 smb_smb_treedisconnect(struct smb_share *ssp, struct smb_cred *scred) in smb_smb_treedisconnect() argument 843 error = smb_rq_alloc(VCTOCP(vcp), SMB_COM_TREE_DISCONNECT, scred, &rqp); in smb_smb_treedisconnect() [all …]
|
H A D | smb2_smb.c | 153 smb2_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred) in smb2_smb_negotiate() argument 178 err = smb_rq_alloc(VCTOCP(vcp), SMB2_NEGOTIATE, scred, &rqp); in smb2_smb_negotiate() 352 smb2_smb_ssnsetup(struct smb_vc *vcp, struct smb_cred *scred) in smb2_smb_ssnsetup() argument 379 err = smb_rq_alloc(VCTOCP(vcp), SMB2_SESSION_SETUP, scred, &rqp); in smb2_smb_ssnsetup() 526 smb2_smb_logoff(struct smb_vc *vcp, struct smb_cred *scred) in smb2_smb_logoff() argument 535 error = smb_rq_alloc(VCTOCP(vcp), SMB2_LOGOFF, scred, &rqp); in smb2_smb_logoff() 558 smb2_smb_treeconnect(struct smb_share *ssp, struct smb_cred *scred) in smb2_smb_treeconnect() argument 584 error = smb_rq_alloc(VCTOCP(vcp), SMB2_TREE_CONNECT, scred, &rqp); in smb2_smb_treeconnect() 719 smb2_smb_treedisconnect(struct smb_share *ssp, struct smb_cred *scred) in smb2_smb_treedisconnect() argument 737 error = smb_rq_alloc(VCTOCP(vcp), SMB2_TREE_DISCONNECT, scred, &rqp); in smb2_smb_treedisconnect() [all …]
|
H A D | smb_rq.c | 106 smb_rq_alloc(struct smb_connobj *layer, uchar_t cmd, struct smb_cred *scred, in smb_rq_alloc() argument 115 error = smb_rq_init(rqp, layer, cmd, scred); in smb_rq_alloc() 127 struct smb_cred *scred) in smb_rq_init() argument 152 rqp->sr_cred = scred; /* Note: ref hold done by caller. */ in smb_rq_init() 668 smb_t2_alloc(struct smb_connobj *layer, ushort_t setup, struct smb_cred *scred, in smb_t2_alloc() argument 677 error = smb_t2_init(t2p, layer, &setup, 1, scred); in smb_t2_alloc() 688 smb_nt_alloc(struct smb_connobj *layer, ushort_t fn, struct smb_cred *scred, in smb_nt_alloc() argument 697 error = smb_nt_init(ntp, layer, fn, scred); in smb_nt_alloc() 711 int setupcnt, struct smb_cred *scred) in smb_t2_init() argument 726 t2p->t2_cred = scred; in smb_t2_init() [all …]
|
H A D | smb_subrs.c | 63 smb_credinit(struct smb_cred *scred, cred_t *cr) in smb_credinit() argument 77 scred->scr_cred = cr; in smb_credinit() 81 smb_credrele(struct smb_cred *scred) in smb_credrele() argument 83 if (scred->scr_cred != NULL) { in smb_credrele() 84 crfree(scred->scr_cred); in smb_credrele() 85 scred->scr_cred = NULL; in smb_credrele() 1234 uio_t *uiop, smb_cred_t *scred, int timo) in smb_rwuio() argument 1284 error = (*iofun)(fhp, &rlen, uiop, scred, timo); in smb_rwuio()
|
H A D | smb_conn.h | 492 int smb_vc_create(smbioc_ossn_t *ossn, smb_cred_t *scred, smb_vc_t **vcpp);
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_vnops.c | 139 static int smbfsremove(vnode_t *dvp, vnode_t *vp, struct smb_cred *scred, 142 char *nnm, struct smb_cred *scred, int flags); 208 struct smb_cred scred; in smbfs_open() local 236 smb_credinit(&scred, cr); in smbfs_open() 262 &scred, &np->n_dirseq); in smbfs_open() 320 rights, &scred, in smbfs_open() 357 smb_credrele(&scred); in smbfs_open() 369 struct smb_cred scred; in smbfs_close() local 461 smb_credinit(&scred, cr); in smbfs_close() 463 smbfs_rele_fid(np, &scred); in smbfs_close() [all …]
|
H A D | smbfs_acl.c | 73 struct smb_cred scred; in smbfs_getsd() local 87 smb_credinit(&scred, cr); in smbfs_getsd() 89 error = smbfs_smb_tmpopen(np, rights, &scred, &fid); in smbfs_getsd() 98 selector, mp, &sdlen, &scred); in smbfs_getsd() 120 smb_credrele(&scred); in smbfs_getsd() 136 struct smb_cred scred; in smbfs_setsd() local 162 smb_credinit(&scred, cr); in smbfs_setsd() 164 error = smbfs_smb_tmpopen(np, rights, &scred, &fid); in smbfs_setsd() 181 selector, mp, &scred); in smbfs_setsd() 186 smb_credrele(&scred); in smbfs_setsd()
|
H A D | smbfs_xattr.c | 201 struct smb_cred scred; in smbfs_xa_exists() local 212 smb_credinit(&scred, cr); in smbfs_xa_exists() 217 ctx.f_scred = &scred; in smbfs_xa_exists() 235 smb_credrele(&scred); in smbfs_xa_exists()
|
H A D | smbfs_vfsops.c | 411 smb_cred_t scred; in smbfs_mount() local 661 smb_credinit(&scred, cr); in smbfs_mount() 662 error = smbfs_smb_qfsattr(smi->smi_share, &smi->smi_fsa, &scred); in smbfs_mount() 663 smb_credrele(&scred); in smbfs_mount() 904 smb_cred_t scred; in smbfs_statvfs() local 945 smb_credinit(&scred, NULL); in smbfs_statvfs() 947 error = smbfs_smb_statfs(ssp, &stvfs, &scred); in smbfs_statvfs() 948 smb_credrele(&scred); in smbfs_statvfs()
|
H A D | smbfs_client.c | 401 struct smb_cred scred; in smbfs_getattr_otw() local 429 smb_credinit(&scred, cr); in smbfs_getattr_otw() 447 error = smbfs_smb_getfattr(np, fhp, fap, &scred); in smbfs_getattr_otw() 451 error = smbfs_smb_getpattr(np, fap, &scred); in smbfs_getattr_otw() 454 smb_credrele(&scred); in smbfs_getattr_otw()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | sasl.c | 731 struct berval *scred; in nsldapi_sasl_do_bind() local 734 scred = NULL; in nsldapi_sasl_do_bind() 742 sctrl, cctrl, &scred); in nsldapi_sasl_do_bind() 749 ber_bvfree( scred ); in nsldapi_sasl_do_bind() 755 if( scred ) { in nsldapi_sasl_do_bind() 756 if (scred->bv_len == 0 ) { /* MS AD sends back empty screds */ in nsldapi_sasl_do_bind() 760 ber_bvfree( scred ); in nsldapi_sasl_do_bind() 765 scred->bv_len, 0, 0); in nsldapi_sasl_do_bind() 766 ber_bvfree( scred ); in nsldapi_sasl_do_bind() 783 (scred == NULL) ? NULL : scred->bv_val, in nsldapi_sasl_do_bind() [all …]
|