rpc_gss_get_versions Subroutine

Purpose

Gets the highest and lowest version of RPCSEC_GSS.

Library

Network Services Library (libnsl.a)

Syntax

#include <rpc/rpcsec_gss.h>
bool_t rpc_gss_get_versions(vers_hi,vers_lo)
u_int *vers_hi;
u_int *vers_lo;

Description

You can use this subroutine to determine the highest and the lowest version of RPCSEC_GSS that is supported.

Parameters

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.

Return Values

Item Description
TRUE successful
FALSE unsuccessful

Examples

#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;
}