[29930] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Reduce dependencies of k5-input.h

daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Apr 18 14:03:33 2017

Date: Tue, 18 Apr 2017 14:03:29 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201704181803.v3II3TL9028072@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/dbef9160fe060959df6b769492ff6e544e07a723
commit dbef9160fe060959df6b769492ff6e544e07a723
Author: Greg Hudson <ghudson@mit.edu>
Date:   Tue Apr 18 12:33:48 2017 -0400

    Reduce dependencies of k5-input.h
    
    Avoid using the krb5_error_code type (using int32_t instead), and
    include k5-platform.h instead of k5-int.h, so that we can use
    k5-input.h in libkrb5support.

 src/include/k5-input.h          |    6 +++---
 src/lib/krb5/ccache/ccmarshal.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/include/k5-input.h b/src/include/k5-input.h
index d42ebce..9f47fa7 100644
--- a/src/include/k5-input.h
+++ b/src/include/k5-input.h
@@ -33,7 +33,7 @@
 #ifndef K5_INPUT_H
 #define K5_INPUT_H
 
-#include "k5-int.h"
+#include "k5-platform.h"
 
 /*
  * The k5input module defines helpers for safely consuming a fixed-sized block
@@ -45,7 +45,7 @@
 struct k5input {
     const unsigned char *ptr;
     size_t len;
-    krb5_error_code status;
+    int32_t status;
 };
 
 static inline void
@@ -59,7 +59,7 @@ k5_input_init(struct k5input *in, const void *ptr, size_t len)
 /* Only set the status value of in if it hasn't already been set, so status
  * reflects the first thing to go wrong. */
 static inline void
-k5_input_set_status(struct k5input *in, krb5_error_code status)
+k5_input_set_status(struct k5input *in, int32_t status)
 {
     if (!in->status)
         in->status = status;
diff --git a/src/lib/krb5/ccache/ccmarshal.c b/src/lib/krb5/ccache/ccmarshal.c
index bd6d309..ae634cc 100644
--- a/src/lib/krb5/ccache/ccmarshal.c
+++ b/src/lib/krb5/ccache/ccmarshal.c
@@ -100,8 +100,8 @@
  * second value when reading it.
  */
 
-#include "k5-input.h"
 #include "cc-int.h"
+#include "k5-input.h"
 
 /* Read a 16-bit integer in host byte order for versions 1 and 2, or in
  * big-endian byte order for later versions.*/
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post