Bruno Haible <[EMAIL PROTECTED]> writes:
> Simon Josefsson wrote:
>> +
>> +/* Compute a hash value over buffer IN of INLEN bytes size using the
>> + algorithm HASH, placing the result in the pre-allocated buffer OUT.
>> + The required size of OUT depends on HASH, and is generally
>> + GC_<HASH>_DIGEST_SIZE. For example, for GC_MD5 the output buffer
>> + must be 16 bytes. */
>> extern int
>> gc_hash_buffer (int hash, const void *in, size_t inlen, char *out);
>
> Thanks. And what is the 'int' return value? Is it somehow related to the
> Gc_rc type?
Yep, thanks, I installed this:
--- gc.h 11 Oct 2005 19:39:38 +0200 1.3
+++ gc.h 11 Oct 2005 21:16:48 +0200
@@ -68,7 +68,8 @@
algorithm HASH, placing the result in the pre-allocated buffer OUT.
The required size of OUT depends on HASH, and is generally
GC_<HASH>_DIGEST_SIZE. For example, for GC_MD5 the output buffer
- must be 16 bytes. */
+ must be 16 bytes. The return value is 0 (GC_OK) on success, or
+ another Gc_rc error code. */
extern int
gc_hash_buffer (int hash, const void *in, size_t inlen, char *out);
_______________________________________________
bug-gnulib mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnulib