SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from PCLinuxOS lib64tirpc-devel-1.0.1-1pclos2017.x86_64.rpm

RPC_GSS_SET_CALLBACK

Section: C Library Functions (3)
Index
BSD mandoc
 

NAME

rpc_gss_set_callback - Register a security context creation callback 

SYNOPSIS

In rpc/rpcsec_gss.hFt bool_tFo (*callback)Fa struct svc_req *reqFa gss_cred_id_t delegFa gss_ctx_id_t gss_contextFa rpc_gss_lock_t *lockFa void **cookieFc Ft bool_tFn rpc_gss_set_callback rpc_gss_callback_t *cb 

DESCRIPTION

Register a function which will be called when new security contextsare created on a server.This function will be called on the first RPC request which uses thatcontext and has the opportunity of rejecting the request (for instanceafter matching the request credentials to an access control list).To accept the new security context, the callback should returnTRUE otherwiseFALSE If the callback accepts a context, it becomes responsible for thelifetime of the delegated client credentials (if any).

It is also possible to 'lock' the values of service and quality ofprotection used by the context.If a context is locked, any subsequent requests which use differentvalues for service and quality of protection will be rejected. 

PARAMETERS

cb
A structure containing the RPC program and version for this callbackand a function which will be called when new contexts are created forthe given RPC program and version
req
The RPC request using the new context
deleg
GSS-API delegated credentials (if any)
gss_context
The GSS-API context
lock
A structure used to enforce a particular QOP and service. SetFa lock->lockedtoTRUEto lock the service and QOP values
cookie
The callback function may setFa *cookieto any pointer sized value.This value can be accessed during the lifetime of the context viaFn rpc_gss_getcred .

 

RETURN VALUES

ReturnsTRUEif the callback was registered successfully orFALSEotherwise 

AVAILABILITY

TheFn rpc_gss_set_callbackfunction is part of libtirpc. 

SEE ALSO

rpc(3),gssapi(3),rpc_gss_getcred3rpcsec_gss3 

AUTHORS

Thismanual page was written byAn Doug Rabson Aq dfrAATTFreeBSD.org . 

BUGS

There is no mechanism for informing a server when a security contexthas been deleted.This makes it difficult to allocate resources (e.g. to return via thecallback'sFa cookieargument).


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUES
AVAILABILITY
SEE ALSO
AUTHORS
BUGS

This document was created byman2html,using the manual pages.