]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Disable deprecated warnings for krb5 routines
authorBenjamin Kaduk <kaduk@mit.edu>
Fri, 10 Jan 2014 04:54:45 +0000 (23:54 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 29 Jan 2014 19:19:52 +0000 (11:19 -0800)
In OS X 10.9 Mavericks, Apple has marked all of the krb5 routines
as deprecated (in favor of the GSS framework).  We must disable
these warnings in order to allow the buildslave to have a successful
build.

Luckily, Apple has left in rope for us to programmatically disable
the deprecated attribute with a preprocessor macro.  Defining this
macro should be safe everywhere, so do so unconditionally.

This commit touches a few more files than the version on master does,
since the 1.6 branch is using the krb5 library for its rxkad-k5
implementation; the files in auth/ and rxkad/ are specific to 1.6.

Reviewed-on: http://gerrit.openafs.org/10699
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 17c50911f79382e3ba8960e4b6c122b348e9baef)

Change-Id: Id0e806029e25583698574bf3df626ce12a72312a
Reviewed-on: http://gerrit.openafs.org/10735
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/aklog/aklog.c
src/aklog/asetkey.c
src/aklog/klog.c
src/aklog/krb_util.c
src/aklog/skipwrap.c
src/auth/akimpersonate.c
src/auth/authcon.c
src/libafscp/afscp_server.c
src/libafscp/afscp_util.c
src/rxkad/ticket5_keytab.c

index aac7e3352c2c3ae3c90c6840c189e9a89d8fbe06..c282c24712c2a53ba4a2d00f0c6e84bb7ea0a018 100644 (file)
@@ -63,6 +63,7 @@
 #include <pwd.h>
 
 #include <afs/stds.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include <krb5.h>
 #ifdef HAVE_COM_ERR_H
 # include <com_err.h>
index 180b6f9a37a3944c2c18e6ffbca34c0f2ceef67c..c980a2eb01b8869c59f76df585791fccdbaf4df7 100644 (file)
@@ -21,6 +21,7 @@
 #include <string.h>
 
 #include <afs/stds.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include <krb5.h>
 
 #ifndef HAVE_KERBEROSV_HEIM_ERR_H
index 89b327f9cfcbba58ad266ebce8868e4f8714e6dd..781ea9ab38eb4afc2fbd68bc169cdfdb32645975 100644 (file)
@@ -33,6 +33,7 @@
 #endif
 #include <afs/ptclient.h>
 #include <afs/cmd.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include <krb5.h>
 
 #ifdef HAVE_KRB5_CREDS_KEYBLOCK
index f256803a89bbb2fa1e302fd8a0ca55baacf2bc29..cc451234b445f6204ba6e56ac597acd4ebab5de4 100644 (file)
@@ -15,6 +15,7 @@
 #include <kerberosIV/mit-copyright.h>
 #endif
 #include <afs/stds.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include "aklog.h"
 #include <krb5.h>
 
index 75c63fd63d7a8bfa2f29fbd8f7fcc314d1ea28fe..2fa246bd0a59d94e4653cbf0e64c489dad9ed025 100644 (file)
@@ -32,6 +32,7 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 #include <stdio.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include "aklog.h"
 #include <krb5.h>
 #include "skipwrap.h"
index 195807a917fe4b5fca63d86e0790ee8dea646d03..d5222044deb832a393f1fdf5d354adadddef714f 100644 (file)
@@ -65,6 +65,7 @@
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include <krb5.h>
 
 #include "akimpersonate.h"
index 1a9c26807c58a72c0ef4a2b59427a9c7e2017f66..d2d49b71de47c982dd3576e680f71d03b5926e3c 100644 (file)
@@ -28,6 +28,7 @@
 #include <rx/rxkad.h>
 #if defined(USE_RXKAD_KEYTAB) && !defined(UKERNEL)
 #include <afs/dirpath.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include <krb5.h>
 #endif
 #include <rx/rx.h>
index 6ebd22baccd37bd1b8137755c3fe886dc19c6dbf..2b08e69f67b2723d1193e5a4d89b2956f133fa8a 100644 (file)
@@ -37,6 +37,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #endif
 #include <rx/rx.h>
 #ifdef HAVE_KERBEROS
+# define KERBEROS_APPLE_DEPRECATED(x)
 # include <krb5.h>
 #endif
 #include "afscp.h"
index 424354b023382675f944aafa3a2d9fc6551db701..ac74252ad2859dd7ff698d3e9e7a466c51a312df 100644 (file)
@@ -37,6 +37,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <rx/rx_null.h>
 #include <rx/rxkad.h>
 #ifdef HAVE_KERBEROS
+# define KERBEROS_APPLE_DEPRECATED(x)
 # include <krb5.h>
 #endif
 #include "afscp.h"
index 329140c09b5d353fb80cc78ecdadebba57ae8b72..ca75fed00a3069b0313c9b87782423fb7ca0cf87 100644 (file)
@@ -33,6 +33,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include <krb5.h>
 
 #ifdef  RX_ENABLE_LOCKS