rpc_mgmt_inq_dflt_protect_level(3rpc)Returns the default protection level for an authentication service Used by client and server applications. Synopsis #include <dce/rpc.h> void rpc_mgmt_inq_dflt_protect_level( unsigned32 authn_svc, unsigned32 *protect_level, unsigned32 *status); Parameters Input
authn_svc The supported authentication services are as follows:
protect_level The possible protection levels are as follows:
Returns the status code from this routine. This status code indicates whether the routine completed successfully or, if not, why not.
Description A client can call this routine to learn the default protection level before specifying rpc_c_protect_level_default for the protect_level parameter in the pc_binding_set_auth_info( ) routine. If the default level is inappropriate, the client can specify a different, explicit level. A called remote procedure within a server application can call this routine to obtain the default protection level for a given authentication service. By calling routine rpc_binding_inq_auth_client( ) in the remote procedure, the server can obtain the protection level set up by the calling client. The server can then compare the client-specified protection level with the default level to determine whether to allow the remote procedure to execute. Alternatively, a remote procedure can compare the client's protection level against a level other than the default level. In this case there is no need for the server's remote procedure to call this routine.
Return Values Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
rpc_s_ok
rpc_s_unknown_authn_service
Related Information rpc_binding_set_auth_info(3rpc)
|