Example #1
0
INTERNAL void rpc__ntlmauth_init
(
	rpc_auth_epv_p_t *epv,
	rpc_auth_rpc_prot_epv_tbl_t *rpc_prot_epv,
	unsigned32 *st
)
{
	unsigned32		prot_id;
	rpc_auth_rpc_prot_epv_t *prot_epv;

	RPC_DBG_PRINTF(rpc_e_dbg_auth, RPC_C_CN_DBG_AUTH_ROUTINE_TRACE,
		("(rpc__ntlmauth_negotiate_init)\n"));

	/*
	 * Initialize the RPC-protocol-specific EPVs for the RPC protocols
	 * we work with (ncacn).
	 */
	/* for now only ncacn, as that's what windows uses */
	prot_id = rpc__ntlmauth_cn_init (&prot_epv, st);
	if (*st == rpc_s_ok) {
		rpc_g_ntlmauth_rpc_prot_epv[prot_id] = prot_epv;
	}

	/*
	 * Return information for this ntlmssp authentication service.
	 */
	*epv = &rpc_g_ntlmauth_epv;
	*rpc_prot_epv = rpc_g_ntlmauth_rpc_prot_epv;

	*st = 0;
}
Example #2
0
PRIVATE void rpc__ntlmauth_init 
(
        rpc_auth_epv_p_t *epv,
        rpc_auth_rpc_prot_epv_tbl_t *rpc_prot_epv,
        unsigned32 *st
)
{
#if 0
    unsigned32                  prot_id;
    rpc_auth_rpc_prot_epv_t     *prot_epv;
#endif
    /*
     * Initialize the RPC-protocol-specific EPVs for the RPC protocols
     * we work with (ncadg and ncacn).
     */
#ifdef AUTH_DUMMY_DG
    prot_id = rpc__ntlmauth_dg_init (&prot_epv, st);
    if (*st == rpc_s_ok)
    {
        rpc_g_ntlmauth_rpc_prot_epv[prot_id] = prot_epv;
    }
#endif
#ifdef AUTH_DUMMY_CN
    prot_id = rpc__ntlmauth_cn_init (&prot_epv, st);
    if (*st == rpc_s_ok)
    {
        rpc_g_ntlmauth_rpc_prot_epv[prot_id] = prot_epv;
    }
#endif

    /*
     * Return information for this authentication service.
     */
    *epv = &rpc_g_ntlmauth_epv;
    *rpc_prot_epv = rpc_g_ntlmauth_rpc_prot_epv;

    *st = 0;
}