document krb5_ret_{u,}int{32,16,8}
This commit is contained in:
@@ -377,6 +377,18 @@ krb5_ret_int(krb5_storage *sp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a int32 from storage, byte order is controlled by the settings
|
||||||
|
* on the storage, see krb5_storage_set_byteorder().
|
||||||
|
*
|
||||||
|
* @param sp the storage to write too
|
||||||
|
* @param value the value read from the buffer
|
||||||
|
*
|
||||||
|
* @return 0 for success, or a Kerberos 5 error code on failure.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_storage
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_ret_int32(krb5_storage *sp,
|
krb5_ret_int32(krb5_storage *sp,
|
||||||
int32_t *value)
|
int32_t *value)
|
||||||
@@ -391,6 +403,18 @@ krb5_ret_int32(krb5_storage *sp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a uint32 from storage, byte order is controlled by the settings
|
||||||
|
* on the storage, see krb5_storage_set_byteorder().
|
||||||
|
*
|
||||||
|
* @param sp the storage to write too
|
||||||
|
* @param value the value read from the buffer
|
||||||
|
*
|
||||||
|
* @return 0 for success, or a Kerberos 5 error code on failure.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_storage
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_ret_uint32(krb5_storage *sp,
|
krb5_ret_uint32(krb5_storage *sp,
|
||||||
uint32_t *value)
|
uint32_t *value)
|
||||||
@@ -447,6 +471,17 @@ krb5_store_uint16(krb5_storage *sp,
|
|||||||
return krb5_store_int16(sp, (int16_t)value);
|
return krb5_store_int16(sp, (int16_t)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a int16 from storage, byte order is controlled by the settings
|
||||||
|
* on the storage, see krb5_storage_set_byteorder().
|
||||||
|
*
|
||||||
|
* @param sp the storage to write too
|
||||||
|
* @param value the value read from the buffer
|
||||||
|
*
|
||||||
|
* @return 0 for success, or a Kerberos 5 error code on failure.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_storage
|
||||||
|
*/
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_ret_int16(krb5_storage *sp,
|
krb5_ret_int16(krb5_storage *sp,
|
||||||
int16_t *value)
|
int16_t *value)
|
||||||
@@ -464,6 +499,18 @@ krb5_ret_int16(krb5_storage *sp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a int16 from storage, byte order is controlled by the settings
|
||||||
|
* on the storage, see krb5_storage_set_byteorder().
|
||||||
|
*
|
||||||
|
* @param sp the storage to write too
|
||||||
|
* @param value the value read from the buffer
|
||||||
|
*
|
||||||
|
* @return 0 for success, or a Kerberos 5 error code on failure.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_storage
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_ret_uint16(krb5_storage *sp,
|
krb5_ret_uint16(krb5_storage *sp,
|
||||||
uint16_t *value)
|
uint16_t *value)
|
||||||
@@ -519,6 +566,17 @@ krb5_store_uint8(krb5_storage *sp,
|
|||||||
return krb5_store_int8(sp, (int8_t)value);
|
return krb5_store_int8(sp, (int8_t)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a int8 from storage
|
||||||
|
*
|
||||||
|
* @param sp the storage to write too
|
||||||
|
* @param value the value read from the buffer
|
||||||
|
*
|
||||||
|
* @return 0 for success, or a Kerberos 5 error code on failure.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_storage
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_ret_int8(krb5_storage *sp,
|
krb5_ret_int8(krb5_storage *sp,
|
||||||
int8_t *value)
|
int8_t *value)
|
||||||
@@ -531,6 +589,17 @@ krb5_ret_int8(krb5_storage *sp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a uint8 from storage
|
||||||
|
*
|
||||||
|
* @param sp the storage to write too
|
||||||
|
* @param value the value read from the buffer
|
||||||
|
*
|
||||||
|
* @return 0 for success, or a Kerberos 5 error code on failure.
|
||||||
|
*
|
||||||
|
* @ingroup krb5_storage
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_ret_uint8(krb5_storage *sp,
|
krb5_ret_uint8(krb5_storage *sp,
|
||||||
uint8_t *value)
|
uint8_t *value)
|
||||||
|
Reference in New Issue
Block a user