Use proper #include for xdecrypt declarations.

This commit is contained in:
Roland McGrath 2013-08-26 15:04:02 -07:00
parent 595aba70a4
commit 59d112a4c7
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2013-08-26 Roland McGrath <roland@hack.frob.com>
* nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
instead of explicitly declaring xdecrypt.
* nis/nss_nis/nis-publickey.c: Likewise.
2013-08-26 Siddhesh Poyarekar <siddhesh@redhat.com>
[BZ #15890]

View File

@ -25,7 +25,7 @@
#include <rpcsvc/yp.h>
#include <rpcsvc/ypclnt.h>
#include <rpc/key_prot.h>
extern int xdecrypt (char *, char *);
#include <rpc/des_crypt.h>
#include "nss-nis.h"

View File

@ -21,13 +21,11 @@
#include <string.h>
#include <netdb.h>
#include <rpc/key_prot.h>
#include <rpc/des_crypt.h>
#include "nsswitch.h"
#define DATAFILE "/etc/publickey"
/* Prototype for function in xcyrpt.c. */
extern int xdecrypt (char *, char *);
static enum nss_status
search (const char *netname, char *result, int *errnop, int secret)