]> git.sur5r.net Git - openldap/blobdiff - include/lutil_md5.h
hostname needs to be static
[openldap] / include / lutil_md5.h
index 4c6a37beeee06606c50439285de5ea6ac33510b1..c94e12feed126d54366b2c75308440ff6e01b23f 100644 (file)
@@ -24,37 +24,30 @@ LDAP_BEGIN_DECL
    important.  ANSI guarantees that "unsigned long" will be big enough,
    and always using it seems to have few disadvantages.  */
 
+#define LUTIL_MD5_BYTES 16
+
 struct lutil_MD5Context {
        ber_uint_t buf[4];
        ber_uint_t bits[2];
        unsigned char in[64];
 };
 
-#ifdef __MINGW32__
-#   undef LDAP_F_PRE
-#   ifdef LIBLUTIL_DECL
-#      define LDAP_F_PRE       extern __declspec(LIBLUTIL_DECL)
-#   else
-#      define LDAP_F_PRE       extern
-#   endif
-#endif
-
-LDAP_F( void )
+LIBLUTIL_F( void )
 lutil_MD5Init LDAP_P((
        struct lutil_MD5Context *context));
 
-LDAP_F( void )
+LIBLUTIL_F( void )
 lutil_MD5Update LDAP_P((
        struct lutil_MD5Context *context,
        unsigned char const *buf,
        ber_len_t len));
 
-LDAP_F( void )
+LIBLUTIL_F( void )
 lutil_MD5Final LDAP_P((
        unsigned char digest[16],
        struct lutil_MD5Context *context));
 
-LDAP_F( void )
+LIBLUTIL_F( void )
 lutil_MD5Transform LDAP_P((
        ber_uint_t buf[4],
        const unsigned char in[64]));