{
    "mode": "man",
    "parameter": "RPC_GSS_SECCREATE",
    "section": "3",
    "url": "https://www.chedong.com/phpMan.php/man/RPC_GSS_SECCREATE/3/json",
    "generated": "2026-06-02T15:55:38Z",
    "synopsis": "#include <rpc/rpcsecgss.h>\nAUTH *\nrpcgssseccreate(CLIENT *clnt, const char *principal, const char *mechanism,\nrpcgssservicet service, const char *qop, rpcgssoptionsreqt *optionsreq,\nrpcgssoptionsrett *optionsret);",
    "sections": {
        "NAME": {
            "content": "rpcgssseccreate — create a security context using the RPCSECGSS protocol\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <rpc/rpcsecgss.h>\n\nAUTH *\nrpcgssseccreate(CLIENT *clnt, const char *principal, const char *mechanism,\nrpcgssservicet service, const char *qop, rpcgssoptionsreqt *optionsreq,\nrpcgssoptionsrett *optionsret);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This function is used to establish a security context between an application and a remote peer\nusing the RPSECGSS protocol.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "clnt         An RPC handle which is connected to the remote peer\n\nprincipal    The name of the service principal on the remote peer.  For instance, a principal\nsuch as \"nfs@server.example.com\" might be used by an application which needs to\ncontact an NFS server\n\nmechanism    The name of the GSSAPI mechanism to use for the new security context.  \"ker‐\nberosv5\" is currently the only supported mechanism.\n\nservice      Type of service requested.\n\nrpcgsssvcdefault    The default - typically the same as rpcgsssvcnone.\n\nrpcgsssvcnone       RPC headers only are integrity protected by a checksum.\n\nrpcgsssvcintegrity  RPC headers and data are integrity protected by a checksum.\n\nrpcgsssvcprivacy    RPC headers are integrity protected by a checksum and data\nis encrypted.\n\nqop          The name of the Quality of Protection to use for the new security context, or NULL\nto use the default QOP.  \"GSSCQOPDEFAULT\" is currently the only supported QOP.\n\noptionsreq  Extra security context options to be passed to the underlying GSS-API mechanism.\nPass NULL to supply default values.\n\noptionsret  Various values returned by the underlying GSS-API mechanism.  Pass NULL if these\nvalues are not required.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "If the security context was created successfully, a pointer to an AUTH structure that repre‐\nsents the context is returned.  To use this security context for subsequent RPC calls, set\nclnt->clauth to this value.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "The rpcgssseccreate() function is part of libtirpc.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "rpc(3), gssapi(3), mech(5), qop(5), rpcsecgss(3)\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "This manual page was written by Doug Rabson <dfr@FreeBSD.org>.\n\nBSD                            January 26, 2010                            BSD",
            "subsections": []
        }
    },
    "summary": "rpcgssseccreate — create a security context using the RPCSECGSS protocol",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "rpc",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/rpc/3/json"
        },
        {
            "name": "gssapi",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/gssapi/3/json"
        },
        {
            "name": "mech",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/mech/5/json"
        },
        {
            "name": "qop",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/qop/5/json"
        },
        {
            "name": "rpcsecgss",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/rpcsecgss/3/json"
        }
    ]
}