krb5 commit [krb5-1.14]: Add documentation for krb5_error_code

Tom Yu tlyu at mit.edu
Tue Apr 5 23:02:58 EDT 2016


https://github.com/krb5/krb5/commit/2d5910c1ae3d77344f64dd9fc0340e2eb84ff717
commit 2d5910c1ae3d77344f64dd9fc0340e2eb84ff717
Author: Sarah Day <sarahday at mit.edu>
Date:   Fri Dec 11 11:46:04 2015 -0500

    Add documentation for krb5_error_code
    
    (cherry picked from commit 4d02def02a172bdfc5c5c2c9059cef559d8c1feb)
    
    ticket: 8387
    version_fixed: 1.14.2
    status: resolved
    tags: -pullup

 src/include/krb5/krb5.hin |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin
index 851cea3..e2c08ae 100644
--- a/src/include/krb5/krb5.hin
+++ b/src/include/krb5/krb5.hin
@@ -182,9 +182,15 @@ typedef krb5_int32 krb5_cryptotype;
 typedef krb5_int32      krb5_preauthtype; /* This may change, later on */
 typedef krb5_int32      krb5_flags;
 typedef krb5_int32      krb5_timestamp;
-typedef krb5_int32      krb5_error_code;
 typedef krb5_int32      krb5_deltat;
 
+/**
+ * Used to convey an operation status.  The value 0 indicates success; any
+ * other values are com_err codes.  Use krb5_get_error_message() to obtain a
+ * string describing the error.
+ */
+typedef krb5_int32      krb5_error_code;
+
 typedef krb5_error_code krb5_magic;
 
 typedef struct _krb5_data {


More information about the cvs-krb5 mailing list