{
    "content": [
        {
            "type": "text",
            "text": "# rpc_gss_set_svc_name(3t) (man)\n\n**Summary:** rpcgsssetsvcname — Associate a GSS-API service principal with an RPC service\n\n**Synopsis:** #include <rpc/rpcsecgss.h>\nboolt\nrpcgsssetsvcname(const char *principal, const char *mechanism, uint reqtime,\nuint program, uint version);\n\n## See Also\n\n- rpc(3)\n- gssapi(3)\n- gssacquirecred(3)\n- rpcsecgss(3)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (6 lines)\n- **DESCRIPTION** (3 lines)\n- **PARAMETERS** (11 lines)\n- **RETURN VALUES** (2 lines)\n- **AVAILABILITY** (2 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHORS** (3 lines)\n\n## Full Content\n\n### NAME\n\nrpcgsssetsvcname — Associate a GSS-API service principal with an RPC service\n\n### SYNOPSIS\n\n#include <rpc/rpcsecgss.h>\n\nboolt\nrpcgsssetsvcname(const char *principal, const char *mechanism, uint reqtime,\nuint program, uint version);\n\n### DESCRIPTION\n\nThis function registers a service principal which will be used to authenticate RPCSECGSS secu‐\nrity contexts for a given RPC program and version.\n\n### PARAMETERS\n\nprincipal  A string representing the service principal in the form \"service@hostname\"\n\nmechanism  The name of the security mechanism\n\nreqtime   The time in seconds that the service credentials should remain valid.  See\ngssacquirecred(3) for more details.  principal.\n\nprogram    RPC program number for this service\n\nversion    RPC program version for this service\n\n### RETURN VALUES\n\nReturns TRUE if the service principal was registered or FALSE otherwise.\n\n### AVAILABILITY\n\nThe rpcgsssetsvcname() function is part of libtirpc.\n\n### SEE ALSO\n\nrpc(3), gssapi(3), gssacquirecred(3), rpcsecgss(3)\n\n### AUTHORS\n\nThis manual page was written by Doug Rabson <dfr@FreeBSD.org>.\n\nBSD                            January 26, 2010                            BSD\n\n"
        }
    ],
    "structuredContent": {
        "command": "rpc_gss_set_svc_name",
        "section": "3t",
        "mode": "man",
        "summary": "rpcgsssetsvcname — Associate a GSS-API service principal with an RPC service",
        "synopsis": "#include <rpc/rpcsecgss.h>\nboolt\nrpcgsssetsvcname(const char *principal, const char *mechanism, uint reqtime,\nuint program, uint version);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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": "gssacquirecred",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/gssacquirecred/3/json"
            },
            {
                "name": "rpcsecgss",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/rpcsecgss/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}