]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Add documentation for krb5_error_code
authorSarah Day <sarahday@mit.edu>
Fri, 11 Dec 2015 16:46:04 +0000 (11:46 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 24 Mar 2016 15:08:19 +0000 (11:08 -0400)
ticket: 8387 (new)
target_version: 1.14-next
tags: pullup

src/include/krb5/krb5.hin

index 9e91a60d2c0d460a704c0181f96a11774851adb0..c045ee3770a09595965c28cd160ad0288b96c3a0 100644 (file)
@@ -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 {