X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-digest.h;h=a605356c8147ad38009408f707e00e7217695882;hb=eae326c71c117db0c492fef7d18a221d6644f44e;hp=1ff698f5051755a47292b05d0a44fbf44ec191ed;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mono/utils/mono-digest.h b/mono/utils/mono-digest.h index 1ff698f5051..a605356c814 100644 --- a/mono/utils/mono-digest.h +++ b/mono/utils/mono-digest.h @@ -28,6 +28,8 @@ #include +G_BEGIN_DECLS + typedef struct { guint32 buf[4]; guint32 bits[2]; @@ -35,7 +37,7 @@ typedef struct { gint doByteReverse; } MonoMD5Context; -void mono_md5_get_digest (const gchar *buffer, gint buffer_size, guchar digest[16]); +void mono_md5_get_digest (const guchar *buffer, gint buffer_size, guchar digest[16]); /* use this one when speed is needed */ /* for use in provider code only */ @@ -52,7 +54,7 @@ typedef struct { unsigned char buffer[64]; } MonoSHA1Context; -void mono_sha1_get_digest (const gchar *buffer, gint buffer_size, guchar digest [20]); +void mono_sha1_get_digest (const guchar *buffer, gint buffer_size, guchar digest [20]); void mono_sha1_get_digest_from_file (const gchar *filename, guchar digest [20]); void mono_sha1_init (MonoSHA1Context* context); @@ -61,4 +63,5 @@ void mono_sha1_final (MonoSHA1Context* context, unsigned char digest[20]); void mono_digest_get_public_token (guchar* token, const guchar *pubkey, guint32 len); +G_END_DECLS #endif /* __MONO_DIGEST_H__ */