From 7b57bfe5988e476ea40934457dfd1c8a231e2391 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 16 Apr 2011 21:59:36 -0400 Subject: Obsolete RPC implementation in libc. --- sunrpc/xcrypt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sunrpc/xcrypt.c') diff --git a/sunrpc/xcrypt.c b/sunrpc/xcrypt.c index 337fd2c..8b7642b 100644 --- a/sunrpc/xcrypt.c +++ b/sunrpc/xcrypt.c @@ -89,7 +89,7 @@ passwd2des_internal (char *pw, char *key) #ifdef _LIBC libc_hidden_def (passwd2des_internal) -strong_alias (passwd2des_internal, passwd2des) +compat_symbol (libc, passwd2des_internal, passwd2des, GLIBC_2_1); #else void passwd2des (char *pw, char *key) { @@ -127,6 +127,7 @@ xencrypt (char *secret, char *passwd) free (buf); return 1; } +libc_hidden_nolink (xencrypt, GLIBC_2_0) /* * Decrypt secret key using passwd @@ -159,6 +160,11 @@ xdecrypt (char *secret, char *passwd) free (buf); return 1; } +#ifdef EXPORT_RPC_SYMBOLS +libc_hidden_def (xdecrypt) +#else +libc_hidden_nolink (xdecrypt, GLIBC_2_1) +#endif /* * Hex to binary conversion -- cgit v1.1