aboutsummaryrefslogtreecommitdiff
path: root/include/rpc/auth_des.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rpc/auth_des.h')
-rw-r--r--include/rpc/auth_des.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h
index 02736aa03b..fa3622728b 100644
--- a/include/rpc/auth_des.h
+++ b/include/rpc/auth_des.h
@@ -1 +1,18 @@
+#ifndef _RPC_AUTH_DES_H
+
#include <sunrpc/rpc/auth_des.h>
+
+#define DECLARE_NSS_PROTOTYPES(service) \
+extern enum nss_status _nss_ ## service ## _getpublickey \
+ (const char *netname, char *pkey, int *errnop); \
+extern enum nss_status _nss_ ## service ## _getsecretkey \
+ (const char *netname, char *skey, char *passwd, \
+ int *errnop);
+
+DECLARE_NSS_PROTOTYPES (files)
+DECLARE_NSS_PROTOTYPES (nis)
+DECLARE_NSS_PROTOTYPES (nisplus)
+
+#undef DECLARE_NSS_PROTOTYPES
+
+#endif