X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=include%2Ftr_gss.h;h=e0cf770f566e80f88e21fb9907a56b96c941783c;hp=850f51be4d6a09c4c58bff0a702121982ffbaed6;hb=6454056a45ff204133fd53f7f147e46ffb397d4f;hpb=8331589c0245cd878ed209b4856c6d2b2e51cc10 diff --git a/include/tr_gss.h b/include/tr_gss.h index 850f51b..e0cf770 100644 --- a/include/tr_gss.h +++ b/include/tr_gss.h @@ -40,7 +40,17 @@ typedef int (TR_GSS_AUTH_FN)(gss_name_t, TR_NAME *, void *); typedef TR_MSG *(TR_GSS_HANDLE_REQ_FN)(TALLOC_CTX *, TR_MSG *, void *); -void tr_gss_handle_connection(int conn, const char *acceptor_service, const char *acceptor_hostname, TR_GSS_AUTH_FN auth_cb, - void *auth_cookie, TR_GSS_HANDLE_REQ_FN req_cb, void *req_cookie); +typedef enum tr_gss_rc { + TR_GSS_SUCCESS = 0, /* success */ + TR_GSS_ERROR, /* unspecified error */ +} TR_GSS_RC; + +TR_GSS_RC tr_gss_handle_connection(int conn, + const char *acceptor_service, + const char *acceptor_hostname, + TR_GSS_AUTH_FN auth_cb, + void *auth_cookie, + TR_GSS_HANDLE_REQ_FN req_cb, + void *req_cookie); #endif //TRUST_ROUTER_TR_GSS_H