Add krb5_enomem for config parser & kernel crypto
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 25 Feb 2013 23:13:47 +0000 (23:13 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 26 Feb 2013 11:51:15 +0000 (03:51 -0800)
The imported code form Heimdal that forms our config file parser
and kernel rfc3961 library now makes use of krb5_enomem. Provide
an implementation so we build again ...

Change-Id: Ie7162d73aa97e6f7594c0e7c68ed6939f57ae884
Reviewed-on: http://gerrit.openafs.org/9265
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/cmd/krb5_locl.h
src/crypto/rfc3961/krb5_locl.h

index 0f89acb..aedbd63 100644 (file)
@@ -53,14 +53,16 @@ static void krb5_set_error_message(krb5_context context, krb5_error_code ret,
     return;
 }
 
+static krb5_error_code
+krb5_enomem(krb5_context context)
+{
+    return ENOMEM;
+}
+
 #ifdef EXPAND_PATH_HEADER
 
 #include <shlobj.h>
 
-static krb5_error_code krb5_enomem(krb5_context context) {
-    return ENOMEM;
-}
-
 static int _krb5_expand_path_tokens(krb5_context, const char *, char**);
 
 int
index 9684f5e..4982e5f 100644 (file)
@@ -143,6 +143,7 @@ void krb5_set_error_message(krb5_context, krb5_error_code, const char *, ...);
 krb5_error_code krb5_abortx(krb5_context, const char *, ...);
 
 #define krb5_clear_error_message(ctx)
+#define krb5_enomem(ctx) ENOMEM
 
 /* Local prototypes. These are functions that we aren't admitting to in the
  * public API */