forked from hjl-tools/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
* inet/ether_hton.c: Likewise * inet/ether_ntoh.c: Likewise. * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix declaration to match prototype. * include/netinet/ether.h (struct etherent): Declare here so that all implementations use the same struct. * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get prototypes. (struct ether): Removed. Use struct etherent instead of ether everywhere. * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New. * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New. * sunrpc/publickey.c: Include auth_des.h for prototypes.
- Loading branch information
Showing
8 changed files
with
47 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
#ifndef _RPC_AUTH_H | ||
#include <sunrpc/rpc/auth.h> | ||
|
||
#define DECLARE_NSS_PROTOTYPES(service) \ | ||
extern enum nss_status _nss_ ##service ## _netname2user \ | ||
(char netname[MAXNETNAMELEN + 1], uid_t *uidp, \ | ||
gid_t *gidp, int *gidlenp, gid_t *gidlist, \ | ||
int *errnop); | ||
|
||
DECLARE_NSS_PROTOTYPES (nis) | ||
DECLARE_NSS_PROTOTYPES (nisplus) | ||
|
||
#undef DECLARE_NSS_PROTOTYPES | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
|
||
#include <errno.h> | ||
#include <rpc/netdb.h> | ||
#include <rpc/auth_des.h> | ||
|
||
#include "nsswitch.h" | ||
|
||
|