X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=include%2Ftr_gss.h;h=e0cf770f566e80f88e21fb9907a56b96c941783c;hp=9cd378eeb5ae0554b62d5d688e7cd7b0f13b08e2;hb=6454056a45ff204133fd53f7f147e46ffb397d4f;hpb=1a3ad555c6b58de28efb85e7ab07c2f35208ab0d diff --git a/include/tr_gss.h b/include/tr_gss.h index 9cd378e..e0cf770 100644 --- a/include/tr_gss.h +++ b/include/tr_gss.h @@ -37,10 +37,20 @@ #include -typedef int (TR_GSS_AUTH_FN)(gss_name_t, gss_buffer_t, void *); -typedef char *(TR_GSS_HANDLE_REQ_FN)(TALLOC_CTX *, const char *, void *); +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_name, const char *acceptor_realm, 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