X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=include%2Ftr_gss.h;fp=include%2Ftr_gss.h;h=f7fcd4191cf80c344029231e5cb9c81292233272;hp=e0cf770f566e80f88e21fb9907a56b96c941783c;hb=240db3f1e5143b5eae6d6d5b81bb83a128f8450c;hpb=722204aaf7faff43fc5f8b3e780fccf4078c0874 diff --git a/include/tr_gss.h b/include/tr_gss.h index e0cf770..f7fcd41 100644 --- a/include/tr_gss.h +++ b/include/tr_gss.h @@ -38,10 +38,13 @@ #include 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 *); +typedef enum tr_gss_rc (TR_GSS_HANDLE_REQ_FN)(TALLOC_CTX *, TR_MSG *, TR_MSG **, void *); typedef enum tr_gss_rc { TR_GSS_SUCCESS = 0, /* success */ + TR_GSS_AUTH_FAILED, /* authorization failed */ + TR_GSS_REQUEST_FAILED, /* request failed */ + TR_GSS_INTERNAL_ERROR, /* internal error (memory allocation, etc) */ TR_GSS_ERROR, /* unspecified error */ } TR_GSS_RC;