Gets the highest and lowest version of RPCSEC_GSS.
Network Services Library (libnsl.a)
#include <rpc/rpcsec_gss.h>
bool_t rpc_gss_get_versions(vers_hi,vers_lo)
u_int *vers_hi;
u_int *vers_lo;
You can use this subroutine to determine the highest and the lowest version of RPCSEC_GSS that is supported.
Item | Description |
---|---|
vers_hi | Points to the highest version when a subroutine returns successfully. |
vers_lo | Points to the lowest version when a subroutine returns successfully. |
Item | Description |
---|---|
TRUE | successful |
FALSE | unsuccessful |
#include <stdlib.h>
#include <rpc/rpc.h>
#include <rpc/rpcsec_gss.h>
int main()
{
int high_vers, low_vers;
if (rpc_gss_get_versions(&high_vers,&low_vers))
{
fprintf(stderr,"\nError in rpc_gss_get_versions:\n");
exit(EXIT_FAILURE);
}
return 0;
}