From 01a2566d0cdbbaec4a5f0ba14c056be7231b0bad Mon Sep 17 00:00:00 2001 From: Zoey Greer Date: Wed, 18 Feb 2015 09:28:14 -0500 Subject: [PATCH] [#4] actually moved krbAuthRequest.hpp --- krb/krbAuthRequest.hpp | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 krb/krbAuthRequest.hpp diff --git a/krb/krbAuthRequest.hpp b/krb/krbAuthRequest.hpp new file mode 100644 index 0000000..75015ed --- /dev/null +++ b/krb/krbAuthRequest.hpp @@ -0,0 +1,44 @@ +/*** Copyright (c), The Regents of the University of California *** + *** For more information please refer to files in the COPYRIGHT directory ***/ +/* krbAuthRequest.h + */ + +#ifndef KRB_AUTH_REQUEST_HPP +#define KRB_AUTH_REQUEST_HPP + +/* This is a Metadata API call */ + +#include "rods.hpp" +#include "rcMisc.hpp" +#include "procApiRequest.hpp" +#include "apiNumber.hpp" +#include "initServer.hpp" +#include "icatDefines.hpp" + +typedef struct { + char *serverName; +} krbAuthRequestOut_t; + +#define krbAuthRequestOut_PI "str *ServerName;" + + +#if defined(RODS_SERVER) +#define RS_KRB_AUTH_REQUEST rsKrbAuthRequest +/* prototype for the server handler */ +int +rsKrbAuthRequest( rsComm_t *rsComm, krbAuthRequestOut_t **krbAuthRequestOut ); + +#else +#define RS_KRB_AUTH_REQUEST NULL +#endif + +#ifdef __cplusplus +extern "C" { +#endif + /* prototype for the client call */ + int + rcKrbAuthRequest( rcComm_t *conn, krbAuthRequestOut_t **krbAuthRequestOut ); +#ifdef __cplusplus +} +#endif +#endif /* KRB_AUTH_REQUEST_H */